1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<project name="client" default="build">
<target name="build" depends="init, build-dep, compile, package"/>
<target name="init">
<condition property="commons.built">
<available file="../Commons/target/commons.jar"/>
</condition>
<mkdir dir="target/classes"/>
</target>
<target name="build-dep" depends="init" unless="commons.built">
<ant antfile="../Commons/build.xml" dir="../Commons"/>
</target>
<target name="compile" depends="build-dep">
<javac source="1.5" target="1.5"
destdir="target/classes" srcdir="src">
<classpath>
<fileset dir="lib" includes="*.jar"/>
<fileset file="../Commons/target/commons.jar"/>
</classpath>
</javac>
<copy todir="target/classes">
<fileset dir="resources" includes="**/*"/>
</copy>
</target>
<target name="package" depends="compile">
<jar destfile="target/client.jar" basedir="target/classes"/>
</target>
</project>
|