-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
30 lines (26 loc) · 801 Bytes
/
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
<project basedir="." default="war">
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="web.dir" value="WebContent"/>
<property
name="classpath"
value="
lib/jaxrs-api-3.0.7.Final.jar:lib/resteasy-jaxrs-3.0.7.Final.jar
"
/>
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="dist/"/>
</target>
<target name="compile" depends="clean">
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}" destdir="${build.dir}" classpath="${classpath}" debug="off"/>
</target>
<target name="war" depends="compile">
<war destfile="dist/calc.war" webxml="${web.dir}/WEB-INF/web.xml">
<fileset dir="${web.dir}"/>
<lib dir="${web.dir}/WEB-INF/lib"/>
<classes dir="${build.dir}"/>
</war>
</target>
</project>