Commit | Line | Data |
---|---|---|
78f5d120 FT |
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" /> | |
00013ab7 FT |
15 | <mkdir dir="build/bin" /> |
16 | <mkdir dir="build/test-bin" /> | |
78f5d120 FT |
17 | </target> |
18 | ||
19 | <target name="jsvc" depends="build-env"> | |
00013ab7 | 20 | <javac srcdir="src" destdir="build/bin" debug="on"> |
78f5d120 FT |
21 | <!-- <classpath refid="classpath" /> --> |
22 | <compilerarg value="-Xlint:unchecked" /> | |
23 | </javac> | |
00013ab7 | 24 | <copy todir="build/bin/dolda/jsvc/j2ee" file="etc/web.xml.template" /> |
78f5d120 FT |
25 | </target> |
26 | ||
27 | <target name="jsvc-jar" depends="build-env, jsvc"> | |
00013ab7 FT |
28 | <jar destfile="build/jsvc.jar" basedir="build/bin" /> |
29 | </target> | |
30 | ||
31 | <target name="test-jar" depends="build-env, jsvc-jar"> | |
32 | <copy tofile="build/test-bin/jsvc.properties" file="etc/test.jsvc.properties" /> | |
33 | <jar destfile="build/jsvc-test.jar" basedir="build/test-bin" /> | |
78f5d120 FT |
34 | </target> |
35 | ||
78f5d120 FT |
36 | <target name="clean"> |
37 | <delete dir="build" /> | |
38 | </target> | |
39 | </project> |