-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
45 lines (37 loc) · 1.43 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
<?xml version='1.0' encoding='utf-8'?>
<project name="critspace" default="package" basedir="." xmlns:antlr="antlib:org.apache.tools.ant.antlr">
<!-- Import the basic default project -->
<property name="build.properties" value="${basedir}/build.properties"/>
<import file="${basedir}/../build-tools/basic.xml"/>
<!-- This is where we'll stick source code generated by ANTLR
TODO that's not what this looks like it is -->
<property name="src.test.dir" value="./test"/>
<!-- Override src.path to include ${src.generated.dir} -->
<path id="src.path">
<pathelement location="src"/>
<pathelement location="${src.test.dir}"/>
</path>
<property name="etc.dir" value="${basedir}/etc/"/>
<patternset id="meta.files">
<include name="**/*.xml"/>
<include name="**/*.properties"/>
</patternset>
<target name="copy-metafiles">
<copy todir="${classfile.dir}">
<fileset dir="${src.dir}">
<patternset refid="meta.files"/>
</fileset>
</copy>
<copy todir="${classfile.dir}">
<fileset dir="${etc.dir}">
<patternset refid="meta.files"/>
</fileset>
</copy>
</target>
<target name="compile" depends="basic.compile, copy-metafiles" />
<target name="dbtest" depends="compile">
<java classname="org.idch.critspace.DBTest" fork="true">
<classpath refid="test.compile.path"/>
</java>
</target>
</project>