source: release-kits/shared/ant-tasks/svnant/build.xml@ 17129

Last change on this file since 17129 was 17129, checked in by oranfry, 16 years ago

a newer version of svnant

File size: 1.2 KB
Line 
1<?xml version="1.0"?>
2<!-- Sample build file used to retrieve svnant's sources -->
3<project name="svn-test" basedir="." default="checkoutThis">
4
5 <!-- all properties are in build.properties -->
6 <property file="build.properties" />
7
8 <!-- path to the svnant libraries. Usually they will be located in ANT_HOME/lib -->
9 <path id="svnant.classpath">
10 <fileset dir="${lib.dir}">
11 <include name="**/*.jar"/>
12 </fileset>
13 </path>
14
15 <!-- load the svn task -->
16 <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" />
17
18 <target name="clean">
19 <delete dir="src_latest"/>
20 <delete dir="src_${svnant.version}"/>
21 </target>
22
23 <target name="checkoutLatest">
24 <svn username="${svnant.repository.user}" password="${svnant.repository.passwd}">
25 <checkout url="${svnant.latest.url}" revision="HEAD" destPath="src_latest" />
26 </svn>
27 </target>
28
29 <target name="checkoutThis">
30 <svn username="${svnant.repository.user}" password="${svnant.repository.passwd}">
31 <checkout url="${svnant.this.url}" revision="HEAD" destPath="src_${svnant.version}" />
32 </svn>
33 </target>
34
35</project>
Note: See TracBrowser for help on using the repository browser.