/[projects]/CircuitBreaker/build.xml
ViewVC logotype

Contents of /CircuitBreaker/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1100 - (show annotations) (download) (as text)
Wed Sep 22 09:43:52 2010 UTC (13 years, 8 months ago) by torben
File MIME type: text/xml
File size: 1463 byte(s)
make external lib path to a property (so it can be overridden)
1 <project name="CircuiBreaker" default="jar">
2
3 <property name="builddir" value="antbuild" />
4 <property name="jarfile" value="CircuitBreaker.jar" />
5 <property name="extlibpath" value="../" />
6
7 <path id="path.base">
8 <fileset dir="/home/app/glassfishv3/glassfish/modules/">
9 <include name="*.jar" />
10 </fileset>
11 <fileset dir="${extlibpath}">
12 <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 <javac srcdir="src/" destdir="${builddir}" debug="off" optimize="on" includeantruntime="false" updatedProperty="didcompile">
27 <classpath refid="path.base" />
28 </javac>
29 </target>
30
31
32 <target name="test" depends="compile" if="didcompile">
33 <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 <jar destfile="${jarfile}" basedir="${builddir}" />
55 </target>
56
57 </project>

  ViewVC Help
Powered by ViewVC 1.1.20