-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
80 lines (65 loc) · 2.68 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
75
76
77
78
79
<!-- Build NZGOT -->
<project basedir="." default="build" name="BUILD_NZGOT">
<description>
New Zealand Genomic Observatory Toolkit.
</description>
<property name="JDK_VERSION" value="1.8"/>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="lib" location="lib"/>
<property name="dist" location="${build}/dist"/>
<property name="doc" location="${build}/doc" />
<property name="main_CMCreator" value="nzgo.toolkit.uparse.CMCreator"/>
<path id="classpath">
<fileset dir="${lib}" includes="beast.jar"/>
<fileset dir="${lib}" includes="jebl2-r22.jar"/>
</path>
<!-- start -->
<target name="init">
<echo message="${ant.project.name}: ${ant.file}" />
</target>
<target name="clean">
<delete dir="${build}" />
</target>
<!-- clean previous build, compile Java source code, and Junit test, and make the beast.jar and beauti.jar -->
<target name="build" depends="compile-all,dist-all"
description="Clean and Build all and distribute jar">
</target>
<!-- compile Java source code -->
<target name="compile-all" depends="init,clean">
<mkdir dir="${build}"/>
<!-- Compile the java code from ${src} into ${build} /bin -->
<javac source="${JDK_VERSION}" target="${JDK_VERSION}" srcdir="${src}" destdir="${build}"
classpathref="classpath"
fork="true"
memoryinitialsize="512m"
memorymaximumsize="2048m">
<include name="nzgo/toolkit/core/**"/>
<include name="nzgo/toolkit/uparse/**"/>
<include name="nzgo/toolkit/*.java"/>
</javac>
<echo message="Successfully complied."/>
</target>
<!-- make *.jar -->
<target name="dist-all" depends="compile-all" description="create jar">
<!-- Create the distribution directory -->
<mkdir dir="${dist}"/>
<!-- build CMCreator.jar -->
<jar jarfile="${dist}/CMCreator.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="${main_CMCreator}"/>
</manifest>
<fileset dir="${build}">
<include name="nzgo/toolkit/core/**/*.class"/>
<include name="nzgo/toolkit/uparse/**/*.class"/>
<include name="nzgo/toolkit/NZGOTVersion.class"/>
</fileset>
<zipgroupfileset dir="${lib}" includes="beast.jar"/>
<zipgroupfileset dir="${lib}" includes="jebl2-r22.jar"/>
</jar>
</target>
<!-- Release -->
<property name="version" value="0.0.1" />
</project>