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 | <pathelement location="${build.location.jfcmonitor}" />
|
---|
99 | <path refid="JavaHelperLib.classpath" />
|
---|
100 | </path>
|
---|
101 |
|
---|
102 | <!-- Emma Configuration -->
|
---|
103 | <property name="coverage.location" value="coverage" />
|
---|
104 | <property name="coverage.instrumented" value="inst" />
|
---|
105 | <property name="coverage.instrumented.javahelperlib" value="${coverage.instrumented}/javahelperlib" />
|
---|
106 | <property name="coverage.instrumented.eventbenchcore" value="${coverage.instrumented}/eventbenchcore" />
|
---|
107 | <path id="emma.classpath">
|
---|
108 | <pathelement location="lib-test/emma.jar" />
|
---|
109 | <pathelement location="lib-test/emma_ant.jar" />
|
---|
110 | </path>
|
---|
111 |
|
---|
112 | <taskdef resource="emma_ant.properties" classpathref="emma.classpath" />
|
---|
113 |
|
---|
114 | <!-- JUnit Test General Properties -->
|
---|
115 | <property name="test.location.results" value="test-results" />
|
---|
116 | <property name="test.location.data" value="testdata" />
|
---|
117 | <property name="test.location.output" value="testoutput" />
|
---|
118 | <path id="JUnit.classpath">
|
---|
119 | <pathelement location="lib-test/junit-4.10.jar" />
|
---|
120 | <pathelement location="lib-test/junit-addons-1.4.jar" />
|
---|
121 | <pathelement location="lib-test/cglib-nodep.jar" />
|
---|
122 | <pathelement location="lib-test/objenesis.jar" />
|
---|
123 | <pathelement location="lib-test/EqualsVerifier-1.0.2.jar" />
|
---|
124 | </path>
|
---|
125 |
|
---|
126 | <!-- JUnit Test EventBenchCore Properties -->
|
---|
127 | <property name="test.location.eventbenchcore" value="${build.location}/eventbenchcore-test" />
|
---|
128 | <property name="EventBenchCoreTest.location" value="../EventBenchCoreTest" />
|
---|
129 | <property name="test.eventbenchcore.main-class" value="de.ugoe.cs.eventbench.TestAll" />
|
---|
130 | <property name="test.eventbenchcore.results" value="${test.location.results}/eventbenchcore" />
|
---|
131 | <path id="EventBenchCoreJUnitCompile.classpath">
|
---|
132 | <pathelement location="${test.location.eventbenchcore}" />
|
---|
133 | <!--<pathelement location="${coverage.instrumented.eventbenchcore}" /> -->
|
---|
134 | <path refid="EventBenchCore.classpath" />
|
---|
135 | <path refid="JUnit.classpath" />
|
---|
136 | </path>
|
---|
137 | <path id="EventBenchCoreJUnitExecute.classpath">
|
---|
138 | <pathelement location="${coverage.instrumented.eventbenchcore}" />
|
---|
139 | <path refid="EventBenchCoreJUnitCompile.classpath" />
|
---|
140 | <path refid="emma.classpath" />
|
---|
141 | </path>
|
---|
142 |
|
---|
143 | <!-- JUnit Test JavaHelperLib Properties -->
|
---|
144 | <property name="test.location.javahelperlib" value="${build.location}/javahelperlib-test" />
|
---|
145 | <property name="JavaHelperLibTest.location" value="../JavaHelperLibTest" />
|
---|
146 | <property name="test.javahelperlib.main-class" value="de.ugoe.cs.util.TestAll" />
|
---|
147 | <property name="test.javahelperlib.results" value="${test.location.results}/javahelperlib" />
|
---|
148 | <path id="JavaHelperLibJUnitCompile.classpath">
|
---|
149 | <pathelement location="${test.location.javahelperlib}" />
|
---|
150 | <path refid="JavaHelperLib.classpath" />
|
---|
151 | <path refid="JUnit.classpath" />
|
---|
152 | </path>
|
---|
153 | <path id="JavaHelperLibJUnitExecute.classpath">
|
---|
154 | <pathelement location="${coverage.instrumented.javahelperlib}" />
|
---|
155 | <path refid="JavaHelperLibJUnitCompile.classpath" />
|
---|
156 | <path refid="emma.classpath" />
|
---|
157 | </path>
|
---|
158 |
|
---|
159 | <!-- FindBugs Properties -->
|
---|
160 | <property name="findbugs.results.location" value="findbugs" />
|
---|
161 | <path id="findbugs.classpath">
|
---|
162 | <pathelement location="lib-test/findbugs-ant.jar" />
|
---|
163 | </path>
|
---|
164 | <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask"
|
---|
165 | classpathref="findbugs.classpath" />
|
---|
166 |
|
---|
167 | <!-- Initialization Targets -->
|
---|
168 | <target name="init.build">
|
---|
169 | <mkdir dir="${build.location}" />
|
---|
170 | </target>
|
---|
171 | <target name="init.dist">
|
---|
172 | <mkdir dir="${dist.location}" />
|
---|
173 | <mkdir dir="${dist.location.main}" />
|
---|
174 | <mkdir dir="${dist.location.jfcmonitor}" />
|
---|
175 | </target>
|
---|
176 | <target name="init.downloads">
|
---|
177 | <mkdir dir="${downloads.location}" />
|
---|
178 | </target>
|
---|
179 | <target name="init.javadoc">
|
---|
180 | <mkdir dir="${javadoc.location}" />
|
---|
181 | </target>
|
---|
182 | <target depends="init.build" name="init.eventbenchconsole">
|
---|
183 | <mkdir dir="${build.location.eventbenchconsole}" />
|
---|
184 | </target>
|
---|
185 | <target depends="init.build" name="init.eventbenchcore">
|
---|
186 | <mkdir dir="${build.location.eventbenchcore}" />
|
---|
187 | </target>
|
---|
188 | <target depends="init.build" name="init.javahelperlib">
|
---|
189 | <mkdir dir="${build.location.javahelperlib}" />
|
---|
190 | </target>
|
---|
191 | <target depends="init.build" name="init.jfcmonitor">
|
---|
192 | <mkdir dir="${build.location.jfcmonitor}" />
|
---|
193 | </target>
|
---|
194 | <target depends="init.build" name="init.junit">
|
---|
195 | <mkdir dir="${test.location.results}" />
|
---|
196 | <mkdir dir="${test.location.data}" />
|
---|
197 | <mkdir dir="${test.location.output}" />
|
---|
198 | </target>
|
---|
199 | <target depends="init.junit" name="init.eventbenchcore-test">
|
---|
200 | <mkdir dir="${test.location.eventbenchcore}" />
|
---|
201 | </target>
|
---|
202 | <target depends="init.junit" name="init.javahelperlib-test">
|
---|
203 | <mkdir dir="${test.location.javahelperlib}" />
|
---|
204 | <copy includeemptydirs="true" todir="${test.location.data}">
|
---|
205 | <fileset dir="${JavaHelperLibTest.location}/testdata" />
|
---|
206 | </copy>
|
---|
207 | </target>
|
---|
208 | <target name="init.emma">
|
---|
209 | <mkdir dir="${coverage.instrumented}" />
|
---|
210 | <mkdir dir="${coverage.location}" />
|
---|
211 | </target>
|
---|
212 | <target name="init.findbugs">
|
---|
213 | <mkdir dir="${findbugs.results.location}" />
|
---|
214 | </target>
|
---|
215 |
|
---|
216 | <!-- Clean-up Targets -->
|
---|
217 | <target name="clean.build">
|
---|
218 | <delete dir="${build.location}" />
|
---|
219 | </target>
|
---|
220 | <target name="clean.dist">
|
---|
221 | <delete dir="${dist.location}" />
|
---|
222 | </target>
|
---|
223 | <target name="clean.javadoc">
|
---|
224 | <delete dir="${javadoc.location}" />
|
---|
225 | </target>
|
---|
226 | <target name="clean.junit">
|
---|
227 | <delete dir="${test.location.results}" />
|
---|
228 | <delete dir="${test.location.data}" />
|
---|
229 | <delete dir="${test.location.output}" />
|
---|
230 | </target>
|
---|
231 | <target name="clean.emma">
|
---|
232 | <delete dir="${coverage.instrumented}" />
|
---|
233 | </target>
|
---|
234 | <target name="clean.findbugs">
|
---|
235 | <delete dir="${findbugs.results.location}" />
|
---|
236 | </target>
|
---|
237 | <target depends="clean.build,clean.dist,clean.javadoc,clean.junit,clean.emma,clean.findbugs"
|
---|
238 | name="clean.all" />
|
---|
239 |
|
---|
240 | <!-- Build Targets -->
|
---|
241 | <target
|
---|
242 | depends="build.javahelperlib,build.eventbenchcore,build.eventbenchconsole,build.jfcmonitor"
|
---|
243 | name="build" />
|
---|
244 | <target depends="init.eventbenchconsole" name="build.eventbenchconsole">
|
---|
245 | <javac debug="true" debuglevel="${debuglevel}"
|
---|
246 | destdir="${build.location.eventbenchconsole}" source="${source}"
|
---|
247 | target="${target}" includeantruntime="false">
|
---|
248 | <src path="${EventBenchConsole.location}/src" />
|
---|
249 | <classpath refid="EventBenchConsole.classpath" />
|
---|
250 | </javac>
|
---|
251 | </target>
|
---|
252 | <target depends="init.eventbenchcore" name="build.eventbenchcore">
|
---|
253 | <javac debug="true" debuglevel="${debuglevel}"
|
---|
254 | destdir="${build.location.eventbenchcore}" source="${source}" target="${target}"
|
---|
255 | includeantruntime="false">
|
---|
256 | <src path="${EventBenchCore.location}/src" />
|
---|
257 | <classpath refid="EventBenchCore.classpath" />
|
---|
258 | </javac>
|
---|
259 | </target>
|
---|
260 | <target depends="init.javahelperlib" name="build.javahelperlib">
|
---|
261 | <javac debug="true" debuglevel="${debuglevel}" destdir="${build.location.javahelperlib}"
|
---|
262 | source="${source}" target="${target}" includeantruntime="false">
|
---|
263 | <src path="${JavaHelperLib.location}/src" />
|
---|
264 | <classpath refid="JavaHelperLib.classpath" />
|
---|
265 | </javac>
|
---|
266 | </target>
|
---|
267 | <target depends="init.jfcmonitor" name="build.jfcmonitor">
|
---|
268 | <javac debug="true" debuglevel="${debuglevel}" destdir="${build.location.jfcmonitor}"
|
---|
269 | source="${source}" target="${target}" includeantruntime="false">
|
---|
270 | <src path="${JFCMonitor.location}/src" />
|
---|
271 | <classpath refid="JFCMonitor.classpath" />
|
---|
272 | </javac>
|
---|
273 | </target>
|
---|
274 |
|
---|
275 | <!-- Distribution Targets -->
|
---|
276 | <target depends="build,init.dist,javadoc" name="dist">
|
---|
277 | <!-- dist of main components, i.e., the console -->
|
---|
278 | <pathconvert property="dist.libs" pathsep=" ">
|
---|
279 | <mapper>
|
---|
280 | <chainedmapper>
|
---|
281 | <flattenmapper />
|
---|
282 | <globmapper from="*" to="lib/*" />
|
---|
283 | </chainedmapper>
|
---|
284 | </mapper>
|
---|
285 | <path>
|
---|
286 | <fileset dir="lib">
|
---|
287 | <include name="**/*.jar" />
|
---|
288 | </fileset>
|
---|
289 | </path>
|
---|
290 | </pathconvert>
|
---|
291 | <property name="dist.classpath"
|
---|
292 | value="${dist.libs} ${JavaHelperLib.jarname} ${EventBenchCore.jarname}"></property>
|
---|
293 | <jar destfile="${dist.location.main}/${EventBenchConsole.jarname}"
|
---|
294 | basedir="${build.location.eventbenchconsole}">
|
---|
295 | <manifest>
|
---|
296 | <attribute name="Built-By" value="${user.name}" />
|
---|
297 | <attribute name="Main-Class" value="de.ugoe.cs.eventbench.Runner" />
|
---|
298 | <attribute name="Class-Path" value="${dist.classpath}" />
|
---|
299 | </manifest>
|
---|
300 | </jar>
|
---|
301 | <jar destfile="${dist.location.main}/${EventBenchCore.jarname}"
|
---|
302 | basedir="${build.location.eventbenchcore}">
|
---|
303 | <manifest>
|
---|
304 | <attribute name="Built-By" value="${user.name}" />
|
---|
305 | </manifest>
|
---|
306 | </jar>
|
---|
307 | <jar destfile="${dist.location.main}/${JavaHelperLib.jarname}"
|
---|
308 | basedir="${build.location.javahelperlib}">
|
---|
309 | <manifest>
|
---|
310 | <attribute name="Built-By" value="${user.name}" />
|
---|
311 | <attribute name="Class-Path" value="${dist.classpath}" />
|
---|
312 | </manifest>
|
---|
313 | </jar>
|
---|
314 | <copy includeemptydirs="false" todir="${dist.location.main}/lib">
|
---|
315 | <fileset dir="lib" />
|
---|
316 | </copy>
|
---|
317 | <copy todir="${dist.location.main}/misc">
|
---|
318 | <fileset dir="${EventBenchConsole.location}/misc" />
|
---|
319 | </copy>
|
---|
320 | <copy todir="${dist.location.main}/rules">
|
---|
321 | <fileset dir="${EventBenchConsole.location}/rules" />
|
---|
322 | </copy>
|
---|
323 |
|
---|
324 | <!-- dist of JFCMonitor -->
|
---|
325 | <jar destfile="${dist.location.jfcmonitor}/${JFCMonitor.jarname}"
|
---|
326 | basedir="${build.location.jfcmonitor}">
|
---|
327 | <manifest>
|
---|
328 | <attribute name="Built-By" value="${user.name}" />
|
---|
329 | <attribute name="Main-Class" value="de.ugoe.cs.eventbench.jfcmonitor.Runner" />
|
---|
330 | <attribute name="Class-Path" value="${JavaHelperLib.jarname}" />
|
---|
331 | </manifest>
|
---|
332 | </jar>
|
---|
333 | <copy todir="${dist.location.jfcmonitor}">
|
---|
334 | <fileset file="${dist.location.main}/${JavaHelperLib.jarname}"/>
|
---|
335 | </copy>
|
---|
336 |
|
---|
337 | <!-- copy Javadoc to dist -->
|
---|
338 | <copy includeemptydirs="false" todir="${dist.location.javadoc}">
|
---|
339 | <fileset dir="${javadoc.location}" />
|
---|
340 | </copy>
|
---|
341 | </target>
|
---|
342 |
|
---|
343 |
|
---|
344 | <target depends="init.downloads,dist" name="createDownloads">
|
---|
345 | <zip destfile="${downloads.location}/eventbench-complete.zip">
|
---|
346 | <fileset dir="${dist.location}" />
|
---|
347 | </zip>
|
---|
348 | <zip destfile="${downloads.location}/eventbench-console.zip">
|
---|
349 | <fileset dir="${dist.location.main}" />
|
---|
350 | </zip>
|
---|
351 | <zip destfile="${downloads.location}/eventbench-jfcmonitor.zip">
|
---|
352 | <fileset dir="${dist.location.jfcmonitor}" />
|
---|
353 | </zip>
|
---|
354 | <zip destfile="${downloads.location}/eventbench-javadoc.zip">
|
---|
355 | <fileset dir="${dist.location.javadoc}" />
|
---|
356 | </zip>
|
---|
357 | </target>
|
---|
358 |
|
---|
359 | <!-- Javadoc Targets -->
|
---|
360 | <target depends="init.javadoc" name="javadoc"
|
---|
361 | description="o Create Javadocs (Requires Javadoc 1.4+)">
|
---|
362 | <javadoc destdir="${javadoc.location}"
|
---|
363 | additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
|
---|
364 | <classpath refid="JavaHelperLib.classpath" />
|
---|
365 | <classpath refid="EventBenchCore.classpath" />
|
---|
366 | <classpath refid="EventBenchConsole.classpath" />
|
---|
367 | <classpath refid="JFCMonitor.classpath" />
|
---|
368 | <link href="http://download.oracle.com/javase/6/docs/api/" />
|
---|
369 | <fileset dir="${JavaHelperLib.location}/src" includes="**/*.java" />
|
---|
370 | <fileset dir="${EventBenchCore.location}/src" includes="**/*.java" />
|
---|
371 | <fileset dir="${EventBenchConsole.location}/src" includes="**/*.java" />
|
---|
372 | <fileset dir="${JFCMonitor.location}/src" includes="**/*.java" />
|
---|
373 | </javadoc>
|
---|
374 | </target>
|
---|
375 |
|
---|
376 | <!-- JUnit Targets -->
|
---|
377 | <target depends="init.eventbenchcore-test, emma.instrument.eventbenchcore"
|
---|
378 | name="build.eventbenchcore-test">
|
---|
379 | <javac debug="true" debuglevel="${debuglevel}" destdir="${test.location.eventbenchcore}"
|
---|
380 | source="${source}" target="${target}" includeantruntime="false">
|
---|
381 | <src path="${EventBenchCoreTest.location}/src" />
|
---|
382 | <classpath refid="EventBenchCoreJUnitCompile.classpath" />
|
---|
383 | </javac>
|
---|
384 | </target>
|
---|
385 | <target depends="init.javahelperlib-test, emma.instrument.javahelperlib"
|
---|
386 | name="build.javahelperlib-test">
|
---|
387 | <javac debug="true" debuglevel="${debuglevel}" destdir="${test.location.javahelperlib}"
|
---|
388 | source="${source}" target="${target}" includeantruntime="false">
|
---|
389 | <src path="${JavaHelperLibTest.location}/src" />
|
---|
390 | <classpath refid="JavaHelperLibJUnitCompile.classpath" />
|
---|
391 | </javac>
|
---|
392 | </target>
|
---|
393 |
|
---|
394 | <target depends="emma.instrument.eventbenchcore,build.eventbenchcore-test"
|
---|
395 | name="junit.eventbenchcore">
|
---|
396 | <junit fork="on" printsummary="yes" haltonfailure="no">
|
---|
397 | <classpath refid="EventBenchCoreJUnitExecute.classpath" />
|
---|
398 | <test name="${test.eventbenchcore.main-class}" haltonfailure="no"
|
---|
399 | outfile="${test.eventbenchcore.results}">
|
---|
400 | <formatter type="xml" />
|
---|
401 | </test>
|
---|
402 | <jvmarg
|
---|
403 | value="-Demma.coverage.out.file=${coverage.location}/eventbenchcore.emma" />
|
---|
404 | <jvmarg value="-Demma.coverage.out.merge=true" />
|
---|
405 | </junit>
|
---|
406 | </target>
|
---|
407 | <target depends="emma.instrument.javahelperlib,build.javahelperlib-test"
|
---|
408 | name="junit.javahelperlib">
|
---|
409 | <junit fork="on" printsummary="yes" haltonfailure="no">
|
---|
410 | <classpath refid="JavaHelperLibJUnitExecute.classpath" />
|
---|
411 | <test name="${test.javahelperlib.main-class}" haltonfailure="no"
|
---|
412 | outfile="${test.javahelperlib.results}">
|
---|
413 | <formatter type="xml" />
|
---|
414 | </test>
|
---|
415 | <jvmarg
|
---|
416 | value="-Demma.coverage.out.file=${coverage.location}/javahelperlib.emma" />
|
---|
417 | <jvmarg value="-Demma.coverage.out.merge=true" />
|
---|
418 | </junit>
|
---|
419 | </target>
|
---|
420 |
|
---|
421 | <target depends="junit.javahelperlib,junit.eventbenchcore" name="junit" />
|
---|
422 |
|
---|
423 | <!-- Emma Targets -->
|
---|
424 | <target depends="build.javahelperlib, init.emma" name="emma.instrument.javahelperlib">
|
---|
425 | <emma enabled="true">
|
---|
426 | <instr instrpath="${build.location.javahelperlib}" destdir="${coverage.instrumented.javahelperlib}"
|
---|
427 | metadatafile="${coverage.location}/javahelperlib.emma" merge="true" />
|
---|
428 | </emma>
|
---|
429 | </target>
|
---|
430 | <target depends="build.eventbenchcore, init.emma" name="emma.instrument.eventbenchcore">
|
---|
431 | <emma enabled="true">
|
---|
432 | <instr instrpath="${build.location.eventbenchcore}" destdir="${coverage.instrumented.eventbenchcore}"
|
---|
433 | metadatafile="${coverage.location}/eventbenchcore.emma" merge="true" />
|
---|
434 | </emma>
|
---|
435 | </target>
|
---|
436 | <target depends="junit" name="emma.report">
|
---|
437 | <emma enabled="true">
|
---|
438 | <report sourcepath="${JavaHelperLib.location}">
|
---|
439 | <fileset dir="${coverage.location}">
|
---|
440 | <include name="*.emma" />
|
---|
441 | </fileset>
|
---|
442 | <xml outfile="${coverage.location}/coverage.xml" depth="method" />
|
---|
443 | </report>
|
---|
444 | </emma>
|
---|
445 | </target>
|
---|
446 |
|
---|
447 | <!-- FindBugs Targets -->
|
---|
448 | <target depends="dist" name="findbugs.javahelperlib">
|
---|
449 | <mkdir dir="${findbugs.results.location}" />
|
---|
450 | <findbugs home="lib-test" output="xml"
|
---|
451 | outputFile="${findbugs.results.location}/findbugs-javahelperlib.xml">
|
---|
452 | <auxClasspath refid="JavaHelperLib.classpath" />
|
---|
453 | <sourcePath path="${JavaHelperLib.location}" />
|
---|
454 | <class location="${dist.location.main}/${JavaHelperLib.jarname}" />
|
---|
455 | </findbugs>
|
---|
456 | </target>
|
---|
457 | <target depends="dist" name="findbugs.eventbenchcore">
|
---|
458 | <mkdir dir="${findbugs.results.location}" />
|
---|
459 | <findbugs home="lib-test" output="xml"
|
---|
460 | outputFile="${findbugs.results.location}/findbugs-eventbenchcore.xml">
|
---|
461 | <auxClasspath refid="EventBenchCore.classpath" />
|
---|
462 | <sourcePath path="${EventBenchCore.location}" />
|
---|
463 | <class location="${dist.location.main}/${EventBenchCore.jarname}" />
|
---|
464 | </findbugs>
|
---|
465 | </target>
|
---|
466 | <target depends="dist" name="findbugs.eventbenchconsole">
|
---|
467 | <mkdir dir="${findbugs.results.location}" />
|
---|
468 | <findbugs home="lib-test" output="xml"
|
---|
469 | outputFile="${findbugs.results.location}/findbugs-eventbenchconsole.xml">
|
---|
470 | <auxClasspath refid="EventBenchConsole.classpath" />
|
---|
471 | <sourcePath path="${EventBenchConsole.location}" />
|
---|
472 | <class location="${dist.location.main}/${EventBenchConsole.jarname}" />
|
---|
473 | </findbugs>
|
---|
474 | </target>
|
---|
475 | <target depends="dist" name="findbugs.jfcmonitor">
|
---|
476 | <mkdir dir="${findbugs.results.location}" />
|
---|
477 | <findbugs home="lib-test" output="xml"
|
---|
478 | outputFile="${findbugs.results.location}/findbugs-jfcmonitor.xml">
|
---|
479 | <auxClasspath refid="JFCMonitor.classpath" />
|
---|
480 | <sourcePath path="${JFCMonitor.location}" />
|
---|
481 | <class location="${dist.location.jfcmonitor}/${JFCMonitor.jarname}" />
|
---|
482 | </findbugs>
|
---|
483 | </target>
|
---|
484 | <target depends="findbugs.javahelperlib,findbugs.eventbenchcore,findbugs.eventbenchconsole,findbugs.jfcmonitor" name="findbugs" />
|
---|
485 | </project>
|
---|