From 43ec87e4125da88557988fe6a9ed21790de75a7f Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Wed, 4 Jan 2012 15:22:01 +0000 Subject: [PATCH] - i2ptunnel: Move bean classes from the jar to the war. External usage was deprecated about a year ago. This will break old seedless plugins. --- apps/i2ptunnel/java/build.xml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/i2ptunnel/java/build.xml b/apps/i2ptunnel/java/build.xml index e1c88bcce9..a53a7ac1e3 100644 --- a/apps/i2ptunnel/java/build.xml +++ b/apps/i2ptunnel/java/build.xml @@ -52,13 +52,11 @@ </target> - <!-- TODO: Move the web classes from the jar to the war - they are not part of the API - - This will require sponge to rewrite some seedless stuff that uses it. - --> + <!-- The web classes are now in the war not the jar - they are not part of the API --> <target name="jar" depends="builddep, compile, jarUpToDate, listChangedFiles" unless="jar.uptodate" > <!-- set if unset --> <property name="workspace.changes.j.tr" value="" /> - <jar destfile="./build/i2ptunnel.jar" basedir="./build/obj" includes="**/*.class"> + <jar destfile="./build/i2ptunnel.jar" basedir="./build/obj" includes="**/*.class" excludes="**/EditBean.class **/IndexBean.class" > <manifest> <attribute name="Main-Class" value="net.i2p.i2ptunnel.I2PTunnel" /> <attribute name="Class-Path" value="i2p.jar mstreaming.jar" /> @@ -67,6 +65,7 @@ <attribute name="Workspace-Changes" value="${workspace.changes.j.tr}" /> </manifest> </jar> + <jar destfile="./build/temp-beans.jar" basedir="./build/obj" includes="**/EditBean.class **/IndexBean.class" /> </target> <target name="jarUpToDate"> @@ -128,9 +127,12 @@ </exec> </target> + <!-- The web classes are now in the war not the jar - they are not part of the API --> <target name="war" depends="precompilejsp, bundle, warUpToDate, listChangedFiles2" unless="war.uptodate" > <!-- set if unset --> <property name="workspace.changes.w.tr" value="" /> + <copy file="build/obj/net/i2p/i2ptunnel/web/EditBean.class" todir="../jsp/WEB-INF/classes/net/i2p/i2ptunnel/web" /> + <copy file="build/obj/net/i2p/i2ptunnel/web/IndexBean.class" todir="../jsp/WEB-INF/classes/net/i2p/i2ptunnel/web" /> <war destfile="build/i2ptunnel.war" webxml="../jsp/web-out.xml" basedir="../jsp/" excludes="web.xml, web-fragment.xml, web-out.xml, **/*.java, *.jsp"> <manifest> @@ -172,9 +174,11 @@ <pathelement location="../../jetty/jettylib/jsp-api.jar" /> <pathelement location="../../jetty/jettylib/ant.jar" /> <pathelement location="build/i2ptunnel.jar" /> + <pathelement location="build/temp-beans.jar" /> </classpath> <arg value="-d" /> <arg value="../jsp/WEB-INF/classes" /> + <arg value="-v" /> <arg value="-p" /> <arg value="net.i2p.i2ptunnel.jsp" /> <arg value="-webinc" /> @@ -193,6 +197,7 @@ <pathelement location="../../jetty/jettylib/commons-el.jar" /> <pathelement location="../../jetty/jettylib/jsp-api.jar" /> <pathelement location="build/i2ptunnel.jar" /> + <pathelement location="build/temp-beans.jar" /> </classpath> </javac> <copy file="../jsp/web.xml" tofile="../jsp/web-out.xml" /> -- GitLab