Skip to content

Commit

Permalink
Link TestDaemon into ant build config
Browse files Browse the repository at this point in the history
- Build it as part of the default `ant java`
- Package it into a jar file called Python-Java-testdaemon-{version}-
{release}.jar, symlinked from python-java-testdaemon.jar.
  • Loading branch information
cflee committed Mar 21, 2016
1 parent 42986ca commit 67f65c9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions build-java.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
</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}"/>

Expand All @@ -31,6 +42,17 @@
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"/>

<symlink
link="${dist}/python-java-testdaemon.jar"
resource="${dist}/Python-Java-testdaemon-${python-version}-b${release}.jar"
overwrite="true" />
</target>

<target name="clean" description="Clean up">
<delete dir="${build}"/>
<delete dir="${dist}"/>
Expand Down
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

<target name="java">
<ant antfile="build-java.xml" target="dist"/>
<ant antfile="build-java.xml" target="dist-testdaemon"/>
</target>

<target name="android">
Expand Down

0 comments on commit 67f65c9

Please sign in to comment.