2 |
|
|
3 |
<property name="builddir" value="antbuild" /> |
<property name="builddir" value="antbuild" /> |
4 |
<property name="jarfile" value="CircuitBreaker.jar" /> |
<property name="jarfile" value="CircuitBreaker.jar" /> |
5 |
|
<property name="extlibpath" value="../" /> |
6 |
|
<property name="glassfish" value="/home/app/glassfishv3/glassfish" /> |
7 |
|
|
8 |
<path id="path.base"> |
<path id="path.base"> |
9 |
<fileset dir="/home/app/glassfishv3/glassfish/modules/"> |
<fileset dir="${glassfish}/modules/"> |
10 |
<include name="*.jar" /> |
<include name="*.jar" /> |
11 |
</fileset> |
</fileset> |
12 |
<fileset dir="../"> |
<fileset dir="${extlibpath}"> |
13 |
<include name="*.jar" /> |
<include name="*.jar" /> |
14 |
</fileset> |
</fileset> |
15 |
</path> |
</path> |
24 |
</target> |
</target> |
25 |
|
|
26 |
<target name="compile" depends="init"> |
<target name="compile" depends="init"> |
27 |
<javac srcdir="src/" destdir="${builddir}" debug="off" optimize="on" includeantruntime="false"> |
<javac srcdir="src/" destdir="${builddir}" debug="off" optimize="on" includeantruntime="false" updatedProperty="didcompile"> |
28 |
<classpath refid="path.base" /> |
<classpath refid="path.base" /> |
29 |
</javac> |
</javac> |
30 |
</target> |
</target> |
31 |
|
|
32 |
|
|
33 |
<target name="test" depends="compile"> |
<target name="test" depends="compile" if="didcompile"> |
34 |
<javac srcdir="test/" includeantruntime="false"> |
<javac srcdir="test/" includeantruntime="false"> |
35 |
<classpath refid="path.base" /> |
<classpath refid="path.base" /> |
36 |
<classpath path="${builddir}"/> |
<classpath path="${builddir}"/> |