1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
---|
2 | <project basedir="." default="dist" name="EventBench">
|
---|
3 | <!-- General Properties -->
|
---|
4 | <property environment="env" />
|
---|
5 | <property name="build.location" value="bin" />
|
---|
6 | <property name="dist.location" value="dist" />
|
---|
7 | <property name="javadoc.location" value="javadoc" />
|
---|
8 | <property name="downloads.location" value="downloads" />
|
---|
9 | <property name="debuglevel" value="source,lines,vars" />
|
---|
10 | <property name="target" value="1.6" />
|
---|
11 | <property name="source" value="1.6" />
|
---|
12 |
|
---|
13 | <!-- Distribution Properties -->
|
---|
14 | <property name="dist.location.main" value="${dist.location}/console" />
|
---|
15 | <property name="dist.location.jfcmonitor" value="${dist.location}/jfcmonitor" />
|
---|
16 | <property name="dist.location.javadoc" value="${dist.location}/javadoc" />
|
---|
17 |
|
---|
18 | <!-- EventBenchConsole Properties -->
|
---|
19 | <property name="build.location.eventbenchconsole" value="${build.location}/eventbenchconsole" />
|
---|
20 | <property name="EventBenchConsole.jarname" value="eventbenchconsole.jar" />
|
---|
21 | <property name="EventBenchConsole.location" value="../EventBenchConsole" />
|
---|
22 | <path id="EventBenchConsole.classpath">
|
---|
23 | <pathelement location="${build.location.eventbenchconsole}" />
|
---|
24 | <pathelement location="lib/collections-generic-4.01.jar" />
|
---|
25 | <pathelement location="lib/jdom.jar" />
|
---|
26 | <pathelement location="lib/colt-1.2.0.jar" />
|
---|
27 | <pathelement location="lib/concurrent-1.3.4.jar" />
|
---|
28 | <pathelement location="lib/j3d-core-1.3.1.jar" />
|
---|
29 | <pathelement location="lib/jung-3d-2.0.1.jar" />
|
---|
30 | <pathelement location="lib/jung-3d-demos-2.0.1.jar" />
|
---|
31 | <pathelement location="lib/jung-algorithms-2.0.1.jar" />
|
---|
32 | <pathelement location="lib/jung-api-2.0.1.jar" />
|
---|
33 | <pathelement location="lib/jung-graph-impl-2.0.1.jar" />
|
---|
34 | <pathelement location="lib/jung-io-2.0.1.jar" />
|
---|
35 | <pathelement location="lib/jung-jai-2.0.1.jar" />
|
---|
36 | <pathelement location="lib/jung-jai-samples-2.0.1.jar" />
|
---|
37 | <pathelement location="lib/jung-samples-2.0.1.jar" />
|
---|
38 | <pathelement location="lib/jung-visualization-2.0.1.jar" />
|
---|
39 | <pathelement location="lib/stax-api-1.0.1.jar" />
|
---|
40 | <pathelement location="lib/vecmath-1.3.1.jar" />
|
---|
41 | <pathelement location="lib/wstx-asl-3.2.6.jar" />
|
---|
42 | <pathelement location="lib/commons-codec-1.5.jar" />
|
---|
43 | <pathelement location="lib/org.eclipse.core.commands_3.6.0.I20110111-0800.jar" />
|
---|
44 | <pathelement location="lib/org.eclipse.equinox.common_3.6.0.v20110523.jar" />
|
---|
45 | <pathelement location="lib/org.eclipse.jface_3.7.0.I20110522-1430.jar" />
|
---|
46 | <pathelement location="lib/org.eclipse.osgi_3.7.0.v20110613.jar" />
|
---|
47 | <pathelement location="lib/org.eclipse.swt.win32.win32.x86_3.7.0.v3735b.jar" />
|
---|
48 | <pathelement location="lib/org.eclipse.ui.forms_3.5.100.v20110425.jar" />
|
---|
49 | <pathelement location="lib/org.eclipse.ui.workbench_3.7.0.I20110519-0100.jar" />
|
---|
50 | <pathelement location="lib/gui-model-core.jar" />
|
---|
51 | <pathelement location="lib/log4j-1.2.16.jar" />
|
---|
52 | <pathelement location="lib/jopt-simple-3.3.jar" />
|
---|
53 | <path refid="JavaHelperLib.classpath" />
|
---|
54 | <path refid="EventBenchCore.classpath" />
|
---|
55 | </path>
|
---|
56 |
|
---|
57 | <!-- EventBenchCore Properties -->
|
---|
58 | <property name="build.location.eventbenchcore" value="${build.location}/eventbenchcore" />
|
---|
59 | <property name="EventBenchCore.jarname" value="eventbenchcore.jar" />
|
---|
60 | <property name="EventBenchCore.location" value="../EventBenchCore" />
|
---|
61 | <path id="EventBenchCore.classpath">
|
---|
62 | <pathelement location="${build.location.eventbenchcore}" />
|
---|
63 | <pathelement location="lib/Jama-1.0.2.jar" />
|
---|
64 | <pathelement location="lib/colt-1.2.0.jar" />
|
---|
65 | <pathelement location="lib/concurrent-1.3.4.jar" />
|
---|
66 | <pathelement location="lib/j3d-core-1.3.1.jar" />
|
---|
67 | <pathelement location="lib/jung-3d-2.0.1.jar" />
|
---|
68 | <pathelement location="lib/jung-3d-demos-2.0.1.jar" />
|
---|
69 | <pathelement location="lib/jung-algorithms-2.0.1.jar" />
|
---|
70 | <pathelement location="lib/jung-api-2.0.1.jar" />
|
---|
71 | <pathelement location="lib/jung-graph-impl-2.0.1.jar" />
|
---|
72 | <pathelement location="lib/jung-io-2.0.1.jar" />
|
---|
73 | <pathelement location="lib/jung-jai-2.0.1.jar" />
|
---|
74 | <pathelement location="lib/jung-jai-samples-2.0.1.jar" />
|
---|
75 | <pathelement location="lib/jung-samples-2.0.1.jar" />
|
---|
76 | <pathelement location="lib/jung-visualization-2.0.1.jar" />
|
---|
77 | <pathelement location="lib/stax-api-1.0.1.jar" />
|
---|
78 | <pathelement location="lib/vecmath-1.3.1.jar" />
|
---|
79 | <pathelement location="lib/wstx-asl-3.2.6.jar" />
|
---|
80 | <pathelement location="lib/commons-codec-1.5.jar" />
|
---|
81 | <pathelement location="lib/collections-generic-4.01.jar" />
|
---|
82 | <path refid="JavaHelperLib.classpath" />
|
---|
83 | </path>
|
---|
84 |
|
---|
85 | <!-- JavaHelperLib Properties -->
|
---|
86 | <property name="build.location.javahelperlib" value="${build.location}/javahelperlib" />
|
---|
87 | <property name="JavaHelperLib.jarname" value="javahelperlib.jar" />
|
---|
88 | <property name="JavaHelperLib.location" value="../JavaHelperLib" />
|
---|
89 | <path id="JavaHelperLib.classpath">
|
---|
90 | <pathelement location="${build.location.javahelperlib}" />
|
---|
91 | </path>
|
---|
92 |
|
---|
93 | <!-- JFCMonitor Properties -->
|
---|
94 | <property name="build.location.jfcmonitor" value="${build.location}/jfcmonitor" />
|
---|
95 | <property name="JFCMonitor.jarname" value="jfcmonitor.jar" />
|
---|
96 | <property name="JFCMonitor.location" value="../JFCMonitor" />
|
---|
97 | <path id="JFCMonitor.classpath" />
|
---|
98 |
|
---|
99 | <!-- JUnit Test General Properties -->
|
---|
100 | <property name="test.location.results" value="test-results" />
|
---|
101 | <property name="test.location.data" value="testdata" />
|
---|
102 | <property name="test.location.output" value="testoutput" />
|
---|
103 | <path id="JUnit.classpath">
|
---|
104 | <pathelement location="lib-test/junit-4.10.jar" />
|
---|
105 | <pathelement location="lib-test/junit-addons-1.4.jar" />
|
---|
106 | </path>
|
---|
107 |
|
---|
108 | <!-- JUnit Test EventBenchCore Properties -->
|
---|
109 | <property name="test.location.eventbenchcore" value="${build.location}/eventbenchcore-test" />
|
---|
110 | <property name="EventBenchCoreTest.location" value="../EventBenchCoreTest" />
|
---|
111 | <property name="test.eventbenchcore.main-class" value="de.ugoe.cs.eventbench.TestAll" />
|
---|
112 | <property name="test.eventbenchcore.results" value="${test.location.results}/eventbenchcore" />
|
---|
113 | <path id="EventBenchCoreTest.classpath">
|
---|
114 | <pathelement location="${test.location.eventbenchcore}" />
|
---|
115 | <path refid="EventBenchCore.classpath" />
|
---|
116 | <path refid="JUnit.classpath" />
|
---|
117 | </path>
|
---|
118 |
|
---|
119 | <!-- JUnit Test JavaHelperLib Properties -->
|
---|
120 | <property name="test.location.javahelperlib" value="${build.location}/javahelperlib-test" />
|
---|
121 | <property name="JavaHelperLibTest.location" value="../JavaHelperLibTest" />
|
---|
122 | <property name="test.javahelperlib.main-class" value="de.ugoe.cs.util.TestAll" />
|
---|
123 | <property name="test.javahelperlib.results" value="${test.location.results}/javahelperlib" />
|
---|
124 | <path id="JavaHelperLibTest.classpath">
|
---|
125 | <pathelement location="${test.location.javahelperlib}" />
|
---|
126 | <path refid="JavaHelperLib.classpath" />
|
---|
127 | <path refid="JUnit.classpath" />
|
---|
128 | </path>
|
---|
129 |
|
---|
130 | <!-- Initialization Targets -->
|
---|
131 | <target name="init.build">
|
---|
132 | <mkdir dir="${build.location}" />
|
---|
133 | </target>
|
---|
134 | <target name="init.dist">
|
---|
135 | <mkdir dir="${dist.location}" />
|
---|
136 | <mkdir dir="${dist.location.main}" />
|
---|
137 | <mkdir dir="${dist.location.jfcmonitor}" />
|
---|
138 | </target>
|
---|
139 | <target name="init.downloads">
|
---|
140 | <mkdir dir="${downloads.location}"/>
|
---|
141 | </target>
|
---|
142 | <target name="init.javadoc">
|
---|
143 | <mkdir dir="${javadoc.location}" />
|
---|
144 | </target>
|
---|
145 | <target depends="init.build" name="init.eventbenchconsole">
|
---|
146 | <mkdir dir="${build.location.eventbenchconsole}" />
|
---|
147 | </target>
|
---|
148 | <target depends="init.build" name="init.eventbenchcore">
|
---|
149 | <mkdir dir="${build.location.eventbenchcore}" />
|
---|
150 | </target>
|
---|
151 | <target depends="init.build" name="init.javahelperlib">
|
---|
152 | <mkdir dir="${build.location.javahelperlib}" />
|
---|
153 | </target>
|
---|
154 | <target depends="init.build" name="init.jfcmonitor">
|
---|
155 | <mkdir dir="${build.location.jfcmonitor}" />
|
---|
156 | </target>
|
---|
157 | <target depends="init.build" name="init.junit">
|
---|
158 | <mkdir dir="${test.location.results}" />
|
---|
159 | <mkdir dir="${test.location.data}" />
|
---|
160 | <mkdir dir="${test.location.output}" />
|
---|
161 | </target>
|
---|
162 | <target depends="init.junit" name="init.eventbenchcore-test">
|
---|
163 | <mkdir dir="${test.location.eventbenchcore}" />
|
---|
164 | </target>
|
---|
165 | <target depends="init.junit" name="init.javahelperlib-test">
|
---|
166 | <mkdir dir="${test.location.javahelperlib}" />
|
---|
167 | <copy includeemptydirs="true" todir="${test.location.data}">
|
---|
168 | <fileset dir="${JavaHelperLibTest.location}/testdata" />
|
---|
169 | </copy>
|
---|
170 | </target>
|
---|
171 |
|
---|
172 | <!-- Clean-up Targets -->
|
---|
173 | <target name="clean.build">
|
---|
174 | <delete dir="${build.location}" />
|
---|
175 | </target>
|
---|
176 | <target name="clean.dist">
|
---|
177 | <delete dir="${dist.location}" />
|
---|
178 | </target>
|
---|
179 | <target name="clean.javadoc">
|
---|
180 | <delete dir="${javadoc.location}" />
|
---|
181 | </target>
|
---|
182 | <target name="clean.junit">
|
---|
183 | <delete dir="${test.location.results}" />
|
---|
184 | <delete dir="${test.location.data}" />
|
---|
185 | <delete dir="${test.location.output}" />
|
---|
186 | </target>
|
---|
187 | <target depends="clean.build,clean.dist,clean.javadoc,clean.junit" name="clean.all" />
|
---|
188 |
|
---|
189 | <!-- Build Targets -->
|
---|
190 | <target
|
---|
191 | depends="build.javahelperlib,build.eventbenchcore,build.eventbenchconsole,build.jfcmonitor"
|
---|
192 | name="build" />
|
---|
193 | <target depends="init.eventbenchconsole" name="build.eventbenchconsole">
|
---|
194 | <javac debug="true" debuglevel="${debuglevel}"
|
---|
195 | destdir="${build.location.eventbenchconsole}" source="${source}"
|
---|
196 | target="${target}" includeantruntime="false">
|
---|
197 | <src path="${EventBenchConsole.location}/src" />
|
---|
198 | <classpath refid="EventBenchConsole.classpath" />
|
---|
199 | </javac>
|
---|
200 | </target>
|
---|
201 | <target depends="init.eventbenchcore" name="build.eventbenchcore">
|
---|
202 | <javac debug="true" debuglevel="${debuglevel}"
|
---|
203 | destdir="${build.location.eventbenchcore}" source="${source}" target="${target}"
|
---|
204 | includeantruntime="false">
|
---|
205 | <src path="${EventBenchCore.location}/src" />
|
---|
206 | <classpath refid="EventBenchCore.classpath" />
|
---|
207 | </javac>
|
---|
208 | </target>
|
---|
209 | <target depends="init.javahelperlib" name="build.javahelperlib">
|
---|
210 | <javac debug="true" debuglevel="${debuglevel}" destdir="${build.location.javahelperlib}"
|
---|
211 | source="${source}" target="${target}" includeantruntime="false">
|
---|
212 | <src path="${JavaHelperLib.location}/src" />
|
---|
213 | <classpath refid="JavaHelperLib.classpath" />
|
---|
214 | </javac>
|
---|
215 | </target>
|
---|
216 | <target depends="init.jfcmonitor" name="build.jfcmonitor">
|
---|
217 | <javac debug="true" debuglevel="${debuglevel}" destdir="${build.location.jfcmonitor}"
|
---|
218 | source="${source}" target="${target}" includeantruntime="false">
|
---|
219 | <src path="${JFCMonitor.location}/src" />
|
---|
220 | <classpath refid="JFCMonitor.classpath" />
|
---|
221 | </javac>
|
---|
222 | </target>
|
---|
223 |
|
---|
224 | <!-- Distribution Targets -->
|
---|
225 | <target depends="build,init.dist,javadoc" name="dist">
|
---|
226 | <!-- dist of main components, i.e., the console -->
|
---|
227 | <pathconvert property="dist.libs" pathsep=" ">
|
---|
228 | <mapper>
|
---|
229 | <chainedmapper>
|
---|
230 | <flattenmapper />
|
---|
231 | <globmapper from="*" to="lib/*" />
|
---|
232 | </chainedmapper>
|
---|
233 | </mapper>
|
---|
234 | <path>
|
---|
235 | <fileset dir="lib">
|
---|
236 | <include name="**/*.jar" />
|
---|
237 | </fileset>
|
---|
238 | </path>
|
---|
239 | </pathconvert>
|
---|
240 | <property name="dist.classpath"
|
---|
241 | value="${dist.libs} ${JavaHelperLib.jarname} ${EventBenchCore.jarname}"></property>
|
---|
242 | <jar destfile="${dist.location.main}/${EventBenchConsole.jarname}"
|
---|
243 | basedir="${build.location.eventbenchconsole}">
|
---|
244 | <manifest>
|
---|
245 | <attribute name="Built-By" value="${user.name}" />
|
---|
246 | <attribute name="Main-Class" value="de.ugoe.cs.eventbench.Runner" />
|
---|
247 | <attribute name="Class-Path" value="${dist.classpath}" />
|
---|
248 | </manifest>
|
---|
249 | </jar>
|
---|
250 | <jar destfile="${dist.location.main}/${EventBenchCore.jarname}"
|
---|
251 | basedir="${build.location.eventbenchcore}">
|
---|
252 | <manifest>
|
---|
253 | <attribute name="Built-By" value="${user.name}" />
|
---|
254 | </manifest>
|
---|
255 | </jar>
|
---|
256 | <jar destfile="${dist.location.main}/${JavaHelperLib.jarname}"
|
---|
257 | basedir="${build.location.javahelperlib}">
|
---|
258 | <manifest>
|
---|
259 | <attribute name="Built-By" value="${user.name}" />
|
---|
260 | <attribute name="Class-Path" value="${dist.classpath}" />
|
---|
261 | </manifest>
|
---|
262 | </jar>
|
---|
263 | <copy includeemptydirs="false" todir="${dist.location.main}/lib">
|
---|
264 | <fileset dir="lib" />
|
---|
265 | </copy>
|
---|
266 | <copy todir="${dist.location.main}/misc">
|
---|
267 | <fileset dir="${EventBenchConsole.location}/misc" />
|
---|
268 | </copy>
|
---|
269 | <copy todir="${dist.location.main}/rules">
|
---|
270 | <fileset dir="${EventBenchConsole.location}/rules" />
|
---|
271 | </copy>
|
---|
272 |
|
---|
273 | <!-- dist of JFCMonitor -->
|
---|
274 | <jar destfile="${dist.location.jfcmonitor}/${JFCMonitor.jarname}"
|
---|
275 | basedir="${build.location.jfcmonitor}">
|
---|
276 | <manifest>
|
---|
277 | <attribute name="Built-By" value="${user.name}" />
|
---|
278 | <attribute name="Main-Class" value="de.ugoe.cs.eventbench.jfcmonitor.Runner" />
|
---|
279 | <attribute name="Class-Path" value="${JavaHelperLib.jarname}" />
|
---|
280 | </manifest>
|
---|
281 | </jar>
|
---|
282 |
|
---|
283 | <!-- copy Javadoc to dist -->
|
---|
284 | <copy includeemptydirs="false" todir="${dist.location.javadoc}">
|
---|
285 | <fileset dir="${javadoc.location}" />
|
---|
286 | </copy>
|
---|
287 | </target>
|
---|
288 |
|
---|
289 |
|
---|
290 | <target depends="init.downloads,dist" name="createDownloads">
|
---|
291 | <zip destfile="${downloads.location}/eventbench-complete.zip">
|
---|
292 | <fileset dir="${dist.location}" />
|
---|
293 | </zip>
|
---|
294 | <zip destfile="${downloads.location}/eventbench-console.zip">
|
---|
295 | <fileset dir="${dist.location.main}" />
|
---|
296 | </zip>
|
---|
297 | <zip destfile="${downloads.location}/eventbench-jfcmonitor.zip">
|
---|
298 | <fileset dir="${dist.location.jfcmonitor}" />
|
---|
299 | </zip>
|
---|
300 | <zip destfile="${downloads.location}/eventbench-javadoc.zip">
|
---|
301 | <fileset dir="${dist.location.javadoc}" />
|
---|
302 | </zip>
|
---|
303 | </target>
|
---|
304 |
|
---|
305 | <!-- Javadoc Targets -->
|
---|
306 | <target depends="init.javadoc" name="javadoc" description="o Create Javadocs (Requires Javadoc 1.4+)">
|
---|
307 | <javadoc destdir="${javadoc.location}"
|
---|
308 | additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
|
---|
309 | <classpath refid="JavaHelperLib.classpath" />
|
---|
310 | <classpath refid="EventBenchCore.classpath" />
|
---|
311 | <classpath refid="EventBenchConsole.classpath" />
|
---|
312 | <classpath refid="JFCMonitor.classpath" />
|
---|
313 | <link href="http://download.oracle.com/javase/6/docs/api/" />
|
---|
314 | <fileset dir="${JavaHelperLib.location}/src" includes="**/*.java" />
|
---|
315 | <fileset dir="${EventBenchCore.location}/src" includes="**/*.java" />
|
---|
316 | <fileset dir="${EventBenchConsole.location}/src" includes="**/*.java" />
|
---|
317 | <fileset dir="${JFCMonitor.location}/src" includes="**/*.java" />
|
---|
318 | </javadoc>
|
---|
319 | </target>
|
---|
320 |
|
---|
321 | <!-- JUnit Targets -->
|
---|
322 | <target depends="init.eventbenchcore-test" name="build.eventbenchcore-test">
|
---|
323 | <javac debug="true" debuglevel="${debuglevel}" destdir="${test.location.eventbenchcore}"
|
---|
324 | source="${source}" target="${target}" includeantruntime="false">
|
---|
325 | <src path="${EventBenchCoreTest.location}/src" />
|
---|
326 | <classpath refid="EventBenchCoreTest.classpath" />
|
---|
327 | </javac>
|
---|
328 | </target>
|
---|
329 | <target depends="init.javahelperlib-test" name="build.javahelperlib-test">
|
---|
330 | <javac debug="true" debuglevel="${debuglevel}" destdir="${test.location.javahelperlib}"
|
---|
331 | source="${source}" target="${target}" includeantruntime="false">
|
---|
332 | <src path="${JavaHelperLibTest.location}/src" />
|
---|
333 | <classpath refid="JavaHelperLibTest.classpath" />
|
---|
334 | </javac>
|
---|
335 | </target>
|
---|
336 |
|
---|
337 | <target depends="build.eventbenchcore,build.eventbenchcore-test"
|
---|
338 | name="junit.eventbenchcore">
|
---|
339 | <junit fork="on" printsummary="yes" haltonfailure="no">
|
---|
340 | <classpath refid="EventBenchCoreTest.classpath" />
|
---|
341 | <test name="${test.eventbenchcore.main-class}" haltonfailure="no"
|
---|
342 | outfile="${test.eventbenchcore.results}">
|
---|
343 | <formatter type="xml" />
|
---|
344 | </test>
|
---|
345 | </junit>
|
---|
346 | </target>
|
---|
347 | <target depends="build.javahelperlib,build.javahelperlib-test"
|
---|
348 | name="junit.javahelperlib">
|
---|
349 | <junit fork="on" printsummary="yes" haltonfailure="no">
|
---|
350 | <classpath refid="JavaHelperLibTest.classpath" />
|
---|
351 | <test name="${test.javahelperlib.main-class}" haltonfailure="no"
|
---|
352 | outfile="${test.javahelperlib.results}">
|
---|
353 | <formatter type="xml" />
|
---|
354 | </test>
|
---|
355 | </junit>
|
---|
356 | </target>
|
---|
357 |
|
---|
358 | <target depends="junit.eventbenchcore,junit.javahelperlib" name="junit" />
|
---|
359 | </project>
|
---|