Synchronize with ImageJ 1.50b
[imageja.git] / build.xml
blob3e429f59f3c72ff332c3a33db8b2c4618c7aa4bc
1 <!-- Ant makefile for ImageJ -->
3 <project name="ImageJ" default="run">
5   <target name="compile" description="Compile everything.">
6     <!-- First, ensure the build directory exists. -->
7     <mkdir dir="build" />
8     <!-- Build everything; add debug="on" to debug -->
9     <javac srcdir="." destdir="build" optimize="on" source="1.5" target="1.5" debug="on" includeantruntime="false">
10       <!-- The plugins directory only needs to be 
11              present at runtime, not at build time. -->
12       <exclude name="plugins/**"/>
13     </javac>
14   </target>
15   
17   <target name="build" depends="compile" description="Build ij.jar.">
18     <!-- Copy needed files into the build directory. -->
19     <copy file="IJ_Props.txt" todir="build" />
20     <copy file="images/microscope.gif" tofile="build/microscope.gif" />
21     <copy file="images/about.jpg" tofile="build/about.jpg" />
22         <copy file="plugins/MacAdapter.class" tofile="build/MacAdapter.class" /> 
23         <copy file="plugins/MacClipboard.class" tofile="build/MacClipboard.class" /> 
24     <copy todir="build/macros"><fileset dir="macros"/></copy>
25     <!-- Build ij.jar. -->
26     <jar jarfile="ij.jar" basedir="build"
27          manifest="MANIFEST.MF" />
28   </target>
31   <target name="clean" description="Delete the build files.">
32     <delete dir="build" />
33     <delete file="ij.jar" />
34   </target>
37   <target name="run" depends="build" description="Build and run ImageJ.">
38     <copy file="ij.jar" toDir=".." />
39     <java maxmemory="640m" jar="ij.jar" fork="yes" />
40   </target>
41     
43   <target name="run2" depends="build" description="Build and run ImageJ.">
44     <!-- Run in ImageJ directory -->
45     <copy file="ij.jar" toDir=".." />
46     <java maxmemory="640m" dir=".." jar="ij.jar" fork="yes" />
47   </target>
49   <target name="zip" depends="clean" description="Build zrc.zip.">
50     <zip zipfile="../src.zip"
51        basedir=".."
52        includes="source/**"
53     />
54   </target>
57   <target name="javadocs" description="Build the JavaDocs.">
58     <delete dir="../api" />
59     <mkdir dir="../api" />
60     <javadoc 
61            sourcepath="."
62            packagenames="ij.*"
63            destdir="../api"
64            author="true"
65            version="true"
66            use="true"
67            windowtitle="ImageJ API">
68     </javadoc>
69   </target>
70   
71   
72    </project>