source: greenstone3/trunk/svnant/build.xml@ 14166

Last change on this file since 14166 was 14166, checked in by oranfry, 17 years ago

added the svnant library files

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="project.classpath">
10 <pathelement location="${svnjavahl.jar}" />
11 <pathelement location="${svnant.jar}" />
12 <pathelement location="${svnClientAdapter.jar}" />
13 </path>
14
15 <!-- load the svn task -->
16 <taskdef resource="svntask.properties" classpathref="project.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.