forked from tim-group/narrative
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
52 lines (45 loc) · 1.51 KB
/
build.xml
File metadata and controls
52 lines (45 loc) · 1.51 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Narrative" default="jar" basedir=".">
<path id="classpath">
<pathelement location="build/src"/>
<pathelement location="build/test"/>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="jar" depends="compile, test">
<tstamp />
<jar jarfile="narrative-${DSTAMP}.jar">
<metainf dir="META-INF" />
<fileset dir="build/src"/>
<fileset dir="src"/>
</jar>
</target>
<target name="compile">
<mkdir dir="build/src" />
<javac srcdir="src" destdir="build/src" classpathref="classpath" />
</target>
<target name="compile-test" depends="compile">
<mkdir dir="build/test" />
<javac srcdir="test" destdir="build/test" classpathref="classpath" />
</target>
<target name="test" depends="compile, compile-test">
<mkdir dir="results" />
<junit haltonfailure="yes">
<classpath refid="classpath"/>
<batchtest todir="results">
<formatter type="xml" />
<fileset dir="test">
<include name="**/*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="clean">
<delete dir="build"/>
<delete dir="results"/>
<delete>
<fileset dir="." includes="narrative*.jar"/>
</delete>
</target>
</project>