Added the includeantruntime attribute to build.xml.
[jsvc.git] / build.xml
1 <?xml version="1.0"?>
2
3 <project name="haven-jsvc" default="jsvc-jar">
4     
5    <property environment="env" />
6
7    <!--
8    <path id="classpath">
9       <pathelement path="${env.CATALINA_HOME}/common/lib/servlet-api.jar" />
10    </path>
11    -->
12     
13    <target name="build-env">
14       <mkdir dir="build" />
15       <mkdir dir="build/bin" />
16       <mkdir dir="build/api" />
17     </target>
18
19     <target name="jsvc" depends="build-env">
20       <javac srcdir="src" destdir="build/bin" debug="on" includeantruntime="true">
21         <!-- <classpath refid="classpath" /> -->
22         <compilerarg value="-Xlint:unchecked" />
23       </javac>
24       <copy todir="build/bin/dolda/jsvc/j2ee" file="etc/web.xml.template" />
25       <copy todir="build/bin/dolda/jsvc/next/catalog">
26         <fileset dir="etc/catalog" />
27       </copy>
28     </target>
29     
30     <target name="jsvc-jar" depends="build-env, jsvc">
31         <jar destfile="build/jsvc.jar" basedir="build/bin" />
32     </target>
33     
34     <target name="javadoc" depends="jsvc-jar">
35       <javadoc packagenames="dolda.jsvc.*"
36                sourcepath="src"
37                destdir="build/api" />
38       <zip destfile="build/jsvc-api.zip" basedir="build/api" />
39     </target>
40
41     <target name="clean">
42        <delete dir="build" />
43     </target>
44 </project>