2004-04-08 04:41:54 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project basedir="." default="all" name="i2ptunnel">
|
|
|
|
<target name="all" depends="clean, build" />
|
2010-07-03 13:39:25 +00:00
|
|
|
<target name="build" depends="builddep, jar, war" />
|
2004-04-08 04:41:54 +00:00
|
|
|
<target name="builddep">
|
2010-11-28 03:56:56 +00:00
|
|
|
<!-- run from top level build.xml to get dependencies built -->
|
2004-04-08 04:41:54 +00:00
|
|
|
</target>
|
2008-11-14 14:48:08 +00:00
|
|
|
<condition property="depend.available">
|
|
|
|
<typefound name="depend" />
|
|
|
|
</condition>
|
|
|
|
<target name="depend" if="depend.available">
|
2008-11-12 17:08:09 +00:00
|
|
|
<depend
|
|
|
|
cache="../../../build"
|
|
|
|
srcdir="./src"
|
|
|
|
destdir="./build/obj" >
|
|
|
|
<!-- Depend on classes instead of jars where available -->
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="../../../core/java/build/obj" />
|
2016-04-29 19:15:41 +00:00
|
|
|
<pathelement location="../../../core/java/build/gnu-getopt.jar" />
|
2008-11-12 17:08:09 +00:00
|
|
|
<pathelement location="../../ministreaming/java/build/obj" />
|
|
|
|
</classpath>
|
|
|
|
</depend>
|
|
|
|
</target>
|
2011-06-13 14:31:41 +00:00
|
|
|
|
2013-01-10 16:51:06 +00:00
|
|
|
<condition property="no.bundle">
|
|
|
|
<isfalse value="${require.gettext}" />
|
|
|
|
</condition>
|
2014-02-21 13:59:27 +00:00
|
|
|
|
2014-06-27 13:57:43 +00:00
|
|
|
<!-- only used if not set by a higher build.xml -->
|
2009-04-26 15:54:51 +00:00
|
|
|
<property name="javac.compilerargs" value="" />
|
2016-10-26 16:56:13 +00:00
|
|
|
<property name="javac.version" value="1.7" />
|
2011-06-13 14:31:41 +00:00
|
|
|
<property name="require.gettext" value="true" />
|
2018-10-10 12:30:34 +00:00
|
|
|
<property name="manifest.classpath.name" value="Class-Path" />
|
2011-06-13 14:31:41 +00:00
|
|
|
|
2018-04-14 18:54:17 +00:00
|
|
|
<!-- Compile includes ui/ classes but not web/ classes here -->
|
2008-11-12 17:08:09 +00:00
|
|
|
<target name="compile" depends="depend">
|
2004-04-08 04:41:54 +00:00
|
|
|
<mkdir dir="./build" />
|
|
|
|
<mkdir dir="./build/obj" />
|
|
|
|
<javac
|
|
|
|
srcdir="./src"
|
2018-04-14 18:54:17 +00:00
|
|
|
excludes="net/i2p/i2ptunnel/web/**/*"
|
2014-06-27 13:57:43 +00:00
|
|
|
debug="true" deprecation="on" source="${javac.version}" target="${javac.version}"
|
2004-04-08 04:41:54 +00:00
|
|
|
destdir="./build/obj"
|
2011-02-17 12:47:35 +00:00
|
|
|
includeAntRuntime="false"
|
2016-04-29 19:15:41 +00:00
|
|
|
classpath="../../../core/java/build/i2p.jar:../../../core/java/build/gnu-getopt.jar:../../ministreaming/java/build/mstreaming.jar" >
|
2009-04-26 15:54:51 +00:00
|
|
|
<compilerarg line="${javac.compilerargs}" />
|
|
|
|
</javac>
|
2004-04-08 04:41:54 +00:00
|
|
|
</target>
|
2010-07-03 13:39:25 +00:00
|
|
|
|
2018-04-14 18:54:17 +00:00
|
|
|
<!-- Compile web/ classes only here. Not for Android. -->
|
|
|
|
<target name="compileWeb" depends="jar">
|
|
|
|
<mkdir dir="./build" />
|
|
|
|
<mkdir dir="./build/obj" />
|
|
|
|
<javac
|
|
|
|
srcdir="./src"
|
|
|
|
includes="net/i2p/i2ptunnel/web/**/*"
|
|
|
|
debug="true" deprecation="on" source="${javac.version}" target="${javac.version}"
|
|
|
|
destdir="./build/obj"
|
|
|
|
includeAntRuntime="false"
|
2018-04-28 22:07:14 +00:00
|
|
|
classpath="../../../core/java/build/i2p.jar:build/i2ptunnel.jar:../../jetty/jettylib/jetty-i2p.jar:../../jetty/jettylib/jetty-util.jar:../../jetty/jettylib/jetty-xml.jar" >
|
2018-04-14 18:54:17 +00:00
|
|
|
<compilerarg line="${javac.compilerargs}" />
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
2011-06-08 20:15:53 +00:00
|
|
|
<target name="listChangedFiles" depends="jarUpToDate" if="shouldListChanges" >
|
2011-02-17 12:47:35 +00:00
|
|
|
<exec executable="mtn" outputproperty="workspace.changes.j" errorproperty="mtn.error2" failifexecutionfails="false" >
|
|
|
|
<arg value="list" />
|
|
|
|
<arg value="changed" />
|
|
|
|
<arg value="." />
|
|
|
|
</exec>
|
|
|
|
<!-- \n in an attribute value generates an invalid manifest -->
|
|
|
|
<exec executable="tr" inputstring="${workspace.changes.j}" outputproperty="workspace.changes.j.tr" errorproperty="mtn.error2" failifexecutionfails="false" >
|
|
|
|
<arg value="-s" />
|
|
|
|
<arg value="[:space:]" />
|
|
|
|
<arg value="," />
|
|
|
|
</exec>
|
2011-06-08 20:15:53 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
|
2012-01-04 15:22:01 +00:00
|
|
|
<!-- The web classes are now in the war not the jar - they are not part of the API -->
|
2013-07-13 19:58:11 +00:00
|
|
|
<target name="jar" depends="builddep, compile, bundle-proxy, jarUpToDate, listChangedFiles" unless="jar.uptodate" >
|
2011-06-08 20:15:53 +00:00
|
|
|
<!-- set if unset -->
|
|
|
|
<property name="workspace.changes.j.tr" value="" />
|
2018-04-14 18:54:17 +00:00
|
|
|
<jar destfile="./build/i2ptunnel.jar" basedir="./build/obj" includes="**/*.class" excludes="**/ui/*.class **/web/*.class" >
|
2004-04-08 04:41:54 +00:00
|
|
|
<manifest>
|
|
|
|
<attribute name="Main-Class" value="net.i2p.i2ptunnel.I2PTunnel" />
|
2018-10-10 12:30:34 +00:00
|
|
|
<attribute name="${manifest.classpath.name}" value="i2p.jar mstreaming.jar" />
|
2012-01-15 16:36:17 +00:00
|
|
|
<attribute name="Implementation-Version" value="${full.version}" />
|
2012-03-01 16:04:17 +00:00
|
|
|
<attribute name="Built-By" value="${build.built-by}" />
|
2011-02-17 12:47:35 +00:00
|
|
|
<attribute name="Build-Date" value="${build.timestamp}" />
|
|
|
|
<attribute name="Base-Revision" value="${workspace.version}" />
|
|
|
|
<attribute name="Workspace-Changes" value="${workspace.changes.j.tr}" />
|
2016-11-17 15:14:50 +00:00
|
|
|
<attribute name="X-Compile-Source-JDK" value="${javac.version}" />
|
|
|
|
<attribute name="X-Compile-Target-JDK" value="${javac.version}" />
|
2004-04-08 04:41:54 +00:00
|
|
|
</manifest>
|
|
|
|
</jar>
|
2018-04-14 18:54:17 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- web/ and ui/ classes that will go in the war. Not for Android. -->
|
|
|
|
<target name="jarTempBeans" depends="builddep, compileWeb" >
|
|
|
|
<jar destfile="./build/temp-beans.jar" basedir="./build/obj" includes="**/ui/*.class **/web/*.class" />
|
2004-08-03 08:21:29 +00:00
|
|
|
</target>
|
2009-12-10 01:06:55 +00:00
|
|
|
|
2011-02-17 12:47:35 +00:00
|
|
|
<target name="jarUpToDate">
|
|
|
|
<uptodate property="jar.uptodate" targetfile="build/i2ptunnel.jar" >
|
|
|
|
<srcfiles dir= "build/obj" includes="**/*.class" />
|
|
|
|
</uptodate>
|
2011-06-08 20:15:53 +00:00
|
|
|
<condition property="shouldListChanges" >
|
|
|
|
<and>
|
|
|
|
<not>
|
|
|
|
<isset property="jar.uptodate" />
|
|
|
|
</not>
|
|
|
|
<isset property="mtn.available" />
|
|
|
|
</and>
|
|
|
|
</condition>
|
2011-02-17 12:47:35 +00:00
|
|
|
</target>
|
|
|
|
|
2018-04-14 18:54:17 +00:00
|
|
|
<!-- Separate jar for general UI classes (but not web) -->
|
|
|
|
<!-- This is for Android only -->
|
2015-03-11 03:58:24 +00:00
|
|
|
<target name="uiJar" depends="jar, uiJarUpToDate, listChangedFiles" unless="uiJar.uptodate" >
|
|
|
|
<!-- set if unset -->
|
|
|
|
<property name="workspace.changes.j.tr" value="" />
|
|
|
|
<jar destfile="./build/i2ptunnel-ui.jar" basedir="./build/obj" includes="**/ui/*.class" >
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Class-Path" value="i2p.jar mstreaming.jar i2ptunnel.jar" />
|
|
|
|
<attribute name="Implementation-Version" value="${full.version}" />
|
|
|
|
<attribute name="Built-By" value="${build.built-by}" />
|
|
|
|
<attribute name="Build-Date" value="${build.timestamp}" />
|
|
|
|
<attribute name="Base-Revision" value="${workspace.version}" />
|
|
|
|
<attribute name="Workspace-Changes" value="${workspace.changes.j.tr}" />
|
2016-11-17 15:14:50 +00:00
|
|
|
<attribute name="X-Compile-Source-JDK" value="${javac.version}" />
|
|
|
|
<attribute name="X-Compile-Target-JDK" value="${javac.version}" />
|
2015-03-11 03:58:24 +00:00
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="uiJarUpToDate">
|
|
|
|
<uptodate property="uiJar.uptodate" targetfile="build/i2ptunnel-ui.jar" >
|
|
|
|
<srcfiles dir= "build/obj" includes="**/ui/*.class" />
|
|
|
|
</uptodate>
|
|
|
|
<condition property="shouldListChanges" >
|
|
|
|
<and>
|
|
|
|
<not>
|
|
|
|
<isset property="uiJar.uptodate" />
|
|
|
|
</not>
|
|
|
|
<isset property="mtn.available" />
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
</target>
|
|
|
|
|
2013-07-13 19:58:11 +00:00
|
|
|
<!-- servlet translations go in the war, not the jar -->
|
2013-01-10 16:51:06 +00:00
|
|
|
<target name="bundle" depends="compile, precompilejsp" unless="no.bundle">
|
2016-05-07 12:57:49 +00:00
|
|
|
<mkdir dir="build/messages-src" />
|
2009-12-10 01:06:55 +00:00
|
|
|
<!-- Update the messages_*.po files.
|
|
|
|
We need to supply the bat file for windows, and then change the fail property to true -->
|
2011-06-13 14:31:41 +00:00
|
|
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="${require.gettext}" >
|
2013-09-20 01:21:43 +00:00
|
|
|
<env key="JAVA_HOME" value="${java.home}" />
|
2009-12-10 01:06:55 +00:00
|
|
|
<arg value="./bundle-messages.sh" />
|
|
|
|
</exec>
|
2011-06-13 14:31:41 +00:00
|
|
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="${require.gettext}" >
|
2009-12-10 01:06:55 +00:00
|
|
|
<arg value="./bundle-messages.sh" />
|
|
|
|
</exec>
|
2011-02-25 16:01:30 +00:00
|
|
|
<!-- multi-lang is optional -->
|
|
|
|
<exec executable="sh" osfamily="windows" failifexecutionfails="false" >
|
2011-02-12 11:30:21 +00:00
|
|
|
<arg value="./bundle-messages.sh" />
|
2009-12-10 01:06:55 +00:00
|
|
|
</exec>
|
2016-05-01 20:19:56 +00:00
|
|
|
<javac source="${javac.version}" target="${javac.version}"
|
|
|
|
includeAntRuntime="false"
|
|
|
|
srcdir="build/messages-src" destdir="../jsp/WEB-INF/classes">
|
|
|
|
<compilerarg line="${javac.compilerargs}" />
|
|
|
|
</javac>
|
2009-12-10 01:06:55 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="poupdate" depends="compile, precompilejsp">
|
|
|
|
<!-- Update the messages_*.po files. -->
|
2018-01-18 10:18:11 +00:00
|
|
|
<!-- set if unset -->
|
|
|
|
<property name="lg2" value="" />
|
2011-06-13 14:31:41 +00:00
|
|
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
|
2018-01-18 10:18:11 +00:00
|
|
|
<env key="LG2" value="${lg2}" />
|
2009-12-10 01:06:55 +00:00
|
|
|
<arg value="./bundle-messages.sh" />
|
|
|
|
<arg value="-p" />
|
|
|
|
</exec>
|
2011-06-13 14:31:41 +00:00
|
|
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
|
2018-01-18 10:18:11 +00:00
|
|
|
<env key="LG2" value="${lg2}" />
|
2009-12-10 01:06:55 +00:00
|
|
|
<arg value="./bundle-messages.sh" />
|
|
|
|
<arg value="-p" />
|
|
|
|
</exec>
|
2011-06-13 14:31:41 +00:00
|
|
|
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
|
2018-01-18 10:18:11 +00:00
|
|
|
<env key="LG2" value="${lg2}" />
|
2011-02-12 11:30:21 +00:00
|
|
|
<arg value="./bundle-messages.sh" />
|
2009-12-10 01:06:55 +00:00
|
|
|
<arg value="-p" />
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
2013-07-13 19:58:11 +00:00
|
|
|
<!-- proxy error page translations go in the jar, not the war -->
|
|
|
|
<target name="bundle-proxy" unless="no.bundle">
|
2016-05-07 12:57:49 +00:00
|
|
|
<mkdir dir="build/messages-proxy-src" />
|
2013-07-13 19:58:11 +00:00
|
|
|
<!-- Update the messages_*.po files.
|
|
|
|
We need to supply the bat file for windows, and then change the fail property to true -->
|
|
|
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="${require.gettext}" >
|
2013-09-20 10:44:56 +00:00
|
|
|
<env key="JAVA_HOME" value="${java.home}" />
|
2013-07-13 19:58:11 +00:00
|
|
|
<arg value="./bundle-messages-proxy.sh" />
|
|
|
|
</exec>
|
|
|
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="${require.gettext}" >
|
|
|
|
<arg value="./bundle-messages-proxy.sh" />
|
|
|
|
</exec>
|
|
|
|
<!-- multi-lang is optional -->
|
|
|
|
<exec executable="sh" osfamily="windows" failifexecutionfails="false" >
|
|
|
|
<arg value="./bundle-messages-proxy.sh" />
|
|
|
|
</exec>
|
2016-05-01 20:19:56 +00:00
|
|
|
<javac source="${javac.version}" target="${javac.version}"
|
|
|
|
includeAntRuntime="false"
|
|
|
|
srcdir="build/messages-proxy-src" destdir="build/obj">
|
|
|
|
<compilerarg line="${javac.compilerargs}" />
|
|
|
|
</javac>
|
2013-07-13 19:58:11 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="extractProxyTags">
|
|
|
|
<java classname="net.i2p.util.TranslateReader" fork="true" failonerror="true">
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="../../../build/i2p.jar" />
|
|
|
|
</classpath>
|
|
|
|
<arg value="tag" />
|
|
|
|
<arg value="../../../installer/resources/proxy/" />
|
|
|
|
<arg value="build/Proxy.java" />
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="poupdate-proxy" depends="extractProxyTags">
|
|
|
|
<!-- Update the messages_*.po files. -->
|
2018-01-18 10:18:11 +00:00
|
|
|
<!-- set if unset -->
|
|
|
|
<property name="lg2" value="" />
|
2013-07-13 19:58:11 +00:00
|
|
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
|
2018-01-18 10:18:11 +00:00
|
|
|
<env key="LG2" value="${lg2}" />
|
2013-07-13 19:58:11 +00:00
|
|
|
<arg value="./bundle-messages-proxy.sh" />
|
|
|
|
<arg value="-p" />
|
|
|
|
</exec>
|
|
|
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
|
2018-01-18 10:18:11 +00:00
|
|
|
<env key="LG2" value="${lg2}" />
|
2013-07-13 19:58:11 +00:00
|
|
|
<arg value="./bundle-messages-proxy.sh" />
|
|
|
|
<arg value="-p" />
|
|
|
|
</exec>
|
|
|
|
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
|
2018-01-18 10:18:11 +00:00
|
|
|
<env key="LG2" value="${lg2}" />
|
2013-07-13 19:58:11 +00:00
|
|
|
<arg value="./bundle-messages-proxy.sh" />
|
|
|
|
<arg value="-p" />
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
2011-06-08 20:15:53 +00:00
|
|
|
<target name="listChangedFiles2" depends="warUpToDate" if="shouldListChanges2" >
|
2011-02-17 12:47:35 +00:00
|
|
|
<exec executable="mtn" outputproperty="workspace.changes.w" errorproperty="mtn.error2" failifexecutionfails="false" >
|
|
|
|
<arg value="list" />
|
|
|
|
<arg value="changed" />
|
|
|
|
<arg value="../jsp" />
|
|
|
|
</exec>
|
|
|
|
<!-- \n in an attribute value generates an invalid manifest -->
|
|
|
|
<exec executable="tr" inputstring="${workspace.changes.w}" outputproperty="workspace.changes.w.tr" errorproperty="mtn.error2" failifexecutionfails="false" >
|
|
|
|
<arg value="-s" />
|
|
|
|
<arg value="[:space:]" />
|
|
|
|
<arg value="," />
|
|
|
|
</exec>
|
2011-06-08 20:15:53 +00:00
|
|
|
</target>
|
|
|
|
|
2012-01-04 15:22:01 +00:00
|
|
|
<!-- The web classes are now in the war not the jar - they are not part of the API -->
|
2018-04-14 18:54:17 +00:00
|
|
|
<target name="war" depends="compileWeb, precompilejsp, bundle, warUpToDate, listChangedFiles2" unless="war.uptodate" >
|
2011-06-08 20:15:53 +00:00
|
|
|
<!-- set if unset -->
|
|
|
|
<property name="workspace.changes.w.tr" value="" />
|
2015-03-13 14:14:49 +00:00
|
|
|
<copy todir="../jsp/WEB-INF/classes/net/i2p/i2ptunnel/ui">
|
2015-03-11 03:58:24 +00:00
|
|
|
<fileset dir="build/obj/net/i2p/i2ptunnel/ui" />
|
|
|
|
</copy>
|
2018-04-14 18:54:17 +00:00
|
|
|
<copy todir="../jsp/WEB-INF/classes/net/i2p/i2ptunnel/web">
|
|
|
|
<fileset dir="build/obj/net/i2p/i2ptunnel/web" />
|
|
|
|
</copy>
|
2004-08-05 02:24:00 +00:00
|
|
|
<war destfile="build/i2ptunnel.war" webxml="../jsp/web-out.xml"
|
2018-01-17 16:51:55 +00:00
|
|
|
basedir="../jsp/" excludes="web.xml, web-fragment.xml, web-out.xml, **/*.java, *.jsp, *.jsi">
|
2011-02-17 12:47:35 +00:00
|
|
|
<manifest>
|
2012-01-15 16:36:17 +00:00
|
|
|
<attribute name="Implementation-Version" value="${full.version}" />
|
2012-03-01 16:04:17 +00:00
|
|
|
<attribute name="Built-By" value="${build.built-by}" />
|
2011-02-17 12:47:35 +00:00
|
|
|
<attribute name="Build-Date" value="${build.timestamp}" />
|
|
|
|
<attribute name="Base-Revision" value="${workspace.version}" />
|
|
|
|
<attribute name="Workspace-Changes" value="${workspace.changes.w.tr}" />
|
2016-11-17 15:14:50 +00:00
|
|
|
<attribute name="X-Compile-Source-JDK" value="${javac.version}" />
|
|
|
|
<attribute name="X-Compile-Target-JDK" value="${javac.version}" />
|
2011-02-17 12:47:35 +00:00
|
|
|
</manifest>
|
2004-08-03 08:21:29 +00:00
|
|
|
</war>
|
2004-04-08 04:41:54 +00:00
|
|
|
</target>
|
2009-12-10 01:06:55 +00:00
|
|
|
|
2011-02-17 12:47:35 +00:00
|
|
|
<target name="warUpToDate">
|
|
|
|
<uptodate property="war.uptodate" targetfile="build/i2ptunnel.war" >
|
2018-01-17 16:51:55 +00:00
|
|
|
<srcfiles dir= "../jsp" excludes="web.xml, web-fragment.xml, **/*.java, *.jsp, *.jsi" />
|
2016-02-27 16:17:25 +00:00
|
|
|
<srcfiles dir= "build/obj" includes="**/ui/*.class **/web/*.class" />
|
2011-02-17 12:47:35 +00:00
|
|
|
</uptodate>
|
2011-06-08 20:15:53 +00:00
|
|
|
<condition property="shouldListChanges2" >
|
|
|
|
<and>
|
|
|
|
<not>
|
|
|
|
<isset property="war.uptodate" />
|
|
|
|
</not>
|
|
|
|
<isset property="mtn.available" />
|
|
|
|
</and>
|
|
|
|
</condition>
|
2011-02-17 12:47:35 +00:00
|
|
|
</target>
|
|
|
|
|
2018-04-14 18:54:17 +00:00
|
|
|
<target name="precompilejsp" depends="jarTempBeans" unless="precompilejsp.uptodate">
|
2005-02-18 16:56:46 +00:00
|
|
|
<delete dir="../jsp/WEB-INF/" />
|
|
|
|
<delete file="../jsp/web-fragment.xml" />
|
|
|
|
<delete file="../jsp/web-out.xml" />
|
2004-08-05 02:24:00 +00:00
|
|
|
<mkdir dir="../jsp/WEB-INF/" />
|
|
|
|
<mkdir dir="../jsp/WEB-INF/classes" />
|
2018-09-16 11:29:03 +00:00
|
|
|
<!-- See apps/routerconsole/java/build.xml for important JspC build documentation -->
|
|
|
|
<java classname="net.i2p.servlet.util.JspC" fork="true" failonerror="true">
|
2018-09-24 15:52:42 +00:00
|
|
|
<!-- these are to detect tomcat version and reproducible build setting -->
|
|
|
|
<jvmarg value="-Dbuild.reproducible=${build.reproducible}" />
|
|
|
|
<jvmarg value="-Dwith-libtomcat8-java=${with-libtomcat8-java}" />
|
2019-01-24 14:15:04 +00:00
|
|
|
<jvmarg value="-Dwith-libtomcat9-java=${with-libtomcat9-java}" />
|
2018-09-24 15:52:42 +00:00
|
|
|
<jvmarg value="-Djasper.jar=../../jetty/jettylib/jasper-runtime.jar" />
|
2004-08-05 02:24:00 +00:00
|
|
|
<classpath>
|
|
|
|
<pathelement location="../../jetty/jettylib/jasper-runtime.jar" />
|
|
|
|
<pathelement location="../../jetty/jettylib/javax.servlet.jar" />
|
2017-03-03 15:48:10 +00:00
|
|
|
|
|
|
|
<!-- following jars only present for debian builds -->
|
2018-05-30 12:52:30 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/commons-logging.jar" />
|
2016-04-01 18:19:06 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/jsp-api.jar" />
|
2016-04-07 14:38:30 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/tomcat-api.jar" />
|
2017-03-03 15:48:10 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/tomcat-util.jar" />
|
|
|
|
<pathelement location="../../jetty/jettylib/tomcat-util-scan.jar" />
|
|
|
|
|
2016-04-07 14:38:30 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/jasper-el.jar" />
|
2005-02-16 jrandom
* (Merged the 0.5-pre branch back into CVS HEAD)
* Replaced the old tunnel routing crypto with the one specified in
router/doc/tunnel-alt.html, including updates to the web console to view
and tweak it.
* Provide the means for routers to reject tunnel requests with a wider
range of responses:
probabalistic rejection, due to approaching overload
transient rejection, due to temporary overload
bandwidth rejection, due to persistent bandwidth overload
critical rejection, due to general router fault (or imminent shutdown)
The different responses are factored into the profiles accordingly.
* Replaced the old I2CP tunnel related options (tunnels.depthInbound, etc)
with a series of new properties, relevent to the new tunnel routing code:
inbound.nickname (used on the console)
inbound.quantity (# of tunnels to use in any leaseSets)
inbound.backupQuantity (# of tunnels to keep in the ready)
inbound.length (# of remote peers in the tunnel)
inbound.lengthVariance (if > 0, permute the length by adding a random #
up to the variance. if < 0, permute the length
by adding or subtracting a random # up to the
variance)
outbound.* (same as the inbound, except for the, uh, outbound tunnels
in that client's pool)
There are other options, and more will be added later, but the above are
the most relevent ones.
* Replaced Jetty 4.2.21 with Jetty 5.1.2
* Compress all profile data on disk.
* Adjust the reseeding functionality to work even when the JVM's http proxy
is set.
* Enable a poor-man's interactive-flow in the streaming lib by choking the
max window size.
* Reduced the default streaming lib max message size to 16KB (though still
configurable by the user), also doubling the default maximum window
size.
* Replaced the RouterIdentity in a Lease with its SHA256 hash.
* Reduced the overall I2NP message checksum from a full 32 byte SHA256 to
the first byte of the SHA256.
* Added a new "netId" flag to let routers drop references to other routers
who we won't be able to talk to.
* Extended the timestamper to get a second (or third) opinion whenever it
wants to actually adjust the clock offset.
* Replaced that kludge of a timestamp I2NP message with a full blown
DateMessage.
* Substantial memory optimizations within the router and the SDK to reduce
GC churn. Client apps and the streaming libs have not been tuned,
however.
* More bugfixes thank you can shake a stick at.
2005-02-13 jrandom
* Updated jbigi source to handle 64bit CPUs. The bundled jbigi.jar still
only contains 32bit versions, so build your own, placing libjbigi.so in
your install dir if necessary. (thanks mule!)
* Added support for libjbigi-$os-athlon64 to NativeBigInteger and CPUID
(thanks spaetz!)
2005-02-16 22:23:47 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/commons-el.jar" />
|
2018-10-10 12:30:34 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/jetty-xml.jar" />
|
2017-03-03 15:48:10 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/jetty-util.jar" />
|
2012-01-23 16:44:08 +00:00
|
|
|
<pathelement location="${ant.home}/lib/ant.jar" />
|
2004-08-05 02:24:00 +00:00
|
|
|
<pathelement location="build/i2ptunnel.jar" />
|
2012-01-04 15:22:01 +00:00
|
|
|
<pathelement location="build/temp-beans.jar" />
|
2012-11-02 15:59:51 +00:00
|
|
|
<pathelement location="../../../core/java/build/i2p.jar" />
|
2016-04-24 21:03:10 +00:00
|
|
|
<!-- required for multipart form handling in register.jsp -->
|
|
|
|
<pathelement location="../../jetty/jettylib/jetty-i2p.jar" />
|
2004-08-05 02:24:00 +00:00
|
|
|
</classpath>
|
|
|
|
<arg value="-d" />
|
|
|
|
<arg value="../jsp/WEB-INF/classes" />
|
2012-01-04 15:22:01 +00:00
|
|
|
<arg value="-v" />
|
2004-08-05 02:24:00 +00:00
|
|
|
<arg value="-p" />
|
|
|
|
<arg value="net.i2p.i2ptunnel.jsp" />
|
|
|
|
<arg value="-webinc" />
|
|
|
|
<arg value="../jsp/web-fragment.xml" />
|
|
|
|
<arg value="-webapp" />
|
|
|
|
<arg value="../jsp/" />
|
|
|
|
</java>
|
2014-02-21 13:59:27 +00:00
|
|
|
<javac debug="true" deprecation="on" source="${javac.version}" target="${javac.version}"
|
2011-02-17 12:47:35 +00:00
|
|
|
includeAntRuntime="false"
|
2005-02-27 00:03:42 +00:00
|
|
|
destdir="../jsp/WEB-INF/classes/" srcdir="../jsp/WEB-INF/classes" includes="**/*.java">
|
2009-04-26 15:54:51 +00:00
|
|
|
<compilerarg line="${javac.compilerargs}" />
|
2004-08-05 02:24:00 +00:00
|
|
|
<classpath>
|
|
|
|
<pathelement location="../../jetty/jettylib/jasper-runtime.jar" />
|
|
|
|
<pathelement location="../../jetty/jettylib/javax.servlet.jar" />
|
2017-03-03 15:48:10 +00:00
|
|
|
|
|
|
|
<!-- following jars only present for debian builds -->
|
2016-04-01 18:19:06 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/jsp-api.jar" />
|
2016-04-07 14:38:30 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/tomcat-api.jar" />
|
|
|
|
<pathelement location="../../jetty/jettylib/jasper-el.jar" />
|
2017-03-03 15:48:10 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/tomcat-util.jar" />
|
|
|
|
<pathelement location="../../jetty/jettylib/tomcat-util-scan.jar" />
|
|
|
|
|
2005-02-16 jrandom
* (Merged the 0.5-pre branch back into CVS HEAD)
* Replaced the old tunnel routing crypto with the one specified in
router/doc/tunnel-alt.html, including updates to the web console to view
and tweak it.
* Provide the means for routers to reject tunnel requests with a wider
range of responses:
probabalistic rejection, due to approaching overload
transient rejection, due to temporary overload
bandwidth rejection, due to persistent bandwidth overload
critical rejection, due to general router fault (or imminent shutdown)
The different responses are factored into the profiles accordingly.
* Replaced the old I2CP tunnel related options (tunnels.depthInbound, etc)
with a series of new properties, relevent to the new tunnel routing code:
inbound.nickname (used on the console)
inbound.quantity (# of tunnels to use in any leaseSets)
inbound.backupQuantity (# of tunnels to keep in the ready)
inbound.length (# of remote peers in the tunnel)
inbound.lengthVariance (if > 0, permute the length by adding a random #
up to the variance. if < 0, permute the length
by adding or subtracting a random # up to the
variance)
outbound.* (same as the inbound, except for the, uh, outbound tunnels
in that client's pool)
There are other options, and more will be added later, but the above are
the most relevent ones.
* Replaced Jetty 4.2.21 with Jetty 5.1.2
* Compress all profile data on disk.
* Adjust the reseeding functionality to work even when the JVM's http proxy
is set.
* Enable a poor-man's interactive-flow in the streaming lib by choking the
max window size.
* Reduced the default streaming lib max message size to 16KB (though still
configurable by the user), also doubling the default maximum window
size.
* Replaced the RouterIdentity in a Lease with its SHA256 hash.
* Reduced the overall I2NP message checksum from a full 32 byte SHA256 to
the first byte of the SHA256.
* Added a new "netId" flag to let routers drop references to other routers
who we won't be able to talk to.
* Extended the timestamper to get a second (or third) opinion whenever it
wants to actually adjust the clock offset.
* Replaced that kludge of a timestamp I2NP message with a full blown
DateMessage.
* Substantial memory optimizations within the router and the SDK to reduce
GC churn. Client apps and the streaming libs have not been tuned,
however.
* More bugfixes thank you can shake a stick at.
2005-02-13 jrandom
* Updated jbigi source to handle 64bit CPUs. The bundled jbigi.jar still
only contains 32bit versions, so build your own, placing libjbigi.so in
your install dir if necessary. (thanks mule!)
* Added support for libjbigi-$os-athlon64 to NativeBigInteger and CPUID
(thanks spaetz!)
2005-02-16 22:23:47 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/commons-el.jar" />
|
2018-10-10 12:30:34 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/jetty-xml.jar" />
|
2018-04-28 22:07:14 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/jetty-util.jar" />
|
2004-08-05 02:24:00 +00:00
|
|
|
<pathelement location="build/i2ptunnel.jar" />
|
2012-01-04 15:22:01 +00:00
|
|
|
<pathelement location="build/temp-beans.jar" />
|
2012-11-02 15:59:51 +00:00
|
|
|
<pathelement location="../../../core/java/build/i2p.jar" />
|
2016-04-24 21:03:10 +00:00
|
|
|
<!-- required for multipart form handling in register.jsp -->
|
|
|
|
<pathelement location="../../jetty/jettylib/jetty-i2p.jar" />
|
2004-08-05 02:24:00 +00:00
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
<copy file="../jsp/web.xml" tofile="../jsp/web-out.xml" />
|
|
|
|
<loadfile property="jspc.web.fragment" srcfile="../jsp/web-fragment.xml" />
|
|
|
|
<replace file="../jsp/web-out.xml">
|
|
|
|
<replacefilter token="<!-- precompiled servlets -->" value="${jspc.web.fragment}" />
|
|
|
|
</replace>
|
2018-03-04 13:31:35 +00:00
|
|
|
<!-- Add multipart config to servlets that need them -->
|
|
|
|
<property name="__match1" value="<servlet-class>net.i2p.i2ptunnel.jsp." />
|
|
|
|
<property name="__match2" value="_jsp</servlet-class>" />
|
|
|
|
<property name="__class1" value="${__match1}register${__match2}" />
|
|
|
|
<property name="__multipart" value="
|
|
|
|
<multipart-config>
|
|
|
|
<max-file-size>131072</max-file-size>
|
|
|
|
<max-request-size>131072</max-request-size>
|
|
|
|
</multipart-config>" />
|
|
|
|
<replace file="../jsp/web-out.xml">
|
|
|
|
<replacefilter token="${__class1}" value="${__class1}${__multipart}" />
|
|
|
|
</replace>
|
2004-08-05 02:24:00 +00:00
|
|
|
</target>
|
2008-11-09 15:46:08 +00:00
|
|
|
|
|
|
|
<uptodate property="precompilejsp.uptodate" targetfile="../jsp/web-out.xml">
|
2018-01-17 16:51:55 +00:00
|
|
|
<srcfiles dir= "../jsp" includes="*.jsp, *.jsi, *.html, web.xml"/>
|
2012-11-02 15:59:51 +00:00
|
|
|
<srcfiles dir= "src/net/i2p/i2ptunnel/web" includes="*.java"/>
|
2008-11-09 15:46:08 +00:00
|
|
|
</uptodate>
|
|
|
|
|
2004-04-08 04:41:54 +00:00
|
|
|
<target name="javadoc">
|
|
|
|
<mkdir dir="./build" />
|
|
|
|
<mkdir dir="./build/javadoc" />
|
|
|
|
<javadoc
|
|
|
|
sourcepath="./src:../../../core/java/src:../../ministreaming/java/src" destdir="./build/javadoc"
|
|
|
|
packagenames="*"
|
|
|
|
use="true"
|
|
|
|
splitindex="true"
|
|
|
|
windowtitle="I2PTunnel" />
|
|
|
|
</target>
|
2011-02-10 07:20:40 +00:00
|
|
|
|
|
|
|
<target name="compileTest">
|
|
|
|
<mkdir dir="./build" />
|
|
|
|
<mkdir dir="./build/obj" />
|
2011-02-20 11:03:40 +00:00
|
|
|
<!-- We need the ant runtime, as it includes junit -->
|
2014-06-27 13:57:43 +00:00
|
|
|
<javac srcdir="./src:./test/junit" debug="true" source="${javac.version}" target="${javac.version}"
|
2011-02-20 11:03:40 +00:00
|
|
|
includeAntRuntime="true"
|
2011-02-17 12:47:35 +00:00
|
|
|
deprecation="on" destdir="./build/obj" >
|
2011-02-10 07:20:40 +00:00
|
|
|
<compilerarg line="${javac.compilerargs}" />
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="../../../core/java/build/i2p.jar" />
|
|
|
|
<pathelement location="../../ministreaming/java/build/mstreaming.jar" />
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
</target>
|
2018-04-14 18:54:17 +00:00
|
|
|
|
2011-02-10 07:20:40 +00:00
|
|
|
<target name="test" depends="clean, compileTest">
|
|
|
|
<junit printsummary="on" fork="yes">
|
|
|
|
<classpath>
|
|
|
|
<pathelement path="${classpath}" />
|
|
|
|
<pathelement location="./build/obj" />
|
|
|
|
<pathelement location="../../../core/java/build/i2p.jar" />
|
|
|
|
</classpath>
|
|
|
|
<batchtest>
|
2012-11-04 11:23:12 +00:00
|
|
|
<fileset dir="./test/junit/">
|
2011-02-10 07:20:40 +00:00
|
|
|
<include name="**/*Test.java" />
|
|
|
|
</fileset>
|
|
|
|
</batchtest>
|
|
|
|
<formatter type="xml"/>
|
|
|
|
</junit>
|
|
|
|
<mkdir dir="../../../reports/" />
|
|
|
|
<mkdir dir="../../../reports/i2ptunnel/" />
|
|
|
|
<mkdir dir="../../../reports/i2ptunnel/junit/" />
|
|
|
|
<delete>
|
|
|
|
<fileset dir="../../../reports/i2ptunnel/junit">
|
|
|
|
<include name="TEST-*.xml"/>
|
|
|
|
</fileset>
|
|
|
|
</delete>
|
|
|
|
<copy todir="../../../reports/i2ptunnel/junit">
|
|
|
|
<fileset dir=".">
|
|
|
|
<include name="TEST-*.xml"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<delete>
|
|
|
|
<fileset dir=".">
|
|
|
|
<include name="TEST-*.xml"/>
|
|
|
|
</fileset>
|
|
|
|
</delete>
|
|
|
|
</target>
|
|
|
|
|
2004-04-08 04:41:54 +00:00
|
|
|
<target name="clean">
|
|
|
|
<delete dir="./build" />
|
2008-11-09 15:46:08 +00:00
|
|
|
<delete dir="../jsp/WEB-INF/" />
|
|
|
|
<delete file="../jsp/web-fragment.xml" />
|
|
|
|
<delete file="../jsp/web-out.xml" />
|
2004-04-08 04:41:54 +00:00
|
|
|
</target>
|
|
|
|
<target name="cleandep" depends="clean">
|
|
|
|
</target>
|
|
|
|
<target name="distclean" depends="clean">
|
|
|
|
</target>
|
|
|
|
</project>
|