Developers guide

141
F.2.4. lib build.xml
<?xml version="1.0"?>
<!--
$Id: build.xml,v 1.4 2002/10/03 08:32:20 oliverm Exp $
Ant build file for the apt library files
This is a utility ant buildfile used to:
* sign all the jars (required by webstart)
* deploy the libs (jars & .so) to mcba5 and mistral
-->
<project name="lib" default="usage" basedir=".">
<!-- directories used by build -->
<property name="lib-dir" value="." />
<!-- directories created during build -->
<property name="dist-dir-name" value="signed-jars" />
<property name="dist-dir" value="${dist-dir-name}" />
<!-- filenames created -->
<!-- jarsigning parameters. jarsigning is required by webstart
Note that the apt module must be checked out to give us
access to the keystore
-->
<property name="keystore" value="../apt/.keystore"/>
<property name="keypass" value="aptdev" />
<property name="keystorepass" value="aptdev" />
<property name="keyalias" value="aptdev" />
<!-- NOTE these two properties are duplicated in apt/build.xml -->
<!-- directories used on mcba5 -->
<property name="mcba5-dist-base-dir" value="~apt/public_html/software/webstart" />
<!-- directories used on mistral -->
<property name="mistral-dist-base-dir" value="~apt/APTAutomation-MultiVer" />
<!-- NOTE these two properties are duplicated in apt/build.xml -->
<property name="scp.command" value="scp"/>
<property name="scp.mcba5.destination" value="apt@mcba5.phys.unsw.edu.au:${mcba5-dist-base-dir}" />
<property name="scp.mcba5.source" value="apt@mcba5.phys.unsw.edu.au:${mcba5-dist-base-dir}/${dist-
dir-name}"/>
<property name="scp.mistral.destination" value="apt@mistral.anu.edu.au:${mistral-dist-base-dir}/" />
<fileset id="all-lib-jars" dir="${lib-dir}">
<include name="*.jar"/>
</fileset>
<fileset id="linux-so-libs" dir="${lib-dir}">
<include name="*.so"/>
</fileset>
<target name="usage" >
<echo>
APT Library files
------------------------------------------------------
Available targets are:
init --> creates ${dist-dir} and copies .so files to it
clean --> removes the directory ${dist-dir}
sign-jars --> copies the jars to ${dist-dir}
and then signs them as ${keyalias}
upload --> Copies everything in ${dist-dir} to mcba5
upload-mistral --> Copies ${dist-dir} from mcba5 to mistral
Notes
-----