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
46 lines (39 loc) · 1.3 KB
/
build.xml
File metadata and controls
46 lines (39 loc) · 1.3 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
45
46
<?xml version="1.0"?>
<project name="StockSerialization" default="jar">
<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}"/>
</path>
<target name="build-deps">
<ant dir="../api" target="jar"/>
<ant dir="../impl" target="jar"/>
</target>
<target name="compile" depends="init,build-deps">
<javac includeantruntime="false" srcdir="src"
debug="true" destdir="classes"
classpathref="class.path"/>
</target>
<target name="jar" depends="compile">
<jar jarfile="jars/StockSerialization.jar">
<manifest>
<attribute name="Class-Path"
value="${env.JAVAX_PERSISTENCE} ${stock_api} ${stock_impl}"/>
<attribute name="Main-Class" value="net.sdo.StockHistorySerializeTest"/>
</manifest>
<fileset dir="classes" includes="**/*.class"/>
</jar>
</target>
<target name="clean">
<delete>
<fileset dir="classes"/>
<fileset dir="jars"/>
</delete>
</target>
</project>