2010-03-21 15:08:07 +00:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2011-06-10 06:40:36 +00:00
|
|
|
<project basedir="." default="all" name="I2PControl">
|
2018-02-01 16:36:49 +00:00
|
|
|
|
|
|
|
<!-- Include property files so that values can be easily overridden.
|
|
|
|
Users should create an override.properties file to make changes.
|
|
|
|
-->
|
|
|
|
<property file="override.properties"/>
|
2010-03-21 15:08:07 +00:00
|
|
|
|
2016-01-18 17:12:15 +00:00
|
|
|
<target name="all" depends="clean,plugin,release" />
|
|
|
|
|
|
|
|
<target name="local" depends="clean,plugin">
|
2018-02-01 15:14:03 +00:00
|
|
|
<property name="i2p.plugindir" value="${user.home}/.i2p/plugins/I2PControl" />
|
|
|
|
<delete dir="${i2p.plugindir}"/>
|
|
|
|
<mkdir dir="${i2p.plugindir}"/>
|
|
|
|
<mkdir dir="${i2p.plugindir}/lib"/>
|
2016-01-18 17:12:15 +00:00
|
|
|
<copy file="src/build/I2PControl.jar" todir="${i2p.plugindir}/lib" overwrite="true" />
|
2018-02-01 15:14:03 +00:00
|
|
|
<copy todir="${i2p.plugindir}" >
|
2016-01-18 17:12:15 +00:00
|
|
|
<fileset dir="plugin" includes="**"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
2010-03-21 15:08:07 +00:00
|
|
|
|
2011-07-22 12:19:16 +00:00
|
|
|
<target name="jar">
|
2010-03-21 15:08:07 +00:00
|
|
|
<ant dir="src" target="build" />
|
|
|
|
</target>
|
|
|
|
|
2018-02-01 16:36:49 +00:00
|
|
|
<target name="war" depends="clean" >
|
|
|
|
<ant dir="src" target="war" />
|
|
|
|
<copy file="src/build/jsonrpc.war" todir="." />
|
|
|
|
</target>
|
|
|
|
|
2011-07-22 12:19:16 +00:00
|
|
|
<target name="plugin" depends="jar">
|
2010-03-21 15:08:07 +00:00
|
|
|
<!-- get version number -->
|
|
|
|
<buildnumber file="scripts/build.number" />
|
2018-02-07 13:47:01 +00:00
|
|
|
<!-- change in I2PControlVersion.java also! -->
|
|
|
|
<property name="release.number" value="0.12.0" />
|
2010-03-21 15:08:07 +00:00
|
|
|
|
|
|
|
<!-- make the update xpi2p -->
|
2018-02-01 15:14:03 +00:00
|
|
|
<mkdir dir="plugin/lib"/>
|
2010-03-21 15:08:07 +00:00
|
|
|
<copy file="scripts/plugin.config" todir="plugin/" overwrite="true" />
|
2016-01-20 17:26:56 +00:00
|
|
|
|
|
|
|
<exec executable="pack200" failonerror="true">
|
|
|
|
<arg value="--no-gzip"/>
|
|
|
|
<arg value="--effort=9"/>
|
|
|
|
<arg value="plugin/lib/I2PControl.jar.pack" />
|
|
|
|
<arg value="src/build/I2PControl.jar" />
|
|
|
|
</exec>
|
2011-07-22 12:19:16 +00:00
|
|
|
|
2010-03-21 15:08:07 +00:00
|
|
|
<exec executable="echo" osfamily="unix" failonerror="true" output="plugin/plugin.config" append="true">
|
|
|
|
<arg value="update-only=true" />
|
|
|
|
</exec>
|
2011-07-22 12:19:16 +00:00
|
|
|
|
2010-03-21 15:08:07 +00:00
|
|
|
<exec executable="echo" osfamily="unix" failonerror="true" output="plugin/plugin.config" append="true">
|
|
|
|
<arg value="version=${release.number}-b${build.number}" />
|
|
|
|
</exec>
|
2011-07-22 12:19:16 +00:00
|
|
|
|
2015-07-31 00:41:02 +00:00
|
|
|
<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" >
|
2010-03-21 15:08:07 +00:00
|
|
|
<arg value="plugin" />
|
|
|
|
</exec>
|
2015-07-31 00:41:02 +00:00
|
|
|
|
2011-06-10 06:40:36 +00:00
|
|
|
<move file="I2PControl.xpi2p" tofile="I2PControl-update.xpi2p" overwrite="true" />
|
2015-07-31 00:41:02 +00:00
|
|
|
<move file="I2PControl.su3" tofile="I2PControl-update.su3" overwrite="true" />
|
2010-03-21 15:08:07 +00:00
|
|
|
|
2018-02-02 14:00:31 +00:00
|
|
|
<!-- make the install xpi2p -->
|
|
|
|
<copy file="LICENSE.txt" todir="plugin/" overwrite="true" />
|
2018-02-02 14:48:14 +00:00
|
|
|
<copy file="LICENSE-jBCrypt.txt" todir="plugin/" overwrite="true" />
|
2018-02-02 14:00:31 +00:00
|
|
|
<copy file="README.txt" todir="plugin/" overwrite="true" />
|
|
|
|
<copy file="scripts/clients.config" todir="plugin/" overwrite="true" />
|
|
|
|
<copy file="scripts/plugin.config" todir="plugin/" overwrite="true" />
|
|
|
|
<copy file="scripts/i2pcontrol.py" 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>
|
2015-07-31 00:41:02 +00:00
|
|
|
<exec executable="scripts/makeplugin.sh" inputstring="${release.password.su3}" failonerror="true" >
|
2010-03-21 15:08:07 +00:00
|
|
|
<arg value="plugin" />
|
|
|
|
</exec>
|
|
|
|
</target>
|
2018-02-02 14:00:31 +00:00
|
|
|
|
|
|
|
<target name="release" depends="plugin" />
|
2010-03-21 15:08:07 +00:00
|
|
|
|
|
|
|
<target name="distclean" depends="clean" />
|
2016-01-20 18:04:18 +00:00
|
|
|
|
|
|
|
<target name="format">
|
|
|
|
<exec executable="scripts/format.sh" failonerror="true" />
|
|
|
|
</target>
|
2010-03-21 15:08:07 +00:00
|
|
|
|
|
|
|
<target name="clean" >
|
|
|
|
<ant dir="src" target="clean" />
|
2011-06-13 13:18:19 +00:00
|
|
|
<delete file="plugin/clients.config" />
|
2010-03-21 15:08:07 +00:00
|
|
|
<delete file="plugin/plugin.config" />
|
2018-02-01 15:14:03 +00:00
|
|
|
<delete file="plugin/console/webapp.config" />
|
2011-06-10 06:40:36 +00:00
|
|
|
<delete file="plugin/lib/I2PControl.jar.pack" />
|
2011-06-13 13:18:19 +00:00
|
|
|
<delete file="plugin/console/webapps/I2PControl.war.pack" />
|
2010-03-21 15:08:07 +00:00
|
|
|
<delete file="plugin/LICENSE.txt" />
|
2018-02-02 14:48:14 +00:00
|
|
|
<delete file="plugin/LICENSE-jBCrypt.txt" />
|
2010-03-21 15:08:07 +00:00
|
|
|
<delete file="plugin/README.txt" />
|
2018-02-02 14:00:31 +00:00
|
|
|
<delete file="plugin/i2pcontrol.py" />
|
2011-06-10 06:40:36 +00:00
|
|
|
<delete file="I2PControl.xpi2p" />
|
|
|
|
<delete file="I2PControl-update.xpi2p" />
|
2015-07-31 00:41:02 +00:00
|
|
|
<delete file="I2PControl.su3" />
|
|
|
|
<delete file="I2PControl-update.su3" />
|
2018-02-01 16:36:49 +00:00
|
|
|
<delete file="jsonrpc.war" />
|
2010-03-21 15:08:07 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|