forked from imagej/ImageJA
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
75 lines (59 loc) · 2.33 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!-- Ant makefile for ImageJ -->
<project name="ImageJ" default="run">
<target name="compile" description="Compile everything.">
<!-- First, ensure the build directory exists. -->
<mkdir dir="build" />
<!-- Build everything; add debug="on" to debug -->
<javac srcdir="./ij" destdir="build" optimize="on" source="1.6" target="1.8" debug="on" includeantruntime="false" encoding="utf-8">
<classpath>
<pathelement path="lib/cheerpj-dom.jar"/>
</classpath>
</javac>
</target>
<target name="build" depends="compile" description="Build ij.jar.">
<!-- Copy needed files into the build directory. -->
<copy file="IJ_Props.txt" todir="build" />
<copy file="images/microscope.gif" tofile="build/microscope.gif" />
<copy file="images/about.jpg" tofile="build/about.jpg" />
<!-- <copy file="plugins/MacAdapter.class" tofile="build/ij/plugin/MacAdapter.class" />
<copy file="plugins/MacAdapter9.class" tofile="build/ij/plugin/MacAdapter9.class" /> -->
<copy todir="build/macros"><fileset dir="macros"/></copy>
<!-- Build ij.jar. -->
<jar jarfile="ij.jar" basedir="build"
manifest="MANIFEST.MF" />
</target>
<target name="clean" description="Delete the build files.">
<delete dir="build" />
<delete file="ij.jar" />
</target>
<target name="run" depends="build" description="Build and run ImageJ.">
<copy file="ij.jar" toDir=".." />
<java maxmemory="640m" jar="ij.jar" fork="yes" />
</target>
<target name="run2" depends="build" description="Build and run ImageJ.">
<!-- Run in ImageJ directory -->
<copy file="ij.jar" toDir=".." />
<java maxmemory="640m" dir=".." jar="ij.jar" fork="yes" />
</target>
<target name="zip" depends="clean" description="Build zrc.zip.">
<zip zipfile="../src.zip"
basedir=".."
includes="source/**"
excludes="source/.gdb_history source/.FBCIndex source/.FBCLockFolder/**"
/>
</target>
<target name="javadocs" description="Build the JavaDocs.">
<delete dir="../api" />
<mkdir dir="../api" />
<javadoc
sourcepath="."
encoding="utf-8"
packagenames="ij.*"
destdir="../api"
author="true"
version="true"
use="true"
windowtitle="ImageJ API">
</javadoc>
</target>
</project>