95 lines
4.1 KiB
XML
95 lines
4.1 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<project basedir="." default="all" name="orchid">
|
|
<property file="override.properties"/>
|
|
|
|
<target name="all" depends="clean,plugin" />
|
|
|
|
<target name="war" >
|
|
<ant dir="src" target="build" />
|
|
</target>
|
|
|
|
<target name="plugin" depends="war">
|
|
<!-- get version number -->
|
|
<buildnumber file="scripts/build.number" />
|
|
<property name="release.number" value="1.2.2-0.6" />
|
|
|
|
<!-- add the GeoIP.dat file & README.txt -->
|
|
<copy file="geoip/GeoIP.dat" todir="plugin/geoip/" overwrite="true" />
|
|
<copy file="geoip/README.txt" todir="plugin/geoip/" overwrite="true" />
|
|
|
|
<!-- add info about maxmind license -->
|
|
<copy file="geoip/license.txt" tofile="plugin/licenses/LICENSE-GeoIP.txt" overwrite="true" />
|
|
|
|
<!-- make the update xpi2p -->
|
|
<copy file="LICENSE.txt" todir="plugin/" overwrite="true" />
|
|
<copy file="README.txt" todir="plugin/" overwrite="true" />
|
|
<copy file="CHANGES.txt" todir="plugin/" overwrite="true" />
|
|
<copy file="scripts/plugin.config" todir="plugin/" overwrite="true" />
|
|
<exec executable="echo" osfamily="unix" failonerror="true" output="plugin/plugin.config" append="true">
|
|
<arg value="update-only=true" />
|
|
</exec>
|
|
<exec executable="echo" osfamily="unix" failonerror="true" output="plugin/plugin.config" append="true">
|
|
<arg value="version=${release.number}-b${build.number}" />
|
|
</exec>
|
|
<exec executable="pack200" failonerror="true">
|
|
<arg value="-g" />
|
|
<arg value="plugin/lib/orchid.jar.pack" />
|
|
<arg value="src/build/orchid.jar" />
|
|
</exec>
|
|
<exec executable="pack200" failonerror="true">
|
|
<arg value="-g" />
|
|
<arg value="plugin/console/webapps/orchid.war.pack" />
|
|
<arg value="src/build/orchid.war.jar" />
|
|
</exec>
|
|
<input message="Enter su3 signing key password:" addproperty="release.password.su3" />
|
|
<fail message="You must enter a password." >
|
|
<condition>
|
|
<equals arg1="${release.password.su3}" arg2=""/>
|
|
</condition>
|
|
</fail>
|
|
<!-- this will fail if no su3 keys exist, as it needs the password twice -->
|
|
<exec executable="scripts/makeplugin.sh" inputstring="${release.password.su3}" failonerror="true" >
|
|
<arg value="plugin" />
|
|
</exec>
|
|
<move file="orchid.xpi2p" tofile="orchid-update.xpi2p" overwrite="true" />
|
|
<move file="orchid.su3" tofile="orchid-update.su3" overwrite="true" />
|
|
|
|
<!-- make the install xpi2p -->
|
|
<copy file="scripts/orchid.config" todir="plugin/" overwrite="true" />
|
|
<copy file="scripts/plugin.config" todir="plugin/" overwrite="true" />
|
|
<exec executable="echo" osfamily="unix" failonerror="true" output="plugin/plugin.config" append="true">
|
|
<arg value="version=${release.number}-b${build.number}" />
|
|
</exec>
|
|
<exec executable="scripts/makeplugin.sh" inputstring="${release.password.su3}" failonerror="true" >
|
|
<arg value="plugin" />
|
|
</exec>
|
|
</target>
|
|
|
|
<target name="distclean" depends="clean" />
|
|
|
|
<target name="clean" >
|
|
<ant dir="src" target="clean" />
|
|
<defaultexcludes remove="**/*~"/>
|
|
<delete>
|
|
<fileset dir="." includes="*/*.~ **/*.*~ *.*~" />
|
|
</delete>
|
|
|
|
<delete file="plugin/i2ptunnel.config" />
|
|
<delete file="plugin/orchid.config" />
|
|
<delete file="plugin/plugin.config" />
|
|
<delete file="plugin/lib/orchid.jar.pack" />
|
|
<!-- following two removed in 0.5 -->
|
|
<delete file="plugin/lib/xmlrpc-common.jar.pack" />
|
|
<delete file="plugin/lib/xmlrpc-client.jar.pack" />
|
|
<delete file="plugin/console/webapps/orchid.war.pack" />
|
|
<delete file="plugin/LICENSE.txt" />
|
|
<delete file="plugin/README.txt" />
|
|
<delete file="plugin/CHANGES.txt" />
|
|
<delete file="orchid.xpi2p" />
|
|
<delete file="orchid-update.xpi2p" />
|
|
<delete file="orchid.su3" />
|
|
<delete file="orchid-update.su3" />
|
|
</target>
|
|
|
|
</project>
|