80 lines
3.6 KiB
XML
80 lines
3.6 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<project basedir="." default="all" name="socksoutproxy">
|
|
<property file="override.properties"/>
|
|
|
|
<target name="all" depends="clean,plugin" />
|
|
|
|
<target name="jar" >
|
|
<ant dir="src" target="build" />
|
|
</target>
|
|
|
|
<target name="plugin" depends="jar">
|
|
<delete>
|
|
<!-- in installer but not update -->
|
|
<fileset dir="plugin/" includes="socks.config" />
|
|
</delete>
|
|
<!-- get version number -->
|
|
<buildnumber file="scripts/build.number" />
|
|
<!-- change version in servlet when you change this -->
|
|
<property name="release.number" value="0.2" />
|
|
|
|
<!-- make the update xpi2p -->
|
|
<!-- this contains everything except i2ptunnel.config -->
|
|
<copy file="LICENSE.txt" todir="plugin/" overwrite="true" />
|
|
<copy file="README.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>
|
|
<copy file="src/build/socksoutproxy.jar" todir="plugin/lib" overwrite="true" />
|
|
<mkdir dir="plugin/console/webapps" />
|
|
<copy file="src/build/outproxy.war" todir="plugin/console/webapps/" overwrite="true" />
|
|
<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="socksoutproxy.su3" tofile="socksoutproxy-update.su3" overwrite="true" />
|
|
|
|
<!-- make the install xpi2p -->
|
|
<copy file="scripts/plugin.config" todir="plugin/" overwrite="true" />
|
|
<!-- Files in installer but not update. Be sure to Add to delete fileset above and clean target below -->
|
|
<copy file="scripts/socks.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/plugin.config" />
|
|
<delete file="plugin/socks.config" />
|
|
<delete file="plugin/lib/socksoutproxy.jar" />
|
|
<delete file="plugin/console/webapps/outproxy.war" />
|
|
<delete file="plugin/LICENSE.txt" />
|
|
<delete file="plugin/README.txt" />
|
|
<delete file="socksoutproxy.su3" />
|
|
<delete file="socksoutproxy.xpi2p" />
|
|
<delete file="socksoutproxy-update.su3" />
|
|
<delete file="plugin.zip" />
|
|
</target>
|
|
|
|
</project>
|