-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.xml
60 lines (47 loc) · 1.54 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
<?xml version="1.0"?>
<project name="treesub" default="dist" basedir=".">
<property name="src.dir" location="src" />
<property name="build.dir" location="build" />
<property name="dist.dir" location="dist" />
<property name="docs.dir" location="docs/api" />
<property name="libs.dir" location="lib" />
<path id="build.classpath">
<fileset dir="${libs.dir}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${docs.dir}" />
<delete dir="${dist.dir}" />
</target>
<target name="makedir">
<mkdir dir="${build.dir}" />
<mkdir dir="${docs.dir}" />
<mkdir dir="${dist.dir}" />
</target>
<target name="compile" depends="clean, makedir">
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="build.classpath">
</javac>
</target>
<target name="docs" depends="compile">
<javadoc sourcepath="${src.dir}" destdir="${docs.dir}" Overview="etc/overview.html" classpathref="build.classpath">
<fileset dir="${src.dir}">
<include name="**" />
</fileset>
</javadoc>
</target>
<target name="jar" depends="compile">
<jar destfile="${dist.dir}\treesub.jar" basedir="${build.dir}">
<manifest>
<attribute name="Manifest-Version" value="1.0" />
<attribute name="Main-Class" value="treesub.gui.AnnotatorGUI" />
</manifest>
<fileset dir="resources" />
<zipgroupfileset dir="lib" includes="*.jar" />
</jar>
</target>
<target name="dist" depends="compile, jar">
<description>Build everything</description>
</target>
</project>