source: trunk/build.xml @ 1310

Revision 1310, 21.0 KB checked in by curtis, 14 years ago (diff)

Add docs-visbio target for VisBio documentation; fix Notebook resources.

Line 
1<!--
2build.xml
3
4Master ant build file for all Java software projects at LOCI.
5Download Apache Ant from http://ant.apache.org/.
6Type "ant -p" for a list of targets.
7
8===============================================================================
9This build file handles the following projects:
10
11Bio-Formats
12    JAR file:      bio-formats.jar
13    Folders:       loci/formats
14                   loci/formats/*
15    Main class:    loci.formats.ImageViewer
16    Dependencies:  None
17    Targets:       jar-formats
18
19VisBio
20    JAR file:      visbio.jar
21    Folders:       loci/visbio
22                   loci/visbio/*
23    Main class:    loci.visbio.VisBio
24    Dependencies:  bio-formats.jar
25                   commons-httpclient-2.0-rc2.jar (ome-java.jar)
26                   commons-logging.jar (ome-java.jar)
27                   forms-1.0.4.jar
28                   ij.jar
29                   looks-1.2.2.jar
30                   ome-java.jar
31                   visad-lite.jar
32                   xmlrpc-1.2-b1.jar (ome-java.jar)
33    Targets:       jar-visbio
34                   dist-visbio
35
36LOCI Plugins for ImageJ
37    JAR file:      loci_plugins.jar
38    Folders:       loci/plugins
39                   loci/plugins/*
40                   loci/ome/viewer (temporary)
41    Main class:    loci.plugins.About
42    IJ plugins:    loci.plugins.browser.LociDataBrowser
43                   loci.plugins.LociImporter
44                   loci.plugins.LociExporter
45                   loci.plugins.ome.OMEPlugin
46    Dependencies:  bio-formats.jar
47                   commons-httpclient-2.0-rc2.jar (ome-java.jar)
48                   commons-logging.jar (ome-java.jar)
49                   ome-java.jar
50                   xmlrpc-1.2-b1.jar (ome-java.jar)
51    Targets:       jar-plugins
52
53OME Metadata Notebook
54    JAR file:      ome-notebook.jar
55    Folders:       loci/ome/notebook
56                   loci/ome/viewer (temporary)
57    Main class:    loci.ome.notebook.MetadataNotebook
58    Dependencies:  bio-formats.jar
59                   commons-httpclient-2.0-rc2.jar (ome-java.jar)
60                   commons-logging.jar (ome-java.jar)
61                   forms-1.0.4.jar
62                   ome-java.jar
63                   xmlrpc-1.2-b1.jar (ome-java.jar)
64    Targets:       jar-notebook
65
66Leica Converter
67    JAR file:      LeicaConverter.jar
68    Folders:       loci/apps/leica
69    Main class:    loci.apps.leica.LeicaConverter
70    Dependencies:  bio-formats.jar
71                   ome-java.jar
72    Targets:       jar-leica
73
74QT TIFF Converter
75    JAR file:      QTConverter.jar
76    Folders:       loci/apps/qt
77                   some loci/formats
78    Main class:    loci.apps.qt.QTConverter
79    Dependencies:  None (custom built)
80    Targets:       jar-qt
81
82Slim Plotter
83    JAR file:      SlimPlotter.jar
84    Folders:       loci/apps/slim
85                   some loci/formats and loci/visbio
86    Main class:    loci.apps.slim.SlimPlotter
87    Dependencies:  visad-lite.jar
88    Targets:       jar-slim
89                   dist-slim
90
91===============================================================================
92The following external dependencies (in the jar folder) may be required:
93
94Apple eAWT stubs
95    JAR file:  AppleJavaExtensions.jar
96    URL:       http://developer.apple.com/samplecode/AppleJavaExtensions/
97    Notes:     Required to compile VisBio on non-Mac OS X machines
98
99Apache Jakarta Commons HttpClient
100    JAR file:  commons-httpclient-2.0-rc2.jar
101    URL:       http://jakarta.apache.org/commons/httpclient/
102    Notes:     Required for OME Java to communicate with OME servers
103
104Apache Jakarta Commons Logging
105    JAR file:  commons-logging.jar
106    URL:       http://jakarta.apache.org/commons/logging/
107    Notes:     Used by OME Java
108
109JGoodies Forms
110    JAR file:  forms-1.0.4.jar
111    URL:       http://www.jgoodies.com/freeware/forms/index.html
112    Notes:     Used for layout by VisBio and OME Metadata Notebook
113
114ImageJ
115    JAR file:  ij.jar
116    URL:       http://rsb.info.nih.gov/ij/
117    Notes:     Bundled with VisBio to achieve ImageJ interconnectivity
118
119JGoodies Looks
120    JAR file:  looks-1.2.2.jar
121    URL:       http://www.jgoodies.com/freeware/looks/index.html
122    Notes:     Used for a nicer Look & Feel by VisBio
123
124OME Java
125    JAR file:  ome-java.jar
126    URL:       http://openmicroscopy.org/api/java/
127    Notes:     Used by VisBio and the OME Plugin for ImageJ to connect to OME;
128               used by Bio-Formats and the OME Notebook to work with OME-XML
129
130Apache Jakarta POI
131    JAR file:  poi-2.5.1-final-20040804.jar
132    URL:       http://jakarta.apache.org/poi/
133    Notes:     Not used (previously used by Bio-Formats)
134
135Skin Look and Feel
136    JAR file:  skinlf.jar
137    URL:       http://skinlf.l2fprod.com/
138    Notes:     Not used (may be used in the future for flexible skinning)
139
140VisAD
141    JAR file:  visad-lite.jar
142    URL:       http://www.ssec.wisc.edu/~billh/visad.html
143    Notes:     Stripped down VisAD library used by VisBio and Slim Plotter
144
145Apache XML-RPC
146    JAR file:  xmlrpc-1.2-b1.jar
147    URL:       http://ws.apache.org/xmlrpc/
148    Notes:     Required for OME Java to communicate with OME servers
149-->
150
151<project name="LOCI Software" default="compile" basedir=".">
152  <description>
153    Master build file for all Java software projects at LOCI
154  </description>
155
156  <!-- Global properties -->
157
158  <property name="src.dir" value="."/>
159  <property name="build.dir" value="build"/>
160  <property name="dest.dir" value="${build.dir}/src"/>
161  <property name="classes.dir" value="${build.dir}/classes"/>
162  <property name="jar.dir" value="${build.dir}/jar"/>
163  <property name="docs.dir" value="${build.dir}/docs"/>
164  <property name="dist.dir" value="${build.dir}/dist"/>
165
166  <condition property="isUnix"><os family="unix"/></condition>
167
168  <!-- Global build targets -->
169
170  <property name="ext.jars" value="jar/AppleJavaExtensions.jar:jar/commons-httpclient-2.0-rc2.jar:jar/commons-logging.jar:jar/forms-1.0.4.jar:jar/ij.jar:jar/looks-1.2.2.jar:jar/ome-java.jar:jar/visad-lite.jar:jar/xmlrpc-1.2-b1.jar"/>
171
172  <target name="init">
173    <tstamp>
174      <format property="DATE" pattern="d MMMMM yyyy"/>
175      <format property="YEAR" pattern="yyyy"/>
176    </tstamp>
177  </target>
178
179  <target name="compile" depends="copy-source"
180    description="compile LOCI software packages from source">
181    <mkdir dir="${classes.dir}"/>
182    <javac srcdir="${dest.dir}" destdir="${classes.dir}"
183      classpath="${ext.jars}" deprecation="true" source="1.4" target="1.4"/>
184  </target>
185
186  <target name="jars"
187    depends="jar-formats, jar-visbio, jar-plugins, jar-notebook, jar-leica, jar-qt, jar-slim"
188    description="generate JAR files for LOCI software packages"/>
189
190  <target name="docs" depends="copy-source"
191    description="generate Javadocs for LOCI software packages">
192    <javadoc sourcepath="${dest.dir}" destdir="${docs.dir}/api"
193      author="true" version="true" use="true" windowtitle="LOCI Software API">
194      <packageset dir="${dest.dir}"/>
195      <doctitle><![CDATA[<h1>LOCI Software</h1>]]></doctitle>
196      <bottom><![CDATA[<i>Copyright &#169; ${YEAR} Laboratory for Optical and Computational Instrumentation</i>]]></bottom>
197      <link href="http://java.sun.com/j2se/1.4.2/docs/api/"/>
198    </javadoc>
199  </target>
200
201  <target name="clean"
202    description="remove all build files">
203    <delete dir="${build.dir}"/>
204  </target>
205
206  <!-- Internal build targets -->
207
208  <property name="ignore.source"
209    value="loci/plugins/HandleExtraFileTypes.java *.tar.gz"/>
210
211  <target name="copy-source" depends="init">
212    <!-- copy binary files without filtering -->
213    <copy todir="${dest.dir}" preservelastmodified="true">
214      <fileset dir="${src.dir}" includes="loci/**" excludes="**/*.class **/*.java **/*.config **/*.txt ${ignore.source}"/>
215    </copy>
216    <!-- copy source files with filtering -->
217    <filter token="date" value="${DATE}"/>
218    <copy todir="${dest.dir}" filtering="true" preservelastmodified="true">
219      <fileset dir="${src.dir}" includes="loci/**" excludes="**/*.class ${ignore.source}"/>
220    </copy>
221  </target>
222
223  <target name="copy-jars">
224    <!-- copy needed external JARs into build jars folder -->
225    <copy todir="${jar.dir}" preservelastmodified="true">
226      <fileset dir="jar"/>
227    </copy>
228  </target>
229
230  <!-- Bio-Formats -->
231
232  <property name="formats.files" value="loci/browser/** loci/formats/**"/>
233  <property name="formats.resources" value="loci/formats/*.txt"/>
234
235  <target name="jar-formats" depends="compile"
236    description="generate JAR file for Bio-Formats">
237    <copy todir="${classes.dir}" preservelastmodified="true">
238      <fileset dir="${src.dir}" includes="${formats.resources}"/>
239    </copy>
240    <mkdir dir="${jar.dir}"/>
241    <jar jarfile="${jar.dir}/bio-formats.jar" basedir="${classes.dir}"
242      includes="${formats.files}">
243      <manifest>
244        <attribute name="Main-Class" value="loci.formats.ImageViewer"/>
245      </manifest>
246    </jar>
247  </target>
248
249  <!-- VisBio -->
250
251  <property name="visbio.classpath" value="bio-formats.jar commons-httpclient-2.0-rc2.jar commons-logging.jar forms-1.0.4.jar ij.jar looks-1.2.2.jar ome-java.jar visad-lite.jar xmlrpc-1.2-b1.jar"/>
252  <property name="visbio.files" value="loci/visbio/**"/>
253  <property name="visbio.resources" value="loci/visbio/classes.txt loci/visbio/*.png loci/visbio/*.gif loci/visbio/help/*.html loci/visbio/help/*.png loci/visbio/overlays/*.png loci/visbio/view/*.png"/>
254
255  <target name="jar-visbio"
256    depends="compile, copy-jars, jar-formats"
257    description="generate JAR file for VisBio">
258    <copy todir="${classes.dir}" preservelastmodified="true">
259      <fileset dir="${src.dir}" includes="${visbio.resources}"/>
260    </copy>
261    <jar jarfile="${jar.dir}/visbio.jar" basedir="${classes.dir}"
262      includes="${visbio.files}">
263      <manifest>
264        <attribute name="Main-Class" value="loci.visbio.VisBio"/>
265        <attribute name="Class-Path" value="${visbio.classpath}"/>
266      </manifest>
267    </jar>
268  </target>
269
270  <target name="docs-visbio" depends="copy-source"
271    description="generate Javadocs for VisBio">
272    <javadoc sourcepath="${dest.dir}" destdir="${docs.dir}/visbio/api"
273      author="true" version="true" use="true" windowtitle="LOCI Software API">
274      <packageset dir="${dest.dir}" includes="loci/visbio/**"/>
275      <doctitle><![CDATA[<h1>VisBio</h1>]]></doctitle>
276      <bottom><![CDATA[<i>Copyright &#169; ${YEAR} Laboratory for Optical and Computational Instrumentation</i>]]></bottom>
277      <link href="http://java.sun.com/j2se/1.4.2/docs/api/"/>
278    </javadoc>
279  </target>
280
281  <property name="visbio.dist-files" value="bsd-forms.txt bsd-looks.txt gpl-visbio.txt omeul.txt whatsnew.txt *.cpp *.m"/>
282
283  <target name="dist-visbio" depends="dist-visbio-win32, dist-visbio-win32-nojre, dist-visbio-macosx, dist-visbio-linux, dist-visbio-nojre"/>
284
285  <property name="visbio.win32-dir" value="${dist.dir}/visbio/win32/VisBio"/>
286
287  <target name="dist-visbio-win32" depends="jar-visbio, jar-formats">
288    <copy todir="${visbio.win32-dir}" preservelastmodified="true">
289      <fileset dir="dist/visbio/win32"/>
290      <fileset dir="loci/visbio" includes="${visbio.dist-files}"/>
291      <fileset dir="${jar.dir}" includes="visbio.jar ${visbio.classpath}"/>
292    </copy>
293    <fixcrlf srcdir="${visbio.win32-dir}" eol="dos"
294      includes="*.txt *.cpp *.m plugins/*.txt"/>
295    <untar src="dist/jre-win32.tar.gz" dest="${visbio.win32-dir}"
296      overwrite="false" compression="gzip"/>
297    <zip destfile="${dist.dir}/visbio${visbio.version}_win32.zip"
298      basedir="${dist.dir}/visbio/win32"/>
299  </target>
300
301  <property name="visbio.win32-nojre-dir"
302    value="${dist.dir}/visbio/win32-nojre/VisBio"/>
303
304  <target name="dist-visbio-win32-nojre" depends="jar-visbio, jar-formats">
305    <copy todir="${visbio.win32-nojre-dir}"
306      preservelastmodified="true">
307      <fileset dir="dist/visbio/win32" excludes="launcher.cfg"/>
308      <fileset dir="dist/visbio/win32-nojre"/>
309      <fileset dir="loci/visbio" includes="${visbio.dist-files}"/>
310      <fileset dir="${jar.dir}" includes="visbio.jar ${visbio.classpath}"/>
311    </copy>
312    <fixcrlf srcdir="${visbio.win32-nojre-dir}" eol="dos"
313      includes="*.txt *.cpp *.m plugins/*.txt"/>
314    <zip destfile="${dist.dir}/visbio${visbio.version}_win32_nojre.zip"
315      basedir="${dist.dir}/visbio/win32-nojre"/>
316  </target>
317
318  <property name="visbio.macosx-dir" value="${dist.dir}/visbio/macosx/VisBio"/>
319
320  <!-- HACK - limit OS to *nix due to file permission issues -->
321  <target name="dist-visbio-macosx" if="isUnix"
322    depends="jar-visbio, jar-formats">
323    <copy todir="${visbio.macosx-dir}"
324      preservelastmodified="true">
325      <fileset dir="dist/visbio/macosx"/>
326      <fileset dir="loci/visbio" includes="${visbio.dist-files}"/>
327    </copy>
328    <fixcrlf srcdir="${visbio.macosx-dir}" eol="mac"
329      includes="*.txt *.cpp *.m plugins/*.txt"/>
330    <!-- HACK - copy does not preserve permissions; chmod them back -->
331    <chmod perm="+x">
332      <fileset dir="${visbio.macosx-dir}"
333        includes="visbio omeul VisBio.app/Contents/MacOS/JavaApplicationStub"/>
334    </chmod>
335    <copy todir="${visbio.macosx-dir}/VisBio.app/Contents/Resources/Java">
336      <fileset dir="${jar.dir}" includes="visbio.jar ${visbio.classpath}"/>
337    </copy>
338<!--
339    <tar destfile="${dist.dir}/visbio${visbio.version}_macosx.tar.gz"
340      basedir="${dist.dir}/visbio/macosx" compression="gzip"/>
341-->
342    <!-- HACK - tar does not preserve permissions; use exec instead -->
343    <exec executable="tar">
344      <arg line="czf ${dist.dir}/visbio${visbio.version}_macosx.tar.gz -C ${dist.dir}/visbio/macosx VisBio"/>
345    </exec>
346  </target>
347
348  <property name="visbio.linux-dir"
349    value="${dist.dir}/visbio/linux/visbio${visbio.version}"/>
350
351  <!-- HACK - limit OS to *nix due to file permission issues -->
352  <target name="dist-visbio-linux" if="isUnix"
353    depends="jar-visbio, jar-formats">
354    <copy todir="${visbio.linux-dir}" preservelastmodified="true">
355      <fileset dir="dist/visbio/linux"/>
356      <fileset dir="loci/visbio" includes="${visbio.dist-files}"/>
357      <fileset dir="${jar.dir}" includes="visbio.jar ${visbio.classpath}"/>
358    </copy>
359    <fixcrlf srcdir="${visbio.linux-dir}" eol="unix"
360      includes="*.txt *.cpp *.m plugins/*.txt"/>
361    <!-- HACK - copy does not preserve permissions; chmod them back -->
362    <chmod perm="+x">
363      <fileset dir="${visbio.linux-dir}" includes="visbio omeul"/>
364    </chmod>
365<!--
366    <untar src="dist/jre-linux.tar.gz" dest="${visbio.linux-dir}"
367      overwrite="false" compression="gzip"/>
368-->
369    <!-- HACK - untar does not restore permissions; use exec instead -->
370    <exec executable="tar">
371      <arg line="xzf dist/jre-linux.tar.gz -C ${visbio.linux-dir}"/>
372    </exec>
373<!--
374    <tar destfile="${dist.dir}/visbio${visbio.version}_linux.tar.gz"
375      basedir="${dist.dir}/visbio/linux" compression="gzip"/>
376-->
377    <!-- HACK - tar does not preserve permissions; use exec instead -->
378    <exec executable="tar">
379      <arg line="czf ${dist.dir}/visbio${visbio.version}_linux.tar.gz -C ${dist.dir}/visbio/linux visbio${visbio.version}"/>
380    </exec>
381  </target>
382
383  <property name="visbio.nojre-dir"
384    value="${dist.dir}/visbio/nojre/visbio${visbio.version}"/>
385
386  <!-- HACK - limit OS to *nix due to file permission issues -->
387  <target name="dist-visbio-nojre" if="isUnix"
388    depends="jar-visbio, jar-formats">
389    <copy todir="${visbio.nojre-dir}" preservelastmodified="true">
390      <fileset dir="dist/visbio/linux"/>
391      <fileset dir="loci/visbio" includes="${visbio.dist-files}"/>
392      <fileset dir="${jar.dir}" includes="visbio.jar ${visbio.classpath}"/>
393    </copy>
394    <fixcrlf srcdir="${visbio.nojre-dir}" eol="unix"
395      includes="*.txt *.cpp *.m plugins/*.txt"/>
396    <!-- HACK - copy does not preserve permissions; chmod them back -->
397    <chmod perm="+x">
398      <fileset dir="${visbio.nojre-dir}" includes="visbio omeul"/>
399    </chmod>
400<!--
401    <tar destfile="${dist.dir}/visbio${visbio.version}.tar.gz"
402      basedir="${dist.dir}/visbio/nojre" compression="gzip"/>
403-->
404    <!-- HACK - tar does not preserve permissions; use exec instead -->
405    <exec executable="tar">
406      <arg line="czf ${dist.dir}/visbio${visbio.version}.tar.gz -C ${dist.dir}/visbio/nojre visbio${visbio.version}"/>
407    </exec>
408  </target>
409
410  <!-- LOCI Plugins for ImageJ -->
411
412  <property name="plugins.files" value="loci/plugins/** loci/ome/viewer/**"/>
413
414  <target name="jar-plugins"
415    depends="compile, copy-jars, jar-formats"
416    description="generate JAR file for LOCI Plugins for ImageJ">
417    <jar jarfile="${jar.dir}/loci_plugins.jar"
418      basedir="${src.dir}/loci/plugins" includes="plugins.config">
419      <manifest>
420        <attribute name="Main-Class" value="loci.plugins.About"/>
421      </manifest>
422    </jar>
423    <jar jarfile="${jar.dir}/loci_plugins.jar" basedir="${classes.dir}"
424      includes="${plugins.files}" excludes="loci/plugins/plugins.config"
425      update="true">
426    </jar>
427  </target>
428
429  <!-- OME Metadata Notebook -->
430
431  <property name="notebook.classpath" value="bio-formats.jar commons-httpclient-2.0-rc2.jar commons-logging.jar forms-1.0.4.jar ome-java.jar xmlrpc-1.2-b1.jar"/>
432  <property name="notebook.files"
433    value="loci/ome/notebook/** loci/ome/viewer/**"/>
434  <property name="notebook.resources" value="loci/ome/notebook/Template.xml loci/ome/notebook/Icons/* loci/ome/notebook/TypeDefs/**"/>
435
436  <target name="jar-notebook"
437    depends="compile, copy-jars, jar-formats"
438    description="generate JAR file for OME Metadata Notebook">
439    <copy todir="${classes.dir}" preservelastmodified="true">
440      <fileset dir="${src.dir}" includes="${notebook.resources}"/>
441    </copy>
442    <jar jarfile="${jar.dir}/ome-notebook.jar" basedir="${classes.dir}"
443      includes="${notebook.files}">
444      <manifest>
445        <attribute name="Main-Class"
446          value="loci.ome.notebook.MetadataNotebook"/>
447        <attribute name="Class-Path" value="${notebook.classpath}"/>
448      </manifest>
449    </jar>
450  </target>
451
452  <!-- Leica Converter -->
453
454  <property name="leica.classpath" value="bio-formats.jar ome-java.jar"/>
455  <property name="leica.files" value="loci/apps/leica/**"/>
456
457  <target name="jar-leica" depends="compile, copy-jars, jar-formats"
458    description="generate JAR file for Leica Converter">
459    <jar jarfile="${jar.dir}/LeicaConverter.jar" basedir="${classes.dir}"
460      includes="${leica.files}">
461      <manifest>
462        <attribute name="Main-Class" value="loci.apps.leica.LeicaConverter"/>
463        <attribute name="Class-Path" value="${leica.classpath}"/>
464      </manifest>
465    </jar>
466  </target>
467
468  <!-- QT TIFF Converter -->
469
470  <property name="qt.files" value="loci/apps/qt/* loci/formats/BitBuffer* loci/formats/BitWriter* loci/formats/ByteVector* loci/formats/ComboFileFilter* loci/formats/Compression* loci/formats/DataTools* loci/formats/DummyMetadataStore* loci/formats/ExtensionFileFilter* loci/formats/FilePattern* loci/formats/FileStitcher* loci/formats/FormatException* loci/formats/FormatFileFilter* loci/formats/FormatHandler* loci/formats/FormatReader* loci/formats/FormatWriter* loci/formats/IFormatHandler* loci/formats/IFormatReader* loci/formats/ImageTools* loci/formats/LZWTreeNode* loci/formats/LegacyQTTools* loci/formats/MetadataStore* loci/formats/NumberFilter* loci/formats/OMEXMLMetadataStore* loci/formats/RandomAccessArray* loci/formats/RandomAccessStream* loci/formats/ReflectException* loci/formats/ReflectedUniverse* loci/formats/TiffRational* loci/formats/TiffTools* loci/formats/in/BaseTiffReader* loci/formats/in/LegacyQTReader* loci/formats/in/QTReader* loci/formats/in/TiffReader* loci/formats/out/TiffWriter*"/>
471
472  <target name="jar-qt" depends="compile"
473    description="generate JAR file for QT TIFF Converter">
474    <mkdir dir="${jar.dir}"/>
475    <jar jarfile="${jar.dir}/QTConverter.jar" basedir="${classes.dir}"
476      includes="${qt.files}">
477      <manifest>
478        <attribute name="Main-Class" value="loci.apps.qt.QTConverter"/>
479      </manifest>
480    </jar>
481  </target>
482
483  <!-- Slim Plotter -->
484
485  <property name="slim.classpath" value="visad-lite.jar"/>
486  <property name="slim.files" value="loci/apps/slim/* loci/formats/DataTools* loci/formats/ExtensionFileFilter* loci/formats/ComboFileFilter* loci/visbio/util/OutputConsole* loci/visbio/util/OutputEvent* loci/visbio/util/SwingUtil* loci/visbio/util/LAFUtil*"/>
487
488  <target name="jar-slim" depends="compile, copy-jars"
489    description="generate JAR file for Slim Plotter">
490    <jar jarfile="${jar.dir}/SlimPlotter.jar" basedir="${classes.dir}"
491      includes="${slim.files}">
492      <manifest>
493        <attribute name="Main-Class" value="loci.apps.slim.SlimPlotter"/>
494        <attribute name="Class-Path" value="${slim.classpath}"/>
495      </manifest>
496    </jar>
497  </target>
498
499  <property name="slim.dist-dir" value="${dist.dir}/slim/SlimPlotter"/>
500
501  <target name="dist-slim" if="isUnix" depends="copy-jars, jar-slim">
502    <copy todir="${slim.dist-dir}" preservelastmodified="true">
503      <fileset dir="dist/slim"/>
504      <fileset dir="${jar.dir}" includes="SlimPlotter.jar ${slim.classpath}"/>
505    </copy>
506    <!-- HACK - copy does not preserve permissions; chmod them back -->
507    <chmod perm="+x">
508      <fileset dir="${slim.dist-dir}" includes="slim"/>
509    </chmod>
510<!--
511    <zip destfile="${dist.dir}/slim.zip" basedir="${dist.dir}/slim"/>
512-->
513    <!-- HACK - zip does not preserve permissions; use exec instead -->
514    <exec executable="zip" dir="${dist.dir}/slim">
515      <arg line="-r9 ../slim.zip SlimPlotter"/>
516    </exec>
517  </target>
518
519</project>
Note: See TracBrowser for help on using the repository browser.