-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
69 lines (59 loc) · 1.74 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
<project default="compile">
<property file="build.properties"/>
<typedef onerror="failall" resource="scala/tools/ant/antlib.xml"/>
<path id="classpath.lib">
<fileset dir="lib"/>
</path>
<target name="clean">
<delete dir="build"/>
<delete dir="test"/>
</target>
<target name="prepare">
<mkdir dir="build/classes"/>
<mkdir dir="test"/>
</target>
<target name="compile" depends="prepare">
<scalac srcdir="src/scala" destdir="build/classes">
<classpath refid="classpath.lib"/>
</scalac>
</target>
<target name="compile-test" depends="compile">
<scalac srcdir="src/test" destdir="build/classes">
<classpath refid="classpath.lib"/>
</scalac>
</target>
<target name="jar" depends="compile">
<jar destfile="scalasql.jar">
<fileset dir="build/classes"/>
</jar>
</target>
<target name="create-database">
<delete dir="derby"/>
<sql driver="${jdbc.embedded.driver}" url="${jdbc.embedded.url.create}" userid="APP" password="" delimiter="/">
<classpath refid="classpath.lib"/>
<fileset dir="src/sql" includes="create_tables.sql"/>
</sql>
</target>
<target name="test" depends="compile-test">
<junit
errorProperty="test.failed"
failureproperty="test.failed"
printsummary="no"
haltonfailure="no"
fork="true"
forkmode="once"
reloading="false"
dir="."
showoutput="no">
<classpath path="build/classes"/>
<classpath refid="classpath.lib"/>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<batchtest todir="test">
<fileset dir="build/classes">
<include name="**/*Test.class"/>
</fileset>
</batchtest>
</junit>
</target>
</project>