I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 43ec87e4 authored by zzz's avatar zzz
Browse files

- i2ptunnel: Move bean classes from the jar to the war.

  External usage was deprecated about a year ago.
  This will break old seedless plugins.
parent a14643f7
No related branches found
No related tags found
No related merge requests found
...@@ -52,13 +52,11 @@ ...@@ -52,13 +52,11 @@
</target> </target>
<!-- TODO: Move the web classes from the jar to the war - they are not part of the API <!-- The web classes are now in the war not the jar - they are not part of the API -->
- This will require sponge to rewrite some seedless stuff that uses it.
-->
<target name="jar" depends="builddep, compile, jarUpToDate, listChangedFiles" unless="jar.uptodate" > <target name="jar" depends="builddep, compile, jarUpToDate, listChangedFiles" unless="jar.uptodate" >
<!-- set if unset --> <!-- set if unset -->
<property name="workspace.changes.j.tr" value="" /> <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> <manifest>
<attribute name="Main-Class" value="net.i2p.i2ptunnel.I2PTunnel" /> <attribute name="Main-Class" value="net.i2p.i2ptunnel.I2PTunnel" />
<attribute name="Class-Path" value="i2p.jar mstreaming.jar" /> <attribute name="Class-Path" value="i2p.jar mstreaming.jar" />
...@@ -67,6 +65,7 @@ ...@@ -67,6 +65,7 @@
<attribute name="Workspace-Changes" value="${workspace.changes.j.tr}" /> <attribute name="Workspace-Changes" value="${workspace.changes.j.tr}" />
</manifest> </manifest>
</jar> </jar>
<jar destfile="./build/temp-beans.jar" basedir="./build/obj" includes="**/EditBean.class **/IndexBean.class" />
</target> </target>
<target name="jarUpToDate"> <target name="jarUpToDate">
...@@ -128,9 +127,12 @@ ...@@ -128,9 +127,12 @@
</exec> </exec>
</target> </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" > <target name="war" depends="precompilejsp, bundle, warUpToDate, listChangedFiles2" unless="war.uptodate" >
<!-- set if unset --> <!-- set if unset -->
<property name="workspace.changes.w.tr" value="" /> <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" <war destfile="build/i2ptunnel.war" webxml="../jsp/web-out.xml"
basedir="../jsp/" excludes="web.xml, web-fragment.xml, web-out.xml, **/*.java, *.jsp"> basedir="../jsp/" excludes="web.xml, web-fragment.xml, web-out.xml, **/*.java, *.jsp">
<manifest> <manifest>
...@@ -172,9 +174,11 @@ ...@@ -172,9 +174,11 @@
<pathelement location="../../jetty/jettylib/jsp-api.jar" /> <pathelement location="../../jetty/jettylib/jsp-api.jar" />
<pathelement location="../../jetty/jettylib/ant.jar" /> <pathelement location="../../jetty/jettylib/ant.jar" />
<pathelement location="build/i2ptunnel.jar" /> <pathelement location="build/i2ptunnel.jar" />
<pathelement location="build/temp-beans.jar" />
</classpath> </classpath>
<arg value="-d" /> <arg value="-d" />
<arg value="../jsp/WEB-INF/classes" /> <arg value="../jsp/WEB-INF/classes" />
<arg value="-v" />
<arg value="-p" /> <arg value="-p" />
<arg value="net.i2p.i2ptunnel.jsp" /> <arg value="net.i2p.i2ptunnel.jsp" />
<arg value="-webinc" /> <arg value="-webinc" />
...@@ -193,6 +197,7 @@ ...@@ -193,6 +197,7 @@
<pathelement location="../../jetty/jettylib/commons-el.jar" /> <pathelement location="../../jetty/jettylib/commons-el.jar" />
<pathelement location="../../jetty/jettylib/jsp-api.jar" /> <pathelement location="../../jetty/jettylib/jsp-api.jar" />
<pathelement location="build/i2ptunnel.jar" /> <pathelement location="build/i2ptunnel.jar" />
<pathelement location="build/temp-beans.jar" />
</classpath> </classpath>
</javac> </javac>
<copy file="../jsp/web.xml" tofile="../jsp/web-out.xml" /> <copy file="../jsp/web.xml" tofile="../jsp/web-out.xml" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment