forked from beeware/voc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-java.xml
64 lines (54 loc) · 2.09 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
61
62
63
64
<project name="python" default="dist" basedir=".">
<description>
Build Python support libraries for voc
</description>
<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_stdlib" description="Compile the standard library">
<exec executable="python">
<arg value="tools/compile_stdlib.py"/>
<arg value="--fast"/>
<arg value="java"/>
</exec>
</target>
<target name="compile-testdaemon" depends="compile" description="Compile the testdaemon source">
<mkdir dir="${build}/java-testdaemon"/>
<javac debug="true"
debuglevel="lines,vars,source"
includeantruntime="false"
source="1.7"
target="1.7"
destdir="${build}/java-testdaemon">
<src path="${src}/testdaemon" />
<classpath path="${build}/java" />
</javac>
</target>
<target name="dist" depends="compile, compile_stdlib" description="Generate Oracle Java jar file">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/Python-${python-version}-Java-support.b${release}.jar"
basedir="${build}/java" />
<copy tofile="${dist}/python-java-support.jar"
file="${dist}/Python-${python-version}-Java-support.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-${python-version}-Java-testdaemon.b${release}.jar"
basedir="${build}/java-testdaemon" />
<copy tofile="${dist}/python-java-testdaemon.jar"
file="${dist}/Python-${python-version}-Java-testdaemon.b${release}.jar"
overwrite="true" />
</target>
<target name="clean" description="Clean up">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>