diff --git a/apps/i2ptunnel/java/build.xml b/apps/i2ptunnel/java/build.xml index e1c88bcce998487db06fb9d3ac54d5e8875edd0a..a53a7ac1e3fd97d86e50ac5d73d043460cb0f376 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" />