source: trunk/JavaCommons/build.xml @ 423

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