-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
43 lines (35 loc) · 1.25 KB
/
build.xml
File metadata and controls
43 lines (35 loc) · 1.25 KB
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
<project default="compile">
<property name="srcpath" value="src"/>
<property name="buildpath" value="${basedir}/build"/>
<property name="classpath" value="${buildpath}/classes"/>
<property name="debugpath" value="${buildpath}/debug"/>
<property name="jarpath" value="${buildpath}/jar"/>
<property name="jarfile" value="f6json.jar"/>
<property name="build.sysclasspath" value="ignore"/>
<target name="clean">
<delete dir="${buildpath}"/>
</target>
<target name="compile">
<mkdir dir="${classpath}"/>
<javac srcdir="${srcpath}" destdir="${classpath}">
<exclude name="com/floorsix/json/Test**"/>
<exclude name="com/floorsix/test/**"/>
</javac>
</target>
<target name="debug">
<mkdir dir="${debugpath}"/>
<javac srcdir="${srcpath}" destdir="${debugpath}" debug="on" debuglevel="lines,vars,source"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="${jarpath}"/>
<delete file="${jarpath}/${jarfile}"/>
<jar destfile="${jarpath}/${jarfile}">
<fileset dir="${classpath}"/>
</jar>
</target>
<target name="test" depends="debug">
<java classname="com.floorsix.json.Test" classpath="${debugpath}" fork="true">
<jvmarg value="-ea"/>
</java>
</target>
</project>