-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.xml
28 lines (24 loc) · 951 Bytes
/
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="EDF" default="install" basedir=".">
<property name="lib" location="../lib/"/>
<property name="src" location="dist/${ant.project.name}-src.zip"/>
<property name="cls" location="dist/${ant.project.name}-cls.zip"/>
<property name="jar" location="dist/Extended_Depth_Field.jar"/>
<path id="lib.path">
<pathelement path="${lib}/ij.jar"/>
</path>
<!-- Compilation and distribution in zip and jar file -->
<target name="install">
<copy file="plugins.config" toDir="bin" />
<mkdir dir="dist"/>
<zip destfile="${src}" basedir="src" />
<zip destfile="${cls}" basedir="bin" />
<jar destfile="${jar}" basedir="bin" />
<copy file="${jar}" toDir="../../Imaging-Software/ImageJ.app/plugins/" />
</target>
<!-- Clean classes, jar and zip -->
<target name="clean" description="Clean up build products">
<delete dir="bin"/>
<delete dir="dist"/>
</target>
</project>