source: other-projects/trunk/anttasks/build.xml@ 17295

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

added a delete chunk from file task and made rsr nicer with nested elements

File size: 746 bytes
Line 
1<project name="compile-ant-tasks" default="compile">
2
3 <condition property="libs.set">
4 <and>
5 <isset property="crypt.jar"/>
6 </and>
7 </condition>
8
9 <target name="compile" depends="check-libs">
10
11 <mkdir dir="classes"/>
12 <javac
13 srcdir="src/org/greenstone/anttasks"
14 destdir="classes"
15 classpath="${crypt.jar}"/>
16
17 <mkdir dir="lib"/>
18 <jar
19 destfile="lib/anttasks.jar"
20 basedir="classes"/>
21
22 </target>
23
24 <target name="clean">
25 <delete dir="classes"/>
26 <delete dir="lib"/>
27 </target>
28
29 <target name="check-libs" unless="libs.set">
30 <echo>Please set crypt.jar property to the path of the crypt.jar file</echo>
31 <echo>E.g., ant -Dcrypt.jar=/path/to/crypt.jar</echo>
32 <fail>paths to libs not set</fail>
33 </target>
34
35
36
37</project>
Note: See TracBrowser for help on using the repository browser.