-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
48 lines (42 loc) · 1.48 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
<?xml version="1.0"?>
<project name="libSBOLcore" default="jar" basedir=".">
<property name="jar.filename" value="libSBOLxml.jar"/>
<property name="build.dir" value="build"/>
<property name="src.dir" value="src"/>
<property name="core.src.dir" value="core/src"/>
<property name="test.dir" value="test"/>
<path id="xml.classpath">
<fileset dir="libs"><include name="*.jar"/></fileset>
</path>
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${test.dir}" />
<delete file="${jar.filename}" />
</target>
<target name="build">
<mkdir dir="${build.dir}"/>
<javac srcdir="${core.src.dir}" destdir="${build.dir}" includeantruntime='false' debug="on" debuglevel="lines,vars,source">
<classpath refid="xml.classpath"/>
</javac>
<javac srcdir="${src.dir}" destdir="${build.dir}" includeantruntime='false' debug="on" debuglevel="lines,vars,source">
<classpath refid="xml.classpath"/>
</javac>
</target>
<target name="jar" depends="build">
<jar jarfile="${jar.filename}">
<fileset dir="${build.dir}"/>
<manifest>
<attribute name="Main-Class" value="org.sbolstandard.xml.Main"/>
</manifest>
</jar>
</target>
<target name="test" depends="jar">
<mkdir dir="${test.dir}" />
<junit>
<test name="org.sbolstandard.xml.test.TestMarshalling"/>
<formatter type="plain" usefile="false"/>
<classpath refid="xml.classpath"/>
<classpath><fileset file="${jar.filename}" /></classpath>
</junit>
</target>
</project>