source: trunk/ant/toplevel.xml @ 6686

Revision 6686, 33.3 KB checked in by curtis, 9 years ago (diff)

Fix up test targets in Ant build scripts.

Line 
1<!--
2toplevel.xml
3
4Toplevel targets for LOCI Software builds.
5Download Apache Ant from http://ant.apache.org/.
6Type "ant -p" for a list of targets.
7-->
8
9<project>
10  <property name="root.dir" location="${basedir}"/>
11  <import file="${root.dir}/ant/global.xml"/>
12  <property file="${root.dir}/ant/toplevel.properties"/>
13
14  <!-- Global build targets -->
15
16  <target name="jars"
17    depends="copy-jars,
18      jar-autogen,
19      jar-checks,
20      jar-common,
21      jar-flow,
22      jar-formats,
23      jar-jai,
24      jar-jvmlink,
25      jar-loci-plugins,
26      jar-lwf-stubs,
27      jar-mdbtools,
28      jar-multi-lut,
29      jar-ome-editor,
30      jar-ome-io,
31      jar-ome-plugins,
32      jar-ome-xml,
33      jar-poi-loci,
34      jar-slim,
35      jar-tests,
36      jar-visbio"
37    description="generate JAR files for LOCI software packages"/>
38
39  <target name="osgi"
40    depends="copy-jars,
41      osgi-autogen,
42      osgi-checks,
43      osgi-common,
44      osgi-flow,
45      osgi-formats,
46      osgi-jai,
47      osgi-jvmlink,
48      osgi-loci-plugins,
49      osgi-lwf-stubs,
50      osgi-mdbtools,
51      osgi-multi-lut,
52      osgi-ome-editor,
53      osgi-ome-io,
54      osgi-ome-plugins,
55      osgi-ome-xml,
56      osgi-poi-loci,
57      osgi-slim,
58      osgi-tests,
59      osgi-visbio"
60    description="generate OSGi bundles for LOCI software packages"/>
61
62  <!--
63  NB: Findbugs target does not test autogenerated code, forks, legacy and stubs:
64    findbugs-bf-ice
65    findbugs-jai
66    findbugs-jvmlink
67    findbugs-lwf-stubs
68    findbugs-mdbtools
69    findbugs-multi-lut
70    findbugs-ome-editor
71    findbugs-ome-notes
72    findbugs-ome-xml
73    findbugs-poi-loci
74  -->
75  <target name="findbugs"
76    depends="findbugs-autogen,
77      findbugs-checks,
78      findbugs-common,
79      findbugs-flow,
80      findbugs-formats,
81      findbugs-loci-plugins,
82      findbugs-ome-io,
83      findbugs-ome-plugins,
84      findbugs-slim,
85      findbugs-tests,
86      findbugs-visbio"
87    description="run findbugs on most components"/>
88
89  <target name="clean"
90    depends="
91      clean-autogen,
92      clean-checks,
93      clean-common,
94      clean-flow,
95      clean-formats,
96      clean-jai,
97      clean-jvmlink,
98      clean-loci-plugins,
99      clean-lwf-stubs,
100      clean-mdbtools,
101      clean-multi-lut,
102      clean-ome-editor,
103      clean-ome-io,
104      clean-ome-plugins,
105      clean-ome-xml,
106      clean-poi-loci,
107      clean-slim,
108      clean-tests,
109      clean-visbio"
110    description="remove all build files">
111    <delete dir="${artifact.dir}"/>
112    <delete dir="build"/>
113  </target>
114
115  <target name="test"
116    depends="test-autogen,
117      test-checks,
118      test-common,
119      test-flow,
120      test-formats,
121      test-jai,
122      test-jvmlink,
123      test-loci-plugins,
124      test-lwf-stubs,
125      test-mdbtools,
126      test-multi-lut,
127      test-ome-editor,
128      test-ome-io,
129      test-ome-plugins,
130      test-ome-xml,
131      test-poi-loci,
132      test-tests"
133    description="test all components">
134  </target>
135
136  <target name="scan-deps">
137    <exec dir="${root.dir}" executable="perl" failonerror="true">
138      <arg value="scan-deps.pl"/>
139      <arg value="-nosummary"/>
140    </exec>
141  </target>
142
143  <target name="utils"
144    depends="jars,
145      utils-common,
146      utils-formats,
147      utils-loci-plugins"
148    description="compile all extra utilities">
149    <echo>----------=========== utils ===========----------</echo>
150    <delete>
151      <fileset dir="${toplevel-utils.dir}" includes="*.class"/>
152    </delete>
153    <javac debug="true" deprecation="true" source="1.5" target="1.5"
154      srcdir="${toplevel-utils.dir}" includes="*.java">
155      <classpath>
156        <fileset dir="${artifact.dir}">
157          <include name="*.jar"/>
158        </fileset>
159      </classpath>
160    </javac>
161  </target>
162
163  <target name="docs" depends="jars"
164    description="generate Javadocs for LOCI software packages">
165    <echo>----------=========== Javadocs ===========----------</echo>
166    <tstamp>
167      <format property="YEAR" pattern="yyyy"/>
168    </tstamp>
169    <javadoc sourcepath="${merged-docs.source}"
170      classpath="${merged-docs.classpath}"
171      destdir="${merged-docs.dir}/api"
172      maxmemory="${merged-docs.memory}"
173      failonerror="true" author="true" version="true" use="true"
174      nodeprecated="true" windowtitle="LOCI Software API">
175      <doctitle><![CDATA[<h1>LOCI Software</h1>]]></doctitle>
176      <bottom><![CDATA[${copyright.begin} ${YEAR} ${copyright.end}]]></bottom>
177      <link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
178      <link href="http://hudson.openmicroscopy.org.uk/job/OMEJAVA/javadoc/"/>
179      <link href="http://rsbweb.nih.gov/ij/developer/api/"/>
180      <link href="http://www.ssec.wisc.edu/visad-docs/javadoc/"/>
181      <!--<link href="http://www.jdocs.com/formlayout/1.0.4/api/"/>-->
182      <!--<link href="http://www.jdocs.com/looks/1.2.2/api/"/>-->
183    </javadoc>
184  </target>
185
186  <target name="docs-zip" depends="docs"
187    description="generate a Zip containing the Javadocs">
188    <zip destfile="${artifact.dir}/bio-formats-javadocs.zip"
189      basedir="${merged-docs.dir}"/>
190  </target>
191
192  <target name="copy-jars">
193    <!-- copy third party JARs into artifacts folder -->
194    <!-- necessary for runtime classpath dependencies to function properly -->
195    <copy todir="${artifact.dir}" preservelastmodified="true">
196      <fileset dir="${lib.dir}" includes="*.jar"/>
197    </copy>
198  </target>
199
200  <!-- LOCI common library -->
201
202  <target name="compile-common"
203    description="compile classes for LOCI common library">
204    <ant dir="components/common" target="common.compile"/>
205  </target>
206
207  <target name="jar-common"
208    description="generate JAR file for LOCI common library">
209    <ant dir="components/common" target="common.jar"/>
210  </target>
211
212  <target name="osgi-common" depends="jar-common"
213    description="generate OSGi bundle for LOCI common library">
214    <ant dir="components/common" target="common.osgi"/>
215  </target>
216
217  <target name="findbugs-common"
218    description="run findbugs on LOCI common library">
219    <ant dir="components/common" target="common.findbugs"/>
220  </target>
221
222  <target name="clean-common"
223    description="remove build files for LOCI common library">
224    <ant dir="components/common" target="common.clean"/>
225  </target>
226
227  <target name="utils-common" depends="jar-common"
228    description="compile extra utilities for LOCI common library">
229    <ant dir="components/common" target="common.utils"/>
230  </target>
231
232  <target name="test-common"
233    description="compile and run tests for LOCI common library">
234    <ant dir="components/common" target="test"/>
235  </target>
236
237  <!-- JAI Image I/O Tools library -->
238
239  <target name="compile-jai"
240    description="compile classes for JAI Image I/O Tools library">
241    <ant dir="components/forks/jai" target="jai.compile"/>
242  </target>
243
244  <target name="jar-jai"
245    description="generate JAR file for JAI Image I/O Tools library">
246    <ant dir="components/forks/jai" target="jai.jar"/>
247  </target>
248
249  <target name="osgi-jai" depends="jar-jai"
250    description="generate OSGi bundle for JAI Image I/O Tools library">
251    <ant dir="components/forks/jai" target="jai.osgi"/>
252  </target>
253
254  <target name="findbugs-jai"
255    description="run findbugs on JAI Image I/O Tools library">
256    <ant dir="components/forks/jai" target="jai.findbugs"/>
257  </target>
258
259  <target name="clean-jai"
260    description="remove build files for JAI Image I/O Tools library">
261    <ant dir="components/forks/jai" target="jai.clean"/>
262  </target>
263
264  <target name="test-jai"
265    description="compile and run tests for JAI Image I/O Tools library">
266    <ant dir="components/forks/jai" target="jai.test"/>
267  </target>
268
269  <!-- Apache POI Java library -->
270
271  <target name="compile-poi-loci"
272    depends="compile-common"
273    description="compile classes for Apache POI library">
274    <ant dir="components/forks/poi" target="poi-loci.compile"/>
275  </target>
276
277  <target name="jar-poi-loci"
278    depends="jar-common"
279    description="generate JAR file for Apache POI library">
280    <ant dir="components/forks/poi" target="poi-loci.jar"/>
281  </target>
282
283  <target name="osgi-poi-loci" depends="jar-poi-loci"
284    description="generate OSGi bundle for Apache POI library">
285    <ant dir="components/forks/poi" target="poi-loci.osgi"/>
286  </target>
287
288  <target name="findbugs-poi-loci"
289    description="run findbugs on Apache POI library">
290    <ant dir="components/forks/poi" target="poi-loci.findbugs"/>
291  </target>
292
293  <target name="clean-poi-loci"
294    depends="clean-common"
295    description="remove build files for Apache POI library">
296    <ant dir="components/forks/poi" target="poi-loci.clean"/>
297  </target>
298
299  <target name="test-poi-loci"
300    description="compile and run tests for Apache POI library">
301    <ant dir="components/forks/poi" target="poi-loci.test"/>
302  </target>
303
304  <!-- MDB Tools Java library -->
305
306  <target name="compile-mdbtools"
307    description="compile classes for MDB Tools Java library">
308    <ant dir="components/forks/mdbtools" target="mdbtools.compile"/>
309  </target>
310
311  <target name="jar-mdbtools"
312    description="generate JAR file for MDB Tools Java library">
313    <ant dir="components/forks/mdbtools" target="mdbtools.jar"/>
314  </target>
315
316  <target name="osgi-mdbtools" depends="jar-mdbtools"
317    description="generate OSGi bundle for MDB Tools Java library">
318    <ant dir="components/forks/mdbtools" target="mdbtools.osgi"/>
319  </target>
320
321  <target name="findbugs-mdbtools"
322    description="run findbugs on MDB Tools Java library">
323    <ant dir="components/forks/mdbtools" target="mdbtools.findbugs"/>
324  </target>
325
326  <target name="clean-mdbtools"
327    description="remove build files for MDB Tools Java library">
328    <ant dir="components/forks/mdbtools" target="mdbtools.clean"/>
329  </target>
330
331  <target name="test-mdbtools"
332    description="compile and run tests for MDB Tools Java library">
333    <ant dir="components/forks/mdbtools" target="mdbtools.test"/>
334  </target>
335
336  <!-- OME-XML Java library -->
337
338  <target name="compile-ome-xml"
339    description="compile classes for OME-XML Java library">
340    <ant dir="components/ome-xml" target="ome-xml.compile"/>
341  </target>
342
343  <target name="jar-ome-xml"
344    description="generate JAR file for OME-XML Java library">
345    <ant dir="components/ome-xml" target="ome-xml.jar"/>
346  </target>
347
348  <target name="osgi-ome-xml" depends="jar-ome-xml"
349    description="generate OSGi bundle for OME-XML Java library">
350    <ant dir="components/ome-xml" target="ome-xml.osgi"/>
351  </target>
352
353  <target name="findbugs-ome-xml"
354    description="run findbugs on OME-XML Java library">
355    <ant dir="components/ome-xml" target="ome-xml.findbugs"/>
356  </target>
357
358  <target name="clean-ome-xml"
359    description="remove build files for OME-XML Java library">
360    <ant dir="components/ome-xml" target="ome-xml.clean"/>
361  </target>
362
363  <target name="test-ome-xml"
364    description="compile and run tests for OME-XML Java library">
365    <ant dir="components/ome-xml" target="ome-xml.test"/>
366  </target>
367
368  <!-- LWF stubs -->
369
370  <target name="compile-lwf-stubs"
371    description="compile classes for LWF stubs">
372    <ant dir="components/stubs/lwf-stubs" target="lwf-stubs.compile"/>
373  </target>
374
375  <target name="jar-lwf-stubs"
376    description="generate JAR file for LWF stubs">
377    <ant dir="components/stubs/lwf-stubs" target="lwf-stubs.jar"/>
378  </target>
379
380  <target name="osgi-lwf-stubs" depends="jar-lwf-stubs"
381    description="generate OSGi bundle for LWF stubs">
382    <ant dir="components/stubs/lwf-stubs" target="lwf-stubs.osgi"/>
383  </target>
384
385  <target name="findbugs-lwf-stubs"
386    description="run findbugs on LWF stubs">
387    <ant dir="components/stubs/lwf-stubs" target="lwf-stubs.findbugs"/>
388  </target>
389
390  <target name="clean-lwf-stubs"
391    description="remove build files for LWF stubs">
392    <ant dir="components/stubs/lwf-stubs" target="lwf-stubs.clean"/>
393  </target>
394
395  <target name="test-lwf-stubs"
396    description="compile and run tests for LWF stubs">
397    <ant dir="components/stubs/lwf-stubs" target="lwf-stubs.test"/>
398  </target>
399
400  <!-- Bio-Formats -->
401
402  <target name="compile-formats"
403    depends="compile-common,
404      compile-jai,
405      compile-lwf-stubs,
406      compile-mdbtools,
407      compile-ome-xml,
408      compile-poi-loci"
409    description="compile classes for Bio-Formats">
410    <ant dir="components/bio-formats" target="formats.compile"/>
411  </target>
412
413  <target name="jar-formats"
414    depends="jar-common,
415      jar-jai,
416      jar-lwf-stubs,
417      jar-mdbtools,
418      jar-ome-xml,
419      jar-poi-loci"
420    description="generate JAR file for Bio-Formats">
421    <ant dir="components/bio-formats" target="formats.jar"/>
422  </target>
423
424  <target name="osgi-formats" depends="jar-formats"
425    description="generate OSGi bundle for Bio-Formats">
426    <ant dir="components/bio-formats" target="formats.osgi"/>
427  </target>
428
429  <target name="findbugs-formats"
430    description="run findbugs on Bio-Formats">
431    <ant dir="components/bio-formats" target="formats.findbugs"/>
432  </target>
433
434  <target name="clean-formats"
435    depends="clean-common,
436      clean-jai,
437      clean-lwf-stubs,
438      clean-mdbtools,
439      clean-ome-xml,
440      clean-poi-loci"
441    description="remove build files for Bio-Formats">
442    <ant dir="components/bio-formats" target="formats.clean"/>
443  </target>
444
445  <target name="utils-formats" depends="jar-formats"
446    description="compile extra utilities for Bio-Formats">
447    <ant dir="components/bio-formats" target="formats.utils"/>
448  </target>
449
450  <target name="test-formats"
451    description="compile and run tests for Bio-Formats">
452    <ant dir="components/bio-formats" target="test"/>
453  </target>
454
455  <!-- LOCI autogen -->
456
457  <target name="compile-autogen"
458    depends="compile-common,
459      compile-formats"
460    description="compile classes for LOCI autogen">
461    <ant dir="components/autogen" target="autogen.compile"/>
462  </target>
463
464  <target name="jar-autogen"
465    depends="jar-common,
466      jar-formats"
467    description="generate JAR file for LOCI autogen">
468    <ant dir="components/autogen" target="autogen.jar"/>
469  </target>
470
471  <target name="osgi-autogen" depends="jar-autogen"
472    description="generate OSGi bundle for LOCI autogen">
473    <ant dir="components/autogen" target="autogen.osgi"/>
474  </target>
475
476  <target name="findbugs-autogen"
477    description="run findbugs on LOCI autogen">
478    <ant dir="components/autogen" target="autogen.findbugs"/>
479  </target>
480
481  <target name="clean-autogen"
482    depends="clean-common,
483      clean-formats"
484    description="remove build files for LOCI autogen">
485    <ant dir="components/autogen" target="autogen.clean"/>
486  </target>
487
488  <target name="test-autogen"
489    description="compile and run tests for LOCI autogen">
490    <ant dir="components/autogen" target="autogen.test"/>
491  </target>
492
493  <!-- Bio-Formats Ice framework -->
494
495  <target name="compile-bf-ice"
496    depends="compile-formats"
497    description="compile classes for Bio-Formats Ice framework">
498    <ant dir="components/bf-ice" target="bf-ice.compile"/>
499  </target>
500
501  <target name="jar-bf-ice"
502    depends="jar-formats"
503    description="generate JAR file for Bio-Formats Ice framework">
504    <ant dir="components/bf-ice" target="bf-ice.jar"/>
505  </target>
506
507  <target name="osgi-bf-ice" depends="jar-bf-ice"
508    description="generate OSGi bundle for Bio-Formats Ice framework">
509    <ant dir="components/bf-ice" target="bf-ice.osgi"/>
510  </target>
511
512  <target name="findbugs-bf-ice"
513    description="run findbugs on Bio-Formats Ice framework">
514    <ant dir="components/bf-ice" target="bf-ice.findbugs"/>
515  </target>
516
517  <target name="clean-bf-ice"
518    depends="clean-formats"
519    description="remove build files for Bio-Formats Ice framework">
520    <ant dir="components/bf-ice" target="bf-ice.clean"/>
521  </target>
522
523  <target name="test-bf-ice"
524    description="compile and run tests for Bio-Formats Ice framework">
525    <ant dir="components/bf-ice" target="bf-ice.test"/>
526  </target>
527
528  <!-- LOCI Plugins for ImageJ -->
529
530  <target name="compile-loci-plugins"
531    depends="compile-common,
532      compile-formats"
533    description="compile classes for LOCI Plugins for ImageJ">
534    <ant dir="components/loci-plugins" target="loci-plugins.compile"/>
535  </target>
536
537  <target name="jar-loci-plugins"
538    depends="jar-common,
539      jar-formats"
540    description="generate JAR file for LOCI Plugins for ImageJ">
541    <ant dir="components/loci-plugins" target="loci-plugins.jar"/>
542  </target>
543
544  <target name="osgi-loci-plugins" depends="jar-loci-plugins"
545    description="generate OSGi bundle for LOCI Plugins for ImageJ">
546    <ant dir="components/loci-plugins" target="loci-plugins.osgi"/>
547  </target>
548
549  <target name="findbugs-loci-plugins"
550    description="run findbugs on LOCI Plugins for ImageJ">
551    <ant dir="components/loci-plugins" target="loci-plugins.findbugs"/>
552  </target>
553
554  <target name="clean-loci-plugins"
555    depends="clean-common,
556      clean-formats"
557    description="remove build files for LOCI Plugins for ImageJ">
558    <ant dir="components/loci-plugins" target="loci-plugins.clean"/>
559  </target>
560
561  <target name="utils-loci-plugins" depends="jar-loci-plugins"
562    description="compile extra utilities for LOCI Plugins for ImageJ">
563    <ant dir="components/loci-plugins" target="loci-plugins.utils"/>
564  </target>
565
566  <target name="test-loci-plugins"
567    description="compile and run tests for LOCI Plugins for ImageJ">
568    <ant dir="components/loci-plugins" target="loci-plugins.test"/>
569  </target>
570
571  <!-- OME I/O -->
572
573  <target name="compile-ome-io"
574    depends="compile-common,
575      compile-formats"
576    description="compile classes for OME I/O">
577    <ant dir="components/ome-io" target="ome-io.compile"/>
578  </target>
579
580  <target name="jar-ome-io"
581    depends="jar-common,
582      jar-formats"
583    description="generate JAR file for OME I/O">
584    <ant dir="components/ome-io" target="ome-io.jar"/>
585  </target>
586
587  <target name="osgi-ome-io" depends="jar-ome-io"
588    description="generate OSGi bundle for OME I/O">
589    <ant dir="components/ome-io" target="ome-io.osgi"/>
590  </target>
591
592  <target name="findbugs-ome-io"
593    description="run findbugs on OME I/O">
594    <ant dir="components/ome-io" target="ome-io.findbugs"/>
595  </target>
596
597  <target name="clean-ome-io"
598    depends="clean-common,
599      clean-formats"
600    description="remove build files for OME I/O">
601    <ant dir="components/ome-io" target="ome-io.clean"/>
602  </target>
603
604  <target name="test-ome-io"
605    description="compile and run tests for OME I/O">
606    <ant dir="components/ome-io" target="test"/>
607  </target>
608
609  <!-- OME Plugins for ImageJ -->
610
611  <target name="compile-ome-plugins"
612    depends="compile-common,
613      compile-formats,
614      compile-loci-plugins,
615      compile-ome-io"
616    description="compile classes for OME Plugins for ImageJ">
617    <ant dir="components/ome-plugins" target="ome-plugins.compile"/>
618  </target>
619
620  <target name="jar-ome-plugins"
621    depends="jar-common,
622      jar-formats,
623      jar-loci-plugins,
624      jar-ome-io"
625    description="generate JAR file for OME Plugins for ImageJ">
626    <ant dir="components/ome-plugins" target="ome-plugins.jar"/>
627  </target>
628
629  <target name="osgi-ome-plugins" depends="jar-ome-plugins"
630    description="generate OSGi bundle for OME Plugins for ImageJ">
631    <ant dir="components/ome-plugins" target="ome-plugins.osgi"/>
632  </target>
633
634  <target name="findbugs-ome-plugins"
635    description="run findbugs on OME Plugins for ImageJ">
636    <ant dir="components/ome-plugins" target="ome-plugins.findbugs"/>
637  </target>
638
639  <target name="clean-ome-plugins"
640    depends="clean-common,
641      clean-formats,
642      clean-loci-plugins,
643      clean-ome-io"
644    description="remove build files for OME Plugins for ImageJ">
645    <ant dir="components/ome-plugins" target="ome-plugins.clean"/>
646  </target>
647
648  <target name="test-ome-plugins"
649    description="compile and run tests for OME Plugins for ImageJ">
650    <ant dir="components/ome-plugins" target="ome-plugins.test"/>
651  </target>
652
653  <!-- VisBio -->
654
655  <target name="compile-visbio"
656    depends="compile-common,
657      compile-formats,
658      compile-ome-io,
659      compile-ome-xml,
660      compile-poi-loci"
661    description="compile classes for VisBio">
662    <ant dir="components/visbio" target="visbio.compile"/>
663  </target>
664
665  <target name="jar-visbio"
666    depends="jar-common,
667      jar-formats,
668      jar-ome-io,
669      jar-ome-xml,
670      jar-poi-loci"
671    description="generate JAR file for VisBio">
672    <ant dir="components/visbio" target="visbio.jar"/>
673  </target>
674
675  <target name="osgi-visbio" depends="jar-visbio"
676    description="generate OSGi bundle for VisBio">
677    <ant dir="components/visbio" target="visbio.osgi"/>
678  </target>
679
680  <target name="findbugs-visbio"
681    description="run findbugs on VisBio">
682    <ant dir="components/visbio" target="visbio.findbugs"/>
683  </target>
684
685  <target name="clean-visbio"
686    depends="clean-common,
687      clean-formats,
688      clean-ome-io,
689      clean-ome-xml,
690      clean-poi-loci"
691    description="remove build files for VisBio">
692    <ant dir="components/visbio" target="visbio.clean"/>
693  </target>
694
695  <target name="dist-visbio"
696    description="create distribution archives for VisBio">
697    <ant dir="components/visbio" target="dist"/>
698  </target>
699
700  <target name="dist-visbio-win32"
701    description="create distribution archive for VisBio: Windows w/ JRE">
702    <ant dir="components/visbio" target="dist-win32"/>
703  </target>
704
705  <target name="dist-visbio-win32-nojre"
706    description="create distribution archive for VisBio: Windows no JRE">
707    <ant dir="components/visbio" target="dist-win32-nojre"/>
708  </target>
709
710  <target name="dist-visbio-macosx"
711    description="create distribution archive for VisBio: Mac OS X">
712    <ant dir="components/visbio" target="dist-macosx"/>
713  </target>
714
715  <target name="dist-visbio-linux"
716    description="create distribution archive for VisBio: Linux w/ JRE">
717    <ant dir="components/visbio" target="dist-linux"/>
718  </target>
719
720  <target name="dist-visbio-nojre"
721    description="create distribution archive for VisBio: cross-platform">
722    <ant dir="components/visbio" target="dist-nojre"/>
723  </target>
724
725  <target name="test-visbio"
726    description="compile and run tests for VisBio">
727    <ant dir="components/visbio" target="visbio.test"/>
728  </target>
729
730  <!-- SLIM Plotter -->
731
732  <target name="compile-slim"
733    depends="compile-common,
734      compile-formats,
735      compile-visbio"
736    description="compile classes for SLIM Plotter">
737    <ant dir="components/slim-plotter" target="slim.compile"/>
738  </target>
739
740  <target name="jar-slim"
741    depends="jar-common,
742      jar-formats,
743      jar-visbio"
744    description="generate JAR file for SLIM Plotter">
745    <ant dir="components/slim-plotter" target="slim.jar"/>
746  </target>
747
748  <target name="osgi-slim" depends="jar-slim"
749    description="generate OSGi bundle for SLIM Plotter">
750    <ant dir="components/slim-plotter" target="slim.osgi"/>
751  </target>
752
753  <target name="findbugs-slim"
754    description="run findbugs on SLIM Plotter">
755    <ant dir="components/slim-plotter" target="slim.findbugs"/>
756  </target>
757
758  <target name="clean-slim"
759    depends="clean-common,
760      clean-formats,
761      clean-visbio"
762    description="remove build files for SLIM Plotter">
763    <ant dir="components/slim-plotter" target="slim.clean"/>
764  </target>
765
766  <target name="dist-slim"
767    description="create distribution archive for SLIM Plotter">
768    <ant dir="components/slim-plotter" target="dist"/>
769  </target>
770
771  <target name="test-slim"
772    description="compile and run tests for SLIM Plotter">
773    <ant dir="components/slim-plotter" target="slim.test"/>
774  </target>
775
776  <!-- WiscScan Flow Cytometry -->
777
778  <target name="compile-flow"
779    depends="compile-formats"
780    description="compile classes for WiscScan Flow Cytometry">
781    <ant dir="components/flow-cytometry" target="flow.compile"/>
782  </target>
783
784  <target name="jar-flow"
785    depends="jar-formats"
786    description="generate JAR file for WiscScan Flow Cytometry">
787    <ant dir="components/flow-cytometry" target="flow.jar"/>
788  </target>
789
790  <target name="osgi-flow" depends="jar-flow"
791    description="generate OSGi bundle for WiscScan Flow Cytometry">
792    <ant dir="components/flow-cytometry" target="flow.osgi"/>
793  </target>
794
795  <target name="findbugs-flow"
796    description="run findbugs on WiscScan Flow Cytometry">
797    <ant dir="components/flow-cytometry" target="flow.findbugs"/>
798  </target>
799
800  <target name="clean-flow"
801    depends="clean-formats"
802    description="remove build files for WiscScan Flow Cytometry">
803    <ant dir="components/flow-cytometry" target="flow.clean"/>
804  </target>
805
806  <target name="dist-flow"
807    description="create distribution archive for WiscScan Flow Cytometry">
808    <ant dir="components/flow-cytometry" target="dist"/>
809  </target>
810
811  <target name="test-flow"
812    description="compile and run tests for WiscScan Flow Cytometry">
813    <ant dir="components/flow-cytometry" target="flow.test"/>
814  </target>
815
816  <!-- LOCI Checkstyle checks -->
817
818  <target name="compile-checks"
819    description="compile classes for LOCI Checkstyle checks">
820    <ant dir="components/checkstyle" target="checks.compile"/>
821  </target>
822
823  <target name="jar-checks"
824    description="generate JAR file for LOCI Checkstyle checks">
825    <ant dir="components/checkstyle" target="checks.jar"/>
826  </target>
827
828  <target name="osgi-checks" depends="jar-checks"
829    description="generate OSGi bundle for LOCI Checkstyle checks">
830    <ant dir="components/checkstyle" target="checks.osgi"/>
831  </target>
832
833  <target name="findbugs-checks"
834    description="run findbugs on LOCI Checkstyle checks">
835    <ant dir="components/checkstyle" target="checks.findbugs"/>
836  </target>
837
838  <target name="clean-checks"
839    description="remove build files for LOCI Checkstyle checks">
840    <ant dir="components/checkstyle" target="checks.clean"/>
841  </target>
842
843  <target name="test-checks"
844    description="compile and run tests for LOCI Checkstyle checks">
845    <ant dir="components/checkstyle" target="checks.test"/>
846  </target>
847
848  <!-- LOCI testing framework -->
849
850  <target name="compile-tests"
851    depends="compile-common,
852      compile-formats,
853      compile-ome-io"
854    description="compile classes for LOCI testing framework">
855    <ant dir="components/test-suite" target="tests.compile"/>
856  </target>
857
858  <target name="jar-tests"
859    depends="jar-common,
860      jar-formats,
861      jar-ome-io"
862    description="generate JAR file for LOCI testing framework">
863    <ant dir="components/test-suite" target="tests.jar"/>
864  </target>
865
866  <target name="osgi-tests" depends="jar-tests"
867    description="generate OSGi bundle for LOCI testing framework">
868    <ant dir="components/test-suite" target="tests.osgi"/>
869  </target>
870
871  <target name="findbugs-tests"
872    description="run findbugs on LOCI testing framework">
873    <ant dir="components/test-suite" target="tests.findbugs"/>
874  </target>
875
876  <target name="clean-tests"
877    depends="clean-common,
878      clean-formats,
879      clean-ome-io"
880    description="remove build files for LOCI testing framework">
881    <ant dir="components/test-suite" target="tests.clean"/>
882  </target>
883
884  <target name="test-tests"
885    description="compile and run tests for LOCI testing framework">
886    <ant dir="components/test-suite" target="tests.test"/>
887  </target>
888
889  <!-- JVMLink -->
890
891  <target name="compile-jvmlink"
892    depends="compile-common"
893    description="compile classes for JVMLink">
894    <ant dir="components/legacy/jvmlink" target="jvmlink.compile"/>
895  </target>
896
897  <target name="jar-jvmlink"
898    depends="jar-common"
899    description="generate JAR file for JVMLink">
900    <ant dir="components/legacy/jvmlink" target="jvmlink.jar"/>
901  </target>
902
903  <target name="osgi-jvmlink" depends="jar-jvmlink"
904    description="generate OSGi bundle for JVMLink">
905    <ant dir="components/legacy/jvmlink" target="jvmlink.osgi"/>
906  </target>
907
908  <target name="findbugs-jvmlink"
909    description="run findbugs on JVMLink">
910    <ant dir="components/legacy/jvmlink" target="jvmlink.findbugs"/>
911  </target>
912
913  <target name="clean-jvmlink"
914    depends="clean-common"
915    description="remove build files for JVMLink">
916    <ant dir="components/legacy/jvmlink" target="jvmlink.clean"/>
917  </target>
918
919  <target name="test-jvmlink"
920    description="compile and run tests for JVMLink">
921    <ant dir="components/legacy/jvmlink" target="jvmlink.test"/>
922  </target>
923
924  <!-- Multi LUT app -->
925
926  <target name="compile-multi-lut"
927    description="compile classes for Multi LUT app">
928    <ant dir="components/legacy/multi-lut" target="multi-lut.compile"/>
929  </target>
930
931  <target name="jar-multi-lut"
932    description="generate JAR file for Multi LUT app">
933    <ant dir="components/legacy/multi-lut" target="multi-lut.jar"/>
934  </target>
935
936  <target name="osgi-multi-lut" depends="jar-multi-lut"
937    description="generate OSGi bundle for Multi LUT app">
938    <ant dir="components/legacy/multi-lut" target="multi-lut.osgi"/>
939  </target>
940
941  <target name="findbugs-multi-lut"
942    description="run findbugs on Multi LUT app">
943    <ant dir="components/legacy/multi-lut" target="multi-lut.findbugs"/>
944  </target>
945
946  <target name="clean-multi-lut"
947    description="remove build files for Multi LUT app">
948    <ant dir="components/legacy/multi-lut" target="multi-lut.clean"/>
949  </target>
950
951  <target name="test-multi-lut"
952    description="compile and run tests for Multi LUT app">
953    <ant dir="components/legacy/multi-lut" target="multi-lut.test"/>
954  </target>
955
956  <!-- OME Notes -->
957
958  <target name="compile-ome-notes"
959    depends="compile-common,
960      compile-formats"
961    description="compile classes for OME Notes">
962    <ant dir="components/legacy/ome-notes" target="ome-notes.compile"/>
963  </target>
964
965  <target name="jar-ome-notes"
966    depends="jar-common,
967      jar-formats"
968    description="generate JAR file for OME Notes">
969    <ant dir="components/legacy/ome-notes" target="ome-notes.jar"/>
970  </target>
971
972  <target name="osgi-ome-notes" depends="jar-ome-notes"
973    description="generate OSGi bundle for OME Notes">
974    <ant dir="components/legacy/ome-notes" target="ome-notes.osgi"/>
975  </target>
976
977  <target name="findbugs-ome-notes"
978    description="run findbugs for OME Notes">
979    <ant dir="components/legacy/ome-notes" target="ome-notes.findbugs"/>
980  </target>
981
982  <target name="clean-ome-notes"
983    depends="clean-common,
984      clean-formats"
985    description="remove build files for OME Notes">
986    <ant dir="components/legacy/ome-notes" target="ome-notes.clean"/>
987  </target>
988
989  <target name="test-ome-notes"
990    description="compile and run tests for OME Notes">
991    <ant dir="components/legacy/ome-notes" target="ome-notes.test"/>
992  </target>
993
994  <!-- OME Metadata Editor -->
995
996  <target name="compile-ome-editor"
997    depends="compile-common,
998      compile-formats,
999      compile-ome-xml"
1000    description="compile classes for OME Metadata Editor">
1001    <ant dir="components/legacy/ome-editor" target="ome-editor.compile"/>
1002  </target>
1003
1004  <target name="jar-ome-editor"
1005    depends="jar-common,
1006      jar-formats,
1007      jar-ome-xml"
1008    description="generate JAR file for OME Metadata Editor">
1009    <ant dir="components/legacy/ome-editor" target="ome-editor.jar"/>
1010  </target>
1011
1012  <target name="osgi-ome-editor" depends="jar-ome-editor"
1013    description="generate OSGi bundle for OME Metadata Editor">
1014    <ant dir="components/legacy/ome-editor" target="ome-editor.osgi"/>
1015  </target>
1016
1017  <target name="findbugs-ome-editor"
1018    description="run findbugs on OME Metadata Editor">
1019    <ant dir="components/legacy/ome-editor" target="ome-editor.findbugs"/>
1020  </target>
1021
1022  <target name="clean-ome-editor"
1023    depends="clean-common,
1024      clean-formats,
1025      clean-ome-xml"
1026    description="remove build files for OME Metadata Editor">
1027    <ant dir="components/legacy/ome-editor" target="ome-editor.clean"/>
1028  </target>
1029
1030  <target name="test-ome-editor"
1031    description="compile and run tests for OME Metadata Editor">
1032    <ant dir="components/legacy/ome-editor" target="ome-editor.test"/>
1033  </target>
1034
1035  <!-- Tool collections -->
1036
1037  <target name="tools"
1038    depends="copy-jars,
1039      jar-common,
1040      jar-flow,
1041      jar-formats,
1042      jar-jai,
1043      jar-loci-plugins,
1044      jar-mdbtools,
1045      jar-ome-xml,
1046      jar-poi-loci"
1047    description="create JAR file encompassing several LOCI tools">
1048    <echo>----------=========== loci_tools ===========----------</echo>
1049    <for list="${loci-tools.libraries}" param="jar" delimiter=" " trim="true">
1050      <sequential>
1051        <unjar src="${artifact.dir}/@{jar}" dest="${loci-tools.dir}">
1052          <patternset>
1053            <exclude name="META-INF/**"/>
1054          </patternset>
1055        </unjar>
1056      </sequential>
1057    </for>
1058    <jar jarfile="${loci-tools.jar}" basedir="${loci-tools.dir}">
1059      <manifest>
1060        <attribute name="Main-Class" value="${loci-tools.main}"/>
1061      </manifest>
1062    </jar>
1063    <delete dir="${loci-tools.dir}"/>
1064  </target>
1065
1066  <target name="tools-ome"
1067    depends="jar-ome-io,
1068      jar-ome-plugins"
1069    description="create JAR file encompassing several OME tools">
1070    <echo>----------=========== ome_tools ===========----------</echo>
1071    <for list="${ome-tools.libraries}" param="jar" delimiter=" " trim="true">
1072      <sequential>
1073        <unjar src="${artifact.dir}/@{jar}" dest="${ome-tools.dir}">
1074          <patternset>
1075            <exclude name="META-INF/**"/>
1076          </patternset>
1077        </unjar>
1078      </sequential>
1079    </for>
1080    <jar jarfile="${ome-tools.jar}" basedir="${ome-tools.dir}">
1081      <manifest>
1082        <attribute name="Main-Class" value="${ome-tools.main}"/>
1083      </manifest>
1084    </jar>
1085    <delete dir="${ome-tools.dir}"/>
1086  </target>
1087
1088  <!-- HACK - limit OS to *nix due to file permission issues -->
1089  <target name="dist-bftools" if="isUnix">
1090    <echo>----------=========== bftools ===========----------</echo>
1091    <!--
1092    <zip destfile="${artifact.dir}/bftools.zip"
1093      basedir="${bftools.dir}">
1094      <patternset>
1095        <exclude name="*.jar"/>
1096      </patternset>
1097    </zip>
1098    -->
1099    <exec executable="zip" dir="${bftools.dir}">
1100      <arg value="-r9"/>
1101      <arg value="${artifact.dir}/bftools.zip"/>
1102      <arg line="${bftools.files}"/>
1103    </exec>
1104  </target>
1105
1106  <!-- Internal targets -->
1107
1108  <target name="init"/>
1109
1110</project>
Note: See TracBrowser for help on using the repository browser.