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
55 lines (48 loc) · 1.71 KB
/
build.xml
File metadata and controls
55 lines (48 loc) · 1.71 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
47
48
49
50
51
52
53
54
55
<?xml version="1.0"?>
<project name="StockCreateJPA" 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"/>
<mkdir dir="jars"/>
<mkdir dir="jars/lib"/>
</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/StockCreateJPA.jar">
<manifest>
<attribute name="Class-Path"
value="${env.JAVAX_PERSISTENCE} ${env.ECLIPSELINK_RUNTIME} ${env.JDBC_JAR} lib/stockapi.jar lib/stockimpl.jar"/>
<attribute name="Main-Class" value="net.sdo.StockPriceCreateJPA"/>
</manifest>
<fileset dir="classes" includes="**/*.class"/>
<fileset dir="." includes="META-INF/persistence.xml"/>
<zipfileset dir="../impl/jars" includes="stockimpl.jar"
fullpath="lib/stockimpl.jar"/>
<zipfileset dir="../api/jars" includes="stockapi.jar"
fullpath="lib/stockapi.jar"/>
</jar>
<copy file="${stock_api}" todir="jars/lib"/>
<copy file="${stock_impl}" todir="jars/lib"/>
</target>
<target name="clean">
<delete>
<fileset dir="classes"/>
<fileset dir="jars"/>
</delete>
</target>
</project>