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

Contents of /CircuitBreaker/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1133 - (show annotations) (download) (as text)
Fri Sep 24 11:24:18 2010 UTC (13 years, 8 months ago) by torben
File MIME type: text/xml
File size: 1515 byte(s)
make glassfish path 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 <property name="glassfish" value="/home/app/glassfishv3/glassfish" />
7
8 <path id="path.base">
9 <fileset dir="${glassfish}/modules/">
10 <include name="*.jar" />
11 </fileset>
12 <fileset dir="${extlibpath}">
13 <include name="*.jar" />
14 </fileset>
15 </path>
16
17 <target name="clean">
18 <delete file="${jarfile}" />
19 <delete dir="${builddir}" />
20 </target>
21
22 <target name="init">
23 <mkdir dir="${builddir}" />
24 </target>
25
26 <target name="compile" depends="init">
27 <javac srcdir="src/" destdir="${builddir}" debug="off" optimize="on" includeantruntime="false" updatedProperty="didcompile">
28 <classpath refid="path.base" />
29 </javac>
30 </target>
31
32
33 <target name="test" depends="compile" if="didcompile">
34 <javac srcdir="test/" includeantruntime="false">
35 <classpath refid="path.base" />
36 <classpath path="${builddir}"/>
37 </javac>
38
39 <junit printsummary="on"
40 fork="false"
41 haltonfailure="true"
42 showoutput="true" >
43
44 <classpath refid="path.base" />
45 <classpath path="${builddir}"/>
46 <classpath path="test"/>
47
48 <test name="dk.thoerup.circuitbreaker.TestCircuitBreaker" />
49 <test name="dk.thoerup.circuitbreaker.TestAccountingCircuitBreaker" />
50
51 </junit>
52 </target>
53
54 <target name="jar" depends="test">
55 <jar destfile="${jarfile}" basedir="${builddir}" />
56 </target>
57
58 </project>

  ViewVC Help
Powered by ViewVC 1.1.20