forked from glerup/jersey-sample-app-ivy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
37 lines (32 loc) · 1.09 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
<?xml version="1.0" ?>
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="Jersey Error Handling Sample App" default="war">
<path id="compile.classpath">
<fileset dir="WebContent/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<mkdir dir="build/classes"/>
<mkdir dir="dist" />
</target>
<target name="resolve" description="--> retrieve dependencies with ivy">
<ivy:retrieve type="jar" pattern="WebContent/WEB-INF/lib/[artifact]-[revision].[ext]" />
</target>
<target name="compile" depends="init, resolve">
<javac destdir="build/classes" debug="true" srcdir="src">
<classpath refid="compile.classpath"/>
</javac>
</target>
<target name="war" depends="compile">
<war destfile="dist/SampleApp.war" webxml="WebContent/WEB-INF/web.xml">
<fileset dir="WebContent"/>
<lib dir="WebContent/WEB-INF/lib"/>
<classes dir="build/classes"/>
</war>
</target>
<target name="clean">
<delete dir="dist" />
<delete dir="build" />
<delete dir="WebContent/WEB-INF/lib" />
</target>
</project>