forked from beeware/voc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-java.xml
60 lines (50 loc) · 1.87 KB
/
build-java.xml
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
56
57
58
59
60
<project name="python" default="dist" basedir=".">
<description>
Build Python support libraries for voc
</description>
<!-- set global properties for this build -->
<property name="src" location="python"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<target name="compile" description="Compile the Oracle-specific source">
<mkdir dir="${build}/java"/>
<javac
debug="true"
debuglevel="lines,vars,source"
includeantruntime="false"
destdir="${build}/java">
<src path="${src}/common" />
<src path="${src}/java" />
</javac>
</target>
<target name="compile-testdaemon" description="Compile the testdaemon source">
<mkdir dir="${build}/java-testdaemon"/>
<javac
debug="true"
debuglevel="lines,vars,source"
includeantruntime="false"
destdir="${build}/java-testdaemon">
<src path="${src}/testdaemon" />
</javac>
</target>
<target name="dist" depends="compile" description="Generate Oracle jar file">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/Python-Java-${python-version}-b${release}.jar" basedir="${build}/java"/>
<copy
tofile="${dist}/python-java.jar"
file="${dist}/Python-Java-${python-version}-b${release}.jar"
overwrite="true" />
</target>
<target name="dist-testdaemon" depends="compile-testdaemon" description="Generate testdaemon jar file">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/Python-Java-testdaemon-${python-version}-b${release}.jar" basedir="${build}/java-testdaemon"/>
<copy
tofile="${dist}/python-java-testdaemon.jar"
file="${dist}/Python-Java-testdaemon-${python-version}-b${release}.jar"
overwrite="true" />
</target>
<target name="clean" description="Clean up">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>