-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.xml
More file actions
82 lines (72 loc) · 2.96 KB
/
build.xml
File metadata and controls
82 lines (72 loc) · 2.96 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
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
80
81
82
<?xml version="1.0"?>
<project name="performance-meters" basedir="." default="build">
<property name="name" value="performance-meters"/>
<property file="build.properties"/>
<property name="src.dir" value="src/java"/>
<property name="dist.dir" value="lib"/>
<property name="test.dir" value="test/java"/>
<property name="target.dir" value="classes/production"/>
<property name="target.test.dir" value="classes/test"/>
<property name="test.output.dir" value="test-results"/>
<path id="master-classpath">
<fileset dir="${java.library.user}">
<include name="junit.jar"/>
<include name="xcc.jar"/>
<include name="xdmp.jar"/>
</fileset>
<fileset dir="${java.library.system}">
<include name="junit.jar"/>
<include name="xcc.jar"/>
<include name="xdmp.jar"/>
</fileset>
<pathelement path="${build.dir}"/>
</path>
<target name="build"
description="Compile main source tree java files">
<mkdir dir="${target.dir}"/>
<javac destdir="${target.dir}" debug="on" target="1.5">
<src path="${src.dir}"/>
<classpath refid="master-classpath"/>
<compilerarg value="-Xlint"/>
</javac>
</target>
<target name="build.test" depends="build" description="Compiles the JUnit tests">
<mkdir dir="${target.test.dir}"/>
<javac destdir="${target.test.dir}" debug="on" target="1.5">
<src path="${test.dir}"/>
<classpath refid="master-classpath"/>
<compilerarg value="-Xlint"/>
</javac>
</target>
<target name="build.all" description="Compiles the main src tree and the JUnit tests"
depends="build, build.test"/>
<target name="jar" depends="build"
description="generate the jarfile">
<mkdir dir="${dist.dir}"/>
<jar jarfile="${dist.dir}/${name}.jar" basedir="${target.dir}"
compress="true" index="true"
excludes="*.java,*.class,**/.*,**/*~"/>
</target>
<target name="clean" depends="build.test" description="Removes the compiled class files">
<delete dir="${target.dir}"/>
<delete dir="${target.test.dir}"/>
</target>
<target name="test" description="executes the JUnit tests">
<mkdir dir="${test.output.dir}"/>
<junit printsummary="yes" haltonfailure="yes">
<classpath>
<pathelement path="${target.test.dir}"/>
<pathelement path="${target.dir}"/>
<fileset dir="${dependencies}">
<include name="junit-4.4.jar"/>
</fileset>
</classpath>
<formatter type="plain"/>
<batchtest fork="no" todir="${test.output.dir}">
<fileset dir="${test.dir}">
<include name="**/*Test*.java"/>
</fileset>
</batchtest>
</junit>
</target>
</project>