-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
74 lines (65 loc) · 2.2 KB
/
build.xml
File metadata and controls
74 lines (65 loc) · 2.2 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="filter">
<property environment="env" />
<property name="junit.output.dir" value="junit" />
<property name="debuglevel" value="source,lines,vars" />
<property name="target" value="1.7" />
<property name="source" value="1.7" />
<property name="main.source" value="src/main" />
<property name="test.source" value="src/test" />
<property name="build" value="bin" />
<property name="build_test" value="bin/test" />
<property name="lib" value="lib" />
<property name="javadoc" value="javadoc" />
<path id="main.classpath">
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
<path location="${build}" />
</path>
<path id="test.classpath">
<fileset dir="${lib}" id="libraries">
<include name="**/*.jar" />
</fileset>
<path location="${build}" />
<path location="${build_test}" />
<path refid="main.classpath" />
</path>
<target name="build" depends="clean">
<mkdir dir="${build}" />
<javac srcdir="${main.source}" destdir="${build}" includeantruntime="false" classpathref="main.classpath">
</javac>
</target>
<target name="buildTest" depends="build">
<mkdir dir="${build}" />
<mkdir dir="${build_test}" />
<javac srcdir="${test.source}" destdir="${build_test}" classpathref="test.classpath" debug="on" includeantruntime="false" />
</target>
<target name="test" depends="buildTest">
<junit printsummary="yes" haltonerror="no" fork="yes">
<classpath refid="test.classpath" />
<batchtest>
<fileset dir="${build_test}">
<include name="**/*.class" />
<exclude name="**/*$*.class" />
</fileset>
</batchtest>
<assertions>
<enable />
</assertions>
</junit>
</target>
<target name="javadoc" description="Creates javadoc for the filter api.">
<javadoc destdir="${javadoc}" classpathref="main.classpath">
<fileset dir="src" defaultexcludes="yes">
<include name="main/**"/>
<exclude name="test/**"/>
</fileset>
</javadoc>
</target>
<target name="clean">
<delete dir="${build}" />
<delete dir="${build_test}" />
<delete dir="${javadoc}" />
</target>
</project>