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 (37 loc) · 1.32 KB
/
build.xml
File metadata and controls
44 lines (37 loc) · 1.32 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="StockEarEJB" 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_impl}"/>
<pathelement path="${stock_api}"/>
<pathelement location="${env.JAVAX_PERSISTENCE}"/>
<pathelement location="${env.JAVAX_EJB}"/>
</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/StockEar-ejb.jar">
<fileset dir="classes" includes="**/*.class"/>
<zipfileset dir="." includes="persistence.xml"
fullpath="META-INF/persistence.xml"/>
</jar>
</target>
<target name="clean">
<delete>
<fileset dir="classes"/>
<fileset dir="jars"/>
</delete>
</target>
</project>