source: trunk/JavaCommons/build.xml @ 408

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