root/uspswebtools/build.xml

Revision 141 (checked in by muness, 3 years ago)

--

Line 
1 <?xml version="1.0"?>
2
3 <project name="SOAP4USPS" basedir="." default="test">
4
5     <property file="./build.properties"/>
6    
7     <property name="test.failonerror" value="true"/>
8     <property name="test.runner" value="junit.textui.TestRunner"/>
9     <property name="test.entry" value="com.lingerie.usps.tests.WebServicesTest"/>
10
11     <target name="init">
12     </target>
13
14     <path id="classpath">
15         <pathelement location="build"/>
16         <pathelement location="${junit.jar}"/>
17         <pathelement location="${lingerie.jar}"/>
18         <pathelement location="${httpclient.jar}"/>
19         <pathelement location="${codec.jar}"/>
20         <pathelement location="${logging.jar}"/>
21         <pathelement location="${dom4j.jar}"/>
22     </path>
23
24     <target name="compile">
25         <mkdir dir="build"/>
26         <javac srcdir="src:tests" destdir="build" debug="true" deprecation="true">
27             <classpath>
28                 <pathelement location="${httpclient.jar}"/>
29                 <pathelement location="${junit.jar}"/>
30                 <pathelement location="${lingerie.jar}"/>
31                 <pathelement location="${logging.jar}"/>
32                 <pathelement location="${dom4j.jar}"/>
33             </classpath>
34         </javac>
35     </target>
36
37     <target name="jar" depends="init, compile">
38     <jar jarfile="${dist.jar}">
39         <fileset dir="${build}" includes="com/**/*.class"/>
40     </jar>
41     </target>
42
43     <target name="all" depends="init,jar" description="Build everything.">
44     </target>
45
46     <target name="test" depends="init,compile" description="Run JUnit Tests">
47       <java classname="${test.runner}" failonerror="${test.failonerror}" fork="yes">
48         <arg value="${test.entry}"/>
49         <classpath refid="classpath"/>
50       </java>
51     </target>
52     <target name="javadoc" depends="init" description="Javadoc for my API.">
53         <mkdir dir="apidoc"/>
54         <javadoc packagenames="com.lingerie.usps" destdir="apidoc">
55             <sourcepath>
56                 <pathelement location="."/>
57             </sourcepath>
58         </javadoc>
59     </target>
60
61     <target name="clean" depends="init" description="Clean all build products.">
62         <delete dir="build"/>
63         <delete dir="apidoc"/>
64     </target>
65
66 </project>
Note: See TracBrowser for help on using the browser.