-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.xml
44 lines (38 loc) · 1.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
<project name="upparse" default="compile" basedir=".">
<property name="srcdir" value="java"/>
<property name="destdir" value="classes"/>
<path id="classpath.test">
<pathelement location="${destdir}"/>
<pathelement location="lib/junit-4.8.2.jar"/>
</path>
<target name="clean">
<delete dir="${destdir}"/>
</target>
<target name="compile">
<mkdir dir="${destdir}"/>
<javac srcdir="${srcdir}" destdir="${destdir}" debug="true" excludes="**/tests/*.java" includeantruntime="false">
<compilerarg value="-Xlint"/>
</javac>
</target>
<target name="compile-tests" depends="compile">
<javac srcdir="${srcdir}" destdir="${destdir}" debug="true" includes="**/tests/*.java">
<compilerarg value="-Xlint"/>
<classpath refid="classpath.test"/>
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="upparse.jar">
<manifest>
<attribute name="Main-class" value="upparse.cli.Main"/>
</manifest>
<fileset dir="${destdir}" includes="**/*.class" excludes="**/tests/*.class"/>
</jar>
</target>
<target name="unittests" depends="compile-tests">
<junit>
<classpath refid="classpath.test"/>
<test name="upparse.tests.BIOEncodingTests"/>
<test name="upparse.tests.ClumpedCorpusTests"/>
</junit>
</target>
</project>