-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
141 lines (118 loc) · 3.96 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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<project name="Object Prevalence" default="compile-all" basedir=".">
<property name="site" value="prevaylor-example" />
<property file="build.properties" />
<property name="lib.dir" location="lib" />
<property file="${lib.dir}/lib.properties" />
<property name="docs.dir" location="docs" />
<property name="docs.test.dir" location="${docs.dir}/test" />
<property name="base.dir" value="." />
<property name="src.dir" value="src" />
<property name="src.main.dir" value="${src.dir}/main" />
<property name="src.test.dir" value="${src.dir}/test" />
<property name="conf.dir" value="conf" />
<property name="build.dir" value="build" />
<property name="build.main.dir" value="${build.dir}/main" />
<property name="build.test.dir" value="${build.dir}/test" />
<property name="dist.dir" value="dist" />
<property name="lib.dir" value="lib" />
<path id="commons-collections.classpath">
<fileset dir="${commons-collections.dir}" includes="*.jar" />
</path>
<path id="commons-logging.classpath">
<fileset dir="${commons-logging.dir}" includes="*.jar" />
</path>
<path id="csvjdbc.classpath">
<fileset dir="${csvjdbc.dir}" includes="*.jar" />
</path>
<path id="javamatch.classpath">
<fileset dir="${javamatch.dir}" includes="*.jar" />
</path>
<path id="junit.classpath">
<fileset dir="${junit.dir}" includes="*.jar" />
</path>
<path id="log4j.classpath">
<fileset dir="${log4j.dir}" includes="*.jar" />
</path>
<path id="prevayler.classpath">
<fileset dir="${prevayler.dir}" includes="*.jar" />
</path>
<path id="skaringa.classpath">
<fileset dir="${skaringa.dir}" includes="*.jar" />
</path>
<path id="spring.classpath">
<fileset dir="${spring.dir}" includes="*.jar" />
</path>
<path id="xpp3_min.classpath">
<fileset dir="${xpp3_min.dir}" includes="*.jar" />
</path>
<path id="xstream.classpath">
<fileset dir="${xstream.dir}" includes="*.jar" />
</path>
<path id="main.classpath">
<path refid="commons-collections.classpath" />
<path refid="commons-logging.classpath" />
<path refid="csvjdbc.classpath" />
<path refid="javamatch.classpath" />
<path refid="log4j.classpath" />
<path refid="prevayler.classpath" />
<path refid="skaringa.classpath" />
<path refid="spring.classpath" />
<path refid="xpp3_min.classpath" />
<path refid="xstream.classpath" />
<pathelement path="${build.main.dir}" />
</path>
<path id="test.classpath">
<path refid="main.classpath" />
<path refid="junit.classpath" />
<pathelement path="${build.test.dir}" />
<pathelement path="${conf.dir}" />
</path>
<target name="prepare">
<tstamp />
<mkdir dir="${build.dir}" />
<mkdir dir="${build.main.dir}" />
<mkdir dir="${build.test.dir}" />
<mkdir dir="${dist.dir}" />
</target>
<target name="compile-all" depends="prepare">
<javac destdir="${build.main.dir}" deprecation="on" debug="true">
<classpath refid="main.classpath" />
<src path="${src.main.dir}" />
</javac>
<javac destdir="${build.test.dir}" deprecation="on" debug="true">
<classpath refid="test.classpath" />
<src path="${src.test.dir}" />
</javac>
</target>
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${dist.dir}" />
<delete dir="${conf.dir}/journal" />
<delete dir="${docs.test.dir}" />
</target>
<target name="run-tests" depends="compile-all">
<delete dir="${docs.test.dir}" />
<mkdir dir="${docs.test.dir}" />
<junit printsummary="yes" haltonfailure="no">
<classpath refid="test.classpath" />
<formatter type="plain" />
<batchtest fork="yes" todir="${docs.test.dir}">
<formatter type="xml" />
<fileset dir="${src.test.dir}">
<include name="**/*Test.java" />
</fileset>
</batchtest>
</junit>
<junitreport todir="${docs.test.dir}">
<fileset dir="${docs.test.dir}">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" todir="${docs.test.dir}" />
</junitreport>
<delete>
<fileset dir="./">
<include name="junit*.properties" />
</fileset>
</delete>
</target>
</project>