forked from ScottOaks/JavaPerformanceTuning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
44 lines (38 loc) · 1.38 KB
/
build.xml
File metadata and controls
44 lines (38 loc) · 1.38 KB
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="StockRestService" default="war">
<property environment="env"/>
<property name="stock_api" location="../api/jars/stockapi.jar"/>
<property name="stock_impl" location="../impl/jars/stockimpl.jar"/>
<target name="init">
<mkdir dir="classes"/>
</target>
<path id="class.path">
<pathelement path="${stock_api}"/>
<pathelement path="${stock_impl}"/>
<pathelement location="${env.JAVAX_PERSISTENCE}"/>
<pathelement location="${env.JAVAX_RS}"/>
<pathelement location="${env.JSON_P}"/>
</path>
<target name="compile" depends="init">
<javac includeantruntime="false" srcdir="src"
debug="true" destdir="classes"
classpathref="class.path"/>
</target>
<target name="war" depends="compile">
<war warfile="jars/StockPriceRestService.war" needxmlfile="false">
<manifest>
</manifest>
<classes dir="classes" includes="**/*.class"/>
<zipfileset dir="../api/jars" includes="stockapi.jar"
fullpath="WEB-INF/lib/stockapi.jar"/>
<zipfileset dir="../impl/jars" includes="stockimpl.jar"
fullpath="WEB-INF/lib/stockimpl.jar"/>
</war>
</target>
<target name="clean">
<delete>
<fileset dir="classes"/>
<fileset dir="jars"/>
</delete>
</target>
</project>