Last change
on this file since 17089 was 17089, checked in by oranfry, 16 years ago |
moving shared ant tasks to a shared area
|
File size:
661 bytes
|
Rev | Line | |
---|
[17089] | 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="check-libs" unless="libs.set">
|
---|
| 25 | <echo>Please set crypt.jar property to the path of the crypt.jar file</echo>
|
---|
| 26 | <echo>E.g., ant -Dcrypt.jar=/path/to/crypt.jar</echo>
|
---|
| 27 | <fail>paths to libs not set</fail>
|
---|
| 28 | </target>
|
---|
| 29 |
|
---|
| 30 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.