1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <project basedir="." default="all" name="tooljar"> |
---|
3 | <target name="all" depends="clean, build" /> |
---|
4 | <target name="build" depends="builddep, jar" /> |
---|
5 | <target name="builddep"> |
---|
6 | <!-- noop, since the core doesnt depend on anything --> |
---|
7 | </target> |
---|
8 | <condition property="depend.available"> |
---|
9 | <typefound name="depend" /> |
---|
10 | </condition> |
---|
11 | <target name="depend" if="depend.available"> |
---|
12 | <depend |
---|
13 | cache="../../../build" |
---|
14 | srcdir="./src" |
---|
15 | destdir="./build/obj" > |
---|
16 | </depend> |
---|
17 | </target> |
---|
18 | |
---|
19 | <!-- only used if not set by a higher build.xml --> |
---|
20 | <property name="javac.compilerargs" value="" /> |
---|
21 | <property name="javac.classpath" value="" /> |
---|
22 | <property name="javac.version" value="1.6" /> |
---|
23 | |
---|
24 | <target name="compile" depends="depend"> |
---|
25 | <mkdir dir="./build" /> |
---|
26 | <mkdir dir="./build/obj" /> |
---|
27 | <javac srcdir="./src" debug="true" source="${javac.version}" target="${javac.version}" deprecation="on" |
---|
28 | includeAntRuntime="false" |
---|
29 | destdir="./build/obj" classpath="${javac.classpath}:../../../build/i2p.jar:../../../core/java/build/gnu-getopt.jar:../../../build/router.jar" > |
---|
30 | <compilerarg line="${javac.compilerargs}" /> |
---|
31 | </javac> |
---|
32 | </target> |
---|
33 | |
---|
34 | <target name="jar" depends="compile"> |
---|
35 | <jar destfile="build/tools.jar"> |
---|
36 | <fileset dir="./build/obj" includes="**" /> |
---|
37 | <manifest> |
---|
38 | <attribute name="Built-By" value="${build.built-by}" /> |
---|
39 | <attribute name="Build-Date" value="${build.timestamp}" /> |
---|
40 | <attribute name="Base-Revision" value="${workspace.version}" /> |
---|
41 | </manifest> |
---|
42 | </jar> |
---|
43 | </target> |
---|
44 | |
---|
45 | <target name="clean"> |
---|
46 | <delete dir="./build" /> |
---|
47 | </target> |
---|
48 | <target name="cleandep" depends="clean"> |
---|
49 | <!-- noop, since the core doesn't depend on anything --> |
---|
50 | </target> |
---|
51 | <target name="distclean" depends="clean"> |
---|
52 | <!-- noop, since the core doesn't depend on anything --> |
---|
53 | </target> |
---|
54 | </project> |
---|