Ticket #2317: i2p-0.9.37-fix-tomcat.patch

File i2p-0.9.37-fix-tomcat.patch, 1.8 KB (added by villain, 13 months ago)

patch for version 0.9.37

  • apps/jetty/build.xml

    diff --git a/apps/jetty/build.xml b/apps/jetty/build.xml
    index a09f56d52..24a3f5970 100644
    a b  
    140140           with-libtomcat8-java AND with-libjetty9-java: Xenial, Jessie (with backports), Stretch
    141141           with-libjetty9-java (only): not supported
    142142     -->
    143     <target name="copyJettylib" depends="mkJettylibdir, copyJettylib1, copyTomcatLib1, copyJettylib2, copyTomcatLib" />
     143    <target name="copyJettylib" depends="mkJettylibdir, copyJettylib1, copyTomcatLib1, copyJettylib2, copyJettylib3, copyTomcatLib" />
    144144
    145145    <!-- Jetty files only -->
    146146    <target name="copyJettylib1" depends="extractJettylib, buildPatches" unless="${with-libjetty9-java}" >
     
    225225      -->
    226226    </target>
    227227
     228    <!-- Copy jetty-apache-jsp.jar -->
     229    <!-- ONLY if with-libtomcat8-java but NOT with-libjetty9-java (wheezy/jessie configuration) -->
     230    <!-- If neither with-libtomcat8-java nor with-libjetty9-java, it's merged into jasper-runtime.jar in the copyTomcatLib2 target below -->
     231    <target name="copyJettylib3" depends="extractJettylib, copyTomcatLib1" if="${with-libtomcat-without-libjetty}" >
     232            <copy preservelastmodified="true" file="${jetty.base}/lib/apache-jsp/org.eclipse.jetty.apache-jsp-${jetty.ver}.jar" tofile="jettylib/jetty-apache-jsp.jar" />
     233    </target>
    228234
    229235    <!-- Tomcat.
    230236         The glassfish jars bundled in Jetty 6 are way too old.
     
    251257                <istrue value="${with-libtomcat8-java}" />
    252258            </or>
    253259        </condition>
     260        <condition property="with-libtomcat-without-libjetty" >
     261            <and>
     262                <istrue value="${with-libtomcat-java}" />
     263                <not>
     264                    <istrue value="${with-libjetty9-java}" />
     265                </not>
     266            </and>
     267        </condition>
    254268    </target>
    255269
    256270