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. -->
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/**"/>
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" />
31 <target name="clean" description="Delete the build files.">
32 <delete dir="build" />
33 <delete file="ij.jar" />
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" />
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" />
49 <target name="zip" depends="clean" description="Build zrc.zip.">
50 <zip zipfile="../src.zip"
57 <target name="javadocs" description="Build the JavaDocs.">
58 <delete dir="../api" />
59 <mkdir dir="../api" />
67 windowtitle="ImageJ API">