-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
77 lines (54 loc) · 1.73 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
<project name="interval_trees" default="compile" basedir=".">
<property name="src" value="src" />
<!-- Load other global properties from local home directory -->
<!-- For example, it's possible to use jikes globally by setting the
build.compiler property to "jikes". -->
<property file="${user.home}/.ant-global.properties"/>
<property name="build" value="build" />
<property name="dist" value="dist" />
<property name="javadoc" value="javadoc" />
<target name="init">
<tstamp />
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
</target>
<!-- empty classpath -->
<path id="project.classpath">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}" debug="yes"
source="1.4">
<classpath refid="project.classpath"/>
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="${dist}/org.arabidopsis.interval.jar" basedir="${build}"/>
</target>
<target name="javadoc">
<javadoc sourcepath="${src}" destdir="${javadoc}"
classpathref="project.classpath"
source="1.4">
<package name="org.arabidopsis.interval.*"/>
</javadoc>
</target>
<!-- JUnit testing framework -->
<target name="junit" depends="compile">
<java fork="yes" classname="junit.textui.TestRunner"
taskname="junit" failonerror="true">
<arg value="org.arabidopsis.interval.TestAll"/>
<classpath>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
<path location="${build}"/>
</classpath>
<assertions><enable/></assertions>
</java>
</target>
<target name="clean">
<delete dir="${build}"/>
</target>
</project>