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