-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
66 lines (53 loc) · 2.29 KB
/
build.xml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0"?>
<project name="pasaat_swim" default="release" basedir=".">
<!-- Compile -->
<target name="build">
<javac srcdir="src/java"
destdir="build/classes"
includes="**/*"
debug="on"
optimize="off"
deprecation="off">
<classpath refid="compile.classpath"/>
</javac>
</target>
<!-- Make a jar file with all classes and zip files combined -->
<target name="makejar" depends="build">
<mkdir dir="release"/>
<delete file="release/${ant.project.name}.jar"/>
<jar update="true" destfile="release/${ant.project.name}.jar">
<fileset dir="build/classes"/>
<zipgroupfileset dir="${basedir}" includes="lib/*.zip,lib/*.jar"/>
</jar>
</target>
<!-- ********************************************************* -->
<!-- Setup the classpath -->
<path id="compile.classpath">
<fileset dir="${basedir}">
<include name="src/common-base.jar"/>
<include name="src/log4j-1.2.9.jar"/>
<include name="src/reference.jar"/>
<include name="src/utils.jar"/>
<include name="src/common-daf-v2.jar"/>
</fileset>
</path>
<!-- ********************************************************* -->
<!-- Create a set of jar files for release -->
<target name="release" depends="makejar">
<!-- copy dependencies to release directory -->
<copy file="src/common-base.jar" todir="release"/>
<copy file="src/reference.jar" todir="release"/>
<copy file="src/common-daf-v2.jar" todir="release"/>
<copy file="src/utils.jar" todir="release"/>
<copy file="src/log4j-1.2.9.jar" todir="release"/>
<zip destfile="release/pasaat2.jar">
<zipgroupfileset dir="release" includes="pasaat_swim.jar"/>
<zipgroupfileset dir="release" includes="common-base.jar"/>
<zipgroupfileset dir="release" includes="reference.jar"/>
<zipgroupfileset dir="release" includes="common-daf-v2.jar"/>
<zipgroupfileset dir="release" includes="utils.jar"/>
<zipgroupfileset dir="release" includes="log4j-1.2.9.jar"/>
</zip>
<move file="release/pasaat2.jar" tofile="release/pasaat.jar"/>
</target>
</project>