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

Diff of /CircuitBreaker/build.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 821 by torben, Thu Jun 10 11:15:14 2010 UTC revision 1100 by torben, Wed Sep 22 09:43:52 2010 UTC
# Line 2  Line 2 
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    
7          <path id="path.base">          <path id="path.base">
8                  <fileset dir="/home/app/glassfishv3/glassfish/modules/">                  <fileset dir="/home/app/glassfishv3/glassfish/modules/">
9                          <include name="*.jar" />                          <include name="*.jar" />
10                  </fileset>                  </fileset>
11                  <fileset dir="../">                  <fileset dir="${extlibpath}">
12                          <include name="*.jar" />                          <include name="*.jar" />
13                  </fileset>                  </fileset>
14          </path>          </path>
# Line 22  Line 23 
23          </target>          </target>
24    
25          <target name="compile" depends="init">          <target name="compile" depends="init">
26                  <javac srcdir="src/" destdir="${builddir}" debug="off" optimize="on" includeantruntime="false">                  <javac srcdir="src/" destdir="${builddir}" debug="off" optimize="on" includeantruntime="false" updatedProperty="didcompile">
27                          <classpath refid="path.base" />                          <classpath refid="path.base" />
28                  </javac>                  </javac>
29          </target>          </target>
30    
31          <target name="jar" depends="compile">  
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}" />                  <jar destfile="${jarfile}" basedir="${builddir}" />
55          </target>          </target>
56    

Legend:
Removed from v.821  
changed lines
  Added in v.1100

  ViewVC Help
Powered by ViewVC 1.1.20