1 |
torben |
821 |
<project name="CircuiBreaker" default="jar"> |
2 |
|
|
|
3 |
|
|
<property name="builddir" value="antbuild" /> |
4 |
|
|
<property name="jarfile" value="CircuitBreaker.jar" /> |
5 |
torben |
1100 |
<property name="extlibpath" value="../" /> |
6 |
torben |
821 |
|
7 |
|
|
<path id="path.base"> |
8 |
|
|
<fileset dir="/home/app/glassfishv3/glassfish/modules/"> |
9 |
|
|
<include name="*.jar" /> |
10 |
|
|
</fileset> |
11 |
torben |
1100 |
<fileset dir="${extlibpath}"> |
12 |
torben |
821 |
<include name="*.jar" /> |
13 |
|
|
</fileset> |
14 |
|
|
</path> |
15 |
|
|
|
16 |
|
|
<target name="clean"> |
17 |
|
|
<delete file="${jarfile}" /> |
18 |
|
|
<delete dir="${builddir}" /> |
19 |
|
|
</target> |
20 |
|
|
|
21 |
|
|
<target name="init"> |
22 |
|
|
<mkdir dir="${builddir}" /> |
23 |
|
|
</target> |
24 |
|
|
|
25 |
|
|
<target name="compile" depends="init"> |
26 |
torben |
828 |
<javac srcdir="src/" destdir="${builddir}" debug="off" optimize="on" includeantruntime="false" updatedProperty="didcompile"> |
27 |
torben |
821 |
<classpath refid="path.base" /> |
28 |
|
|
</javac> |
29 |
|
|
</target> |
30 |
|
|
|
31 |
torben |
823 |
|
32 |
torben |
828 |
<target name="test" depends="compile" if="didcompile"> |
33 |
torben |
823 |
<javac srcdir="test/" includeantruntime="false"> |
34 |
|
|
<classpath refid="path.base" /> |
35 |
|
|
<classpath path="${builddir}"/> |
36 |
|
|
</javac> |
37 |
|
|
|
38 |
|
|
<junit printsummary="on" |
39 |
|
|
fork="false" |
40 |
|
|
haltonfailure="true" |
41 |
|
|
showoutput="true" > |
42 |
|
|
|
43 |
|
|
<classpath refid="path.base" /> |
44 |
|
|
<classpath path="${builddir}"/> |
45 |
|
|
<classpath path="test"/> |
46 |
|
|
|
47 |
|
|
<test name="dk.thoerup.circuitbreaker.TestCircuitBreaker" /> |
48 |
|
|
<test name="dk.thoerup.circuitbreaker.TestAccountingCircuitBreaker" /> |
49 |
|
|
|
50 |
|
|
</junit> |
51 |
|
|
</target> |
52 |
|
|
|
53 |
|
|
<target name="jar" depends="test"> |
54 |
torben |
821 |
<jar destfile="${jarfile}" basedir="${builddir}" /> |
55 |
|
|
</target> |
56 |
|
|
|
57 |
|
|
</project> |