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
37 lines (32 loc) · 926 Bytes
/
build.xml
File metadata and controls
37 lines (32 loc) · 926 Bytes
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 name="JNI" default="jar">
<target name="init">
<mkdir dir="classes"/>
<mkdir dir="jars"/>
<mkdir dir="src/h"/>
</target>
<target name="compile" depends="init">
<property environment="env"/>
<javac includeantruntime="false" srcdir="src/java"
debug="true" destdir="classes">
</javac>
</target>
<target name="jar" depends="compile">
<jar jarfile="jars/random.jar">
<manifest>
<attribute name="Main-Class" value="net.sdo.RandomTestJava"/>
</manifest>
<fileset dir="classes" includes="**/*.class"/>
</jar>
<javah classpath="jars/random.jar" destdir="src/h" class="net.sdo.RandomTestJava"/>
</target>
<target name="clean">
<delete>
<fileset dir="classes"/>
<fileset dir="jars"/>
<fileset dir="bin"/>
<fileset dir="lib"/>
<fileset dir="src/h"/>
</delete>
</target>
</project>