-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
140 lines (106 loc) · 4.11 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!--
Running "ant" in this directory will cause the projections.jar file to
be built.
The directory bin will contain the final jar file
The directory build will contain the compiled class files
author = idooley2
-->
<project name="CharmDebug" default="dist" basedir="." >
<description>
Ant based build system for CharmDebug
</description>
<target name="cleanbuild" depends="clean,dist" description="Performing a fresh build" />
<!-- Setup anything for the build -->
<target name="init">
<mkdir dir="bin"/>
<mkdir dir="classes"/>
</target>
<!-- set the property NewJava if the current java version is at least 1.5 -->
<!-- <target name="getJavaVersion">
<condition property="NewJava">
<not>
<or>
<equals arg1="${ant.java.version}" arg2="1.1"/>
<equals arg1="${ant.java.version}" arg2="1.2"/>
<equals arg1="${ant.java.version}" arg2="1.3"/>
<equals arg1="${ant.java.version}" arg2="1.4"/>
</or>
</not>
</condition>
</target>
-->
<!-- Compile the java code. Put class files into "classes" directory -->
<target name="compilecharmdebug" depends="init" description="compile the source" >
<javac sourcepath="" srcdir="." destdir="classes" debug="true" debuglevel="lines,vars,source" >
<include name="charm/debug/**"/>
<include name="charm/ccs/**"/>
<include name="charm/util/**"/>
<include name="charm/lvClient/**"/>
<include name="charm/liveViz/**"/>
</javac>
<copy todir="classes/charm/debug/">
<fileset dir="charm/debug" casesensitive="no">
<include name="**.gif"/>
</fileset>
</copy>
</target>
<!-- Compile the java code. Put class files into "classes" directory -->
<target name="compileLvClient" depends="init" description="compile the source" >
<javac sourcepath="" srcdir="." destdir="classes" debug="true" debuglevel="lines,vars,source" >
<include name="charm/lvClient/**"/>
<include name="charm/ccs/**"/>
<include name="charm/util/**"/>
</javac>
</target>
<!-- Compile the java code. Put class files into "classes" directory -->
<target name="compileLvzClient" depends="init" description="compile the source" >
<javac sourcepath="" srcdir="." destdir="classes" debug="true" debuglevel="lines,vars,source" >
<include name="charm/liveViz/**"/>
<include name="charm/ccs/**"/>
<include name="charm/util/**"/>
</javac>
</target>
<!-- Make the jar file from the files in "build" -->
<target name="charmdebug" depends="compilecharmdebug" description="generate the jar file" >
<jar jarfile="bin/charmdebug.jar" basedir="classes">
<include name="charm/debug/**"/>
<include name="charm/ccs/**"/>
<include name="charm/util/**"/>
</jar>
</target>
<!-- Make the jar file from the files in "build" -->
<target name="lvClient" depends="compileLvClient" description="generate the jar file" >
<jar jarfile="bin/lvClient.jar" basedir="classes">
<include name="charm/lvClient/**"/>
<include name="charm/ccs/**"/>
<include name="charm/util/**"/>
</jar>
</target>
<!-- Make the jar file from the files in "build" -->
<target name="liveViz" depends="compileLvzClient" description="generate the jar file" >
<jar jarfile="bin/liveViz.jar" basedir="classes">
<include name="charm/liveViz/**"/>
<include name="charm/ccs/**"/>
<include name="charm/util/**"/>
</jar>
</target>
<target name="dist" depends="lvClient,charmdebug,liveViz">
</target>
<!-- Cleanup -->
<target name="clean" description="clean up" >
<!-- Delete the build directory -->
<delete dir="classes"/>
<delete file="bin/charmdebug.jar"/>
<delete file="bin/lvClient.jar"/>
<delete file="bin/liveViz.jar"/>
</target>
<target name="doc" description="build the documentation" >
<javadoc destdir="javadoc" private="true">
<packageset dir="." defaultexcludes="yes">
<include name="charm/debug/**"/>
<include name="charm/ccs/**"/>
<include name="charm/util/**"/>
</packageset>
</javadoc>
</target>
</project>