Added config to the general ServerContext interface.
[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">
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     </target>
26     
27     <target name="jsvc-jar" depends="build-env, jsvc">
28         <jar destfile="build/jsvc.jar" basedir="build/bin" />
29     </target>
30     
31     <target name="javadoc" depends="jsvc-jar">
32       <javadoc packagenames="dolda.jsvc.*"
33                sourcepath="src"
34                destdir="build/api" />
35       <zip destfile="build/jsvc-api.zip" basedir="build/api" />
36     </target>
37
38     <target name="clean">
39        <delete dir="build" />
40     </target>
41 </project>