-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
55 lines (46 loc) · 1.57 KB
/
build.xml
File metadata and controls
55 lines (46 loc) · 1.57 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
<project>
<path id="fib.classpath">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="clean">
<delete dir="build"/>
</target>
<target name="compile" depends="clean">
<mkdir dir="build/classes"/>
<javac srcdir="src" destdir="build/classes" classpathref="fib.classpath" includeantruntime="false"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/Fib.jar" basedir="build/classes">
</jar>
</target>
<target name="run">
<java fork="true" classpathref="fib.classpath" classname="gregsharek.FibServer">
<classpath>
<pathelement location="build/jar/Fib.jar"/>
</classpath>
</java>
</target>
<target name="junit">
<junit fork="yes" printsummary="yes">
<classpath>
<path refid="fib.classpath"/>
<pathelement location="build/jar/Fib.jar"/>
</classpath>
<test name="gregsharek.test.TestFibCalc"/>
<formatter type="plain"/>
</junit>
</target>
<target name="junit-rest">
<junit fork="yes" printsummary="yes">
<classpath>
<path refid="fib.classpath"/>
<pathelement location="build/jar/Fib.jar"/>
</classpath>
<test name="gregsharek.test.TestFibonacciREST"/>
<formatter type="plain"/>
</junit>
</target>
</project>