Developers guide

142
SCP Setup
Note that to use scp, authenticed remote ssh
must be setup on mcba5 AND mistral. This is done by
the following two commands:
Your machine:
scp ~/.ssh/id_dsa.pub apt@mcba5.phys.unsw.edu.au:~/.ssh/temp-pub-key
User apt on mcba5:
cat ~/.ssh/temp-pub-key >> ~/.ssh/authorized_keys2
rm ~/.ssh/temp-pub-key
Versioning
To preseve the multi-versioning of these build files,
ANY new lib that is added must not overwrite an existing
lib. All other build + config files must be updated
manually to 'swap' over to the newer lib file of a
diff name.
The ant build.xml file in the 'lib' module can be used
to sign and deploy all the jars.
</echo>
</target>
<target name="init">
<tstamp/>
<mkdir dir="${dist-dir}"/>
<copy todir="${dist-dir}">
<fileset refid="linux-so-libs" />
</copy>
</target>
<target name="sign-jars" depends="init">
<!-- copy the jars -->
<copy todir="${dist-dir}">
<fileset refid="all-lib-jars" />
</copy>
<echo>
Signing the jarfiles as ${keyalias} using keystore ${keystore}
This must be the same keystore and alias used to
sign apt.jar and config.jar from the 'apt' module.
Webstart does not allow jars to be signed by different
users.
</echo>
<signjar alias="${keyalias}"
keypass="${keypass}"
storepass="${keystorepass}"
keystore="${keystore}" >
<fileset id="copied-lib-jars" dir="${dist-dir}">
<include name="**/*.jar"/>
</fileset>
</signjar>
</target>
<target name="upload">
<property name="scp-mcba5-args" value=" -C -r ${dist-dir} ${scp.mcba5.destination}" />
<echo>
Uploading ${dist-dir} to mcba5, please wait...
% ${scp.command} ${scp-mcba5-args}
</echo>
<exec executable="${scp.command}">