Blame SOURCES/removeUnusedDependencies.patch

f505f8
diff -up ./build.properties.default.orig ./build.properties.default
f505f8
--- ./build.properties.default.orig	2020-04-23 09:43:55.567688581 -0400
f505f8
+++ ./build.properties.default	2020-04-23 09:57:55.724988090 -0400
f505f8
@@ -274,35 +274,3 @@ findbugs.checksum.value=8c54502a8e1b78ea
f505f8
 findbugs.home=${base.path}/spotbugs-${findbugs.version}
f505f8
 findbugs.jar=${findbugs.home}/lib/spotbugs-ant.jar
f505f8
 findbugs.loc=${base-maven.loc}/com/github/spotbugs/spotbugs/${findbugs.version}/spotbugs-${findbugs.version}.tgz
f505f8
-
f505f8
-# ----- SAAJ API, used by Code Signing for releases -----
f505f8
-# ----- No longer part of JRE from Java 11 onwards  -----
f505f8
-# ----- CDDL Licensed                               -----
f505f8
-saaj-api.version=1.3.5
f505f8
-saaj-api.checksum.enabled=true
f505f8
-saaj-api.checksum.algorithm=MD5|SHA-1
f505f8
-saaj-api.checksum.value=caae8b4bf2c551155815331e9e96256f|1c399a7fea4d0262a6a39750e419c24f0c769586
f505f8
-saaj-api.home=${base.path}/saaj-api-${saaj-api.version}
f505f8
-saaj-api.jar=${saaj-api.home}/saaj-api-${saaj-api.version}.jar
f505f8
-saaj-api.loc=${base-maven.loc}/javax/xml/soap/saaj-api/${saaj-api.version}/saaj-api-${saaj-api.version}.jar
f505f8
-
f505f8
-# ----- bnd & bndlib, version 4.0.0 or later  -----
f505f8
-# ----- provides OSGI metadata for JARs       -----
f505f8
-bnd.version=4.2.0
f505f8
-
f505f8
-# checksums for biz.aQute.bnd-4.2.0.jar, biz.aQute.bndlib-4.2.0.jar
f505f8
-bnd.checksum.enabled=true
f505f8
-bnd.checksum.algorithm=MD5|SHA-1
f505f8
-bnd.checksum.value=ca26a671ea67bf75d83b1588bdd68923|d4bc96b2619f95e596bbf3f725f3b077e96c5d43
f505f8
-
f505f8
-bndlib.checksum.enabled=true
f505f8
-bndlib.checksum.algorithm=MD5|SHA-1
f505f8
-bndlib.checksum.value=7519e890783ade99bb74608d0efbf8c4|c4fa30ac11cc0bf27b1f706ac8ebae8cec358e77
f505f8
-
f505f8
-bnd.home=${base.path}/bnd-${bnd.version}
f505f8
-bnd.jar=${bnd.home}/biz.aQute.bnd-${bnd.version}.jar
f505f8
-bnd.loc=${base-maven.loc}/biz/aQute/bnd/biz.aQute.bnd/${bnd.version}/biz.aQute.bnd-${bnd.version}.jar
f505f8
-
f505f8
-bndlib.home=${base.path}/bndlib-${bnd.version}
f505f8
-bndlib.jar=${bndlib.home}/biz.aQute.bndlib-${bnd.version}.jar
f505f8
-bndlib.loc=${base-maven.loc}/biz/aQute/bnd/biz.aQute.bndlib/${bnd.version}/biz.aQute.bndlib-${bnd.version}.jar
f505f8
diff -up ./build.xml.orig ./build.xml
f505f8
--- ./build.xml.orig	2020-04-23 09:43:50.041699701 -0400
f505f8
+++ ./build.xml	2020-04-23 09:58:18.835941004 -0400
f505f8
@@ -69,7 +69,6 @@
f505f8
   <property name="tomcat.home"           value="${basedir}"/>
f505f8
   <property name="tomcat-nb.home"        value="${basedir}/nbproject" />
f505f8
   <property name="tomcat.output"         value="${basedir}/output"/>
f505f8
-  <property name="tomcat.bnd"            value="${tomcat.output}/bnd"/>
f505f8
   <property name="tomcat.build"          value="${tomcat.output}/build"/>
f505f8
   <property name="tomcat.classes"        value="${tomcat.output}/classes"/>
f505f8
   <property name="tomcat.deployer"       value="${tomcat.output}/deployer"/>
f505f8
@@ -219,9 +218,6 @@
f505f8
   
f505f8
   <path id="compile.classpath">
f505f8
     <pathelement location="${jdt.jar}"/>
f505f8
-    <pathelement location="${saaj-api.jar}"/>
f505f8
-    <pathelement location="${jaxrpc-lib.jar}"/>
f505f8
-    <pathelement location="${wsdl4j-lib.jar}"/>
f505f8
     
f505f8
     <pathelement location="${ant.jar}"/>
f505f8
   </path>
f505f8
@@ -272,7 +268,6 @@
f505f8
     <include name="**/javax.websocket.ContainerProvider"/>
f505f8
     <include name="**/javax.websocket.server.ServerEndpointConfig$Configurator"/>
f505f8
     <include name="**/.gitignore"/>
f505f8
-    <include name="**/*.bnd"/>
f505f8
     <include name="**/*.classpath"/>
f505f8
     <include name="**/*.css"/>
f505f8
     <include name="**/*.dtd"/>
f505f8
@@ -425,6 +420,7 @@
f505f8
     <exclude name="org/apache/catalina/tribes/**" />
f505f8
     <exclude name="org/apache/catalina/storeconfig/**" />
f505f8
     <exclude name="org/apache/catalina/ssi/**" />
f505f8
+    <exclude name="org/apache/naming/factory/webservices/**" />
f505f8
   </patternset>
f505f8
 
f505f8
   <patternset id="files.catalina-tribes">
f505f8
@@ -556,18 +552,6 @@
f505f8
       </srcfiles>
f505f8
     </uptodate>
f505f8
 
f505f8
-    
f505f8
-    
f505f8
-        targetfile="${tomcat.bnd}/annotations-api.bnd" >
f505f8
-      <srcfiles file="${user.home}/build.properties" />
f505f8
-      <srcfiles file="${basedir}/build.properties" />
f505f8
-      <srcfiles file="${basedir}/build.properties.default" />
f505f8
-      <srcfiles file="${basedir}/build.xml" />
f505f8
-      <srcfiles dir="${tomcat.home}/res/bnd" >
f505f8
-        <include name="*.bnd" />
f505f8
-      </srcfiles>
f505f8
-    </uptodate>
f505f8
-
f505f8
   </target>
f505f8
 
f505f8
   
f505f8
@@ -712,6 +696,7 @@
f505f8
       -->
f505f8
       <compilerarg value="-XDignore.symbol.file"/>
f505f8
       <classpath refid="compile.classpath" />
f505f8
+      <exclude name="org/apache/naming/factory/webservices/**" />
f505f8
     </javac>
f505f8
     
f505f8
     <copy todir="${tomcat.classes}" encoding="ISO-8859-1">
f505f8
@@ -755,25 +740,12 @@
f505f8
 
f505f8
   </target>
f505f8
 
f505f8
-  
f505f8
-          depends="setup-bnd,build-prepare">
f505f8
-
f505f8
-    <mkdir dir="${tomcat.bnd}" />
f505f8
-    
f505f8
-          encoding="ISO-8859-1">
f505f8
-      <filterset refid="version.filters"/>
f505f8
-      <fileset dir="${tomcat.home}/res/bnd" />
f505f8
-    </copy>
f505f8
-
f505f8
-  </target>
f505f8
-
f505f8
-  <target name="package" depends="compile,build-manifests,build-bnd" >
f505f8
+  <target name="package" depends="compile,build-manifests" >
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
       filesId="files.annotations-api"
f505f8
-      manifest="${tomcat.manifests}/annotations-api.jar.manifest"
f505f8
-      addOSGi="true" />
f505f8
+      manifest="${tomcat.manifests}/annotations-api.jar.manifest" />
f505f8
 
f505f8
     
f505f8
     
f505f8
@@ -781,43 +753,37 @@
f505f8
       filesId="files.servlet-api"
f505f8
       manifest="${tomcat.manifests}/servlet-api.jar.manifest"
f505f8
       notice="${tomcat.manifests}/servlet-api.jar.notice"
f505f8
-      license="${tomcat.manifests}/servlet-api.jar.license"
f505f8
-      addOSGi="true" />
f505f8
+      license="${tomcat.manifests}/servlet-api.jar.license" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
       filesId="files.jsp-api"
f505f8
-      manifest="${tomcat.manifests}/jsp-api.jar.manifest"
f505f8
-      addOSGi="true" />
f505f8
+      manifest="${tomcat.manifests}/jsp-api.jar.manifest" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
       filesId="files.el-api"
f505f8
-      manifest="${tomcat.manifests}/el-api.jar.manifest"
f505f8
-      addOSGi="true" />
f505f8
+      manifest="${tomcat.manifests}/el-api.jar.manifest" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
       filesId="files.websocket-api"
f505f8
-      manifest="${tomcat.manifests}/websocket-api.jar.manifest"
f505f8
-      addOSGi="true" />
f505f8
+      manifest="${tomcat.manifests}/websocket-api.jar.manifest" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
       filesId="files.jaspic-api"
f505f8
-      manifest="${tomcat.manifests}/jaspic-api.jar.manifest"
f505f8
-      addOSGi="true" />
f505f8
+      manifest="${tomcat.manifests}/jaspic-api.jar.manifest" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
       filesId="files.tomcat-websocket"
f505f8
-      meta-inf="${tomcat.manifests}/tomcat-websocket.jar"
f505f8
-      addOSGi="true" />
f505f8
+      meta-inf="${tomcat.manifests}/tomcat-websocket.jar" />
f505f8
 
f505f8
     
f505f8
     
f505f8
@@ -828,32 +794,27 @@
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
-      filesId="files.tomcat-juli"
f505f8
-      addOSGi="true" />
f505f8
+      filesId="files.tomcat-juli" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
-      filesId="files.catalina"
f505f8
-      addOSGi="true" />
f505f8
+      filesId="files.catalina" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
-      filesId="files.catalina-tribes"
f505f8
-      addOSGi="true" />
f505f8
+      filesId="files.catalina-tribes" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
-      filesId="files.catalina-ssi"
f505f8
-      addOSGi="true" />
f505f8
+      filesId="files.catalina-ssi" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
-      filesId="files.catalina-ha"
f505f8
-      addOSGi="true" />
f505f8
+      filesId="files.catalina-ha" />
f505f8
 
f505f8
     
f505f8
     
f505f8
@@ -863,56 +824,47 @@
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
-      filesId="files.catalina-storeconfig"
f505f8
-      addOSGi="true" />
f505f8
+      filesId="files.catalina-storeconfig" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
-      filesId="files.tomcat-api"
f505f8
-      addOSGi="true" />
f505f8
+      filesId="files.tomcat-api" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
-      filesId="files.tomcat-util"
f505f8
-      addOSGi="true" />
f505f8
+      filesId="files.tomcat-util" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
-      filesId="files.tomcat-util-scan"
f505f8
-      addOSGi="true" />
f505f8
+      filesId="files.tomcat-util-scan" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
-      filesId="files.tomcat-coyote"
f505f8
-      addOSGi="true" />
f505f8
+      filesId="files.tomcat-coyote" />
f505f8
 
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
-      filesId="files.tomcat-jni"
f505f8
-      addOSGi="true" />
f505f8
+      filesId="files.tomcat-jni" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
       filesId="files.jasper"
f505f8
-      meta-inf="${tomcat.manifests}/jasper.jar"
f505f8
-      addOSGi="true" />
f505f8
+      meta-inf="${tomcat.manifests}/jasper.jar" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
-      filesId="files.jasper-el"
f505f8
-      addOSGi="true" />
f505f8
+      filesId="files.jasper-el" />
f505f8
 
f505f8
     
f505f8
     
f505f8
       filesDir="${tomcat.classes}"
f505f8
-      filesId="files.tomcat-dbcp"
f505f8
-      addOSGi="true" />
f505f8
+      filesId="files.tomcat-dbcp" />
f505f8
 
f505f8
     
f505f8
     
f505f8
@@ -1369,7 +1321,7 @@
f505f8
     </txt2html>
f505f8
   </target>
f505f8
   
f505f8
-    depends="build-manifests,build-bnd,compile" >
f505f8
+    depends="build-manifests,compile" >
f505f8
 
f505f8
     <mkdir dir="${tomcat.embed}" />
f505f8
 
f505f8
@@ -1387,22 +1339,18 @@
f505f8
            filesDir="${tomcat.classes}"
f505f8
            filesId="files.tomcat-embed-core"
f505f8
            notice="${tomcat.manifests}/servlet-api.jar.notice"
f505f8
-           license="${tomcat.manifests}/servlet-api.jar.license"
f505f8
-           addOSGi="true" />
f505f8
+           license="${tomcat.manifests}/servlet-api.jar.license" />
f505f8
     
f505f8
            filesDir="${tomcat.classes}"
f505f8
            filesId="files.tomcat-embed-jasper"
f505f8
-           meta-inf="${tomcat.manifests}/jasper.jar"
f505f8
-           addOSGi="true" />
f505f8
+           meta-inf="${tomcat.manifests}/jasper.jar" />
f505f8
     
f505f8
            filesDir="${tomcat.classes}"
f505f8
-           filesId="files.tomcat-embed-el"
f505f8
-           addOSGi="true" />
f505f8
+           filesId="files.tomcat-embed-el" />
f505f8
     
f505f8
            filesDir="${tomcat.classes}"
f505f8
            filesId="files.tomcat-embed-websocket"
f505f8
-           meta-inf="${tomcat.manifests}/tomcat-websocket.jar"
f505f8
-           addOSGi="true" />
f505f8
+           meta-inf="${tomcat.manifests}/tomcat-websocket.jar" />
f505f8
 
f505f8
   </target>
f505f8
 
f505f8
@@ -2749,34 +2697,6 @@ skip.installer property in build.propert
f505f8
       <param name="checksum.value" value="${jdt.checksum.value}"/>
f505f8
     </antcall>
f505f8
 
f505f8
-    
f505f8
-    <antcall target="downloadfile">
f505f8
-      <param name="sourcefile" value="${saaj-api.loc}"/>
f505f8
-      <param name="destfile" value="${saaj-api.jar}"/>
f505f8
-      <param name="destdir" value="${saaj-api.home}"/>
f505f8
-      <param name="checksum.enabled" value="${saaj-api.checksum.enabled}"/>
f505f8
-      <param name="checksum.algorithm" value="${saaj-api.checksum.algorithm}"/>
f505f8
-      <param name="checksum.value" value="${saaj-api.checksum.value}"/>
f505f8
-    </antcall>
f505f8
-
f505f8
-
f505f8
-    
f505f8
-    <antcall target="downloadfile">
f505f8
-      <param name="sourcefile" value="${jaxrpc-lib.loc}"/>
f505f8
-      <param name="destfile" value="${jaxrpc-lib.jar}"/>
f505f8
-      <param name="destdir" value="${jaxrpc-lib.home}"/>
f505f8
-      <param name="checksum.enabled" value="${jaxrpc-lib.checksum.enabled}"/>
f505f8
-      <param name="checksum.algorithm" value="${jaxrpc-lib.checksum.algorithm}"/>
f505f8
-      <param name="checksum.value" value="${jaxrpc-lib.checksum.value}"/>
f505f8
-    </antcall>
f505f8
-    <antcall target="downloadfile">
f505f8
-      <param name="sourcefile" value="${wsdl4j-lib.loc}"/>
f505f8
-      <param name="destfile" value="${wsdl4j-lib.jar}"/>
f505f8
-      <param name="destdir" value="${wsdl4j-lib.home}"/>
f505f8
-      <param name="checksum.enabled" value="${wsdl4j-lib.checksum.enabled}"/>
f505f8
-      <param name="checksum.algorithm" value="${wsdl4j-lib.checksum.algorithm}"/>
f505f8
-      <param name="checksum.value" value="${wsdl4j-lib.checksum.value}"/>
f505f8
-    </antcall>
f505f8
 
f505f8
   </target>
f505f8
 
f505f8
@@ -3261,38 +3181,6 @@ Read the Building page on the Apache Tom
f505f8
 
f505f8
   
f505f8
 
f505f8
-  <target name="download-bnd" >
f505f8
-    
f505f8
-    <antcall target="downloadfile">
f505f8
-      <param name="sourcefile" value="${bnd.loc}"/>
f505f8
-      <param name="destfile" value="${bnd.jar}"/>
f505f8
-      <param name="destdir" value="${bnd.home}"/>
f505f8
-      <param name="checksum.enabled" value="${bnd.checksum.enabled}"/>
f505f8
-      <param name="checksum.algorithm" value="${bnd.checksum.algorithm}"/>
f505f8
-      <param name="checksum.value" value="${bnd.checksum.value}"/>
f505f8
-    </antcall>
f505f8
-
f505f8
-    
f505f8
-    <antcall target="downloadfile">
f505f8
-      <param name="sourcefile" value="${bndlib.loc}"/>
f505f8
-      <param name="destfile" value="${bndlib.jar}"/>
f505f8
-      <param name="destdir" value="${bndlib.home}"/>
f505f8
-      <param name="checksum.enabled" value="${bndlib.checksum.enabled}"/>
f505f8
-      <param name="checksum.algorithm" value="${bndlib.checksum.algorithm}"/>
f505f8
-      <param name="checksum.value" value="${bndlib.checksum.value}"/>
f505f8
-    </antcall>
f505f8
-  </target>
f505f8
-
f505f8
-  <target name="setup-bnd" depends="download-bnd">
f505f8
-    
f505f8
-    <path id="bndlib.classpath">
f505f8
-      <fileset file="${bnd.jar}" />
f505f8
-      <fileset file="${bndlib.jar}" />
f505f8
-    </path>
f505f8
-
f505f8
-    <taskdef resource="aQute/bnd/ant/taskdef.properties" classpathref="bndlib.classpath" />
f505f8
-  </target>
f505f8
-
f505f8
   <macrodef name="jarIt" description="utility macro for standard JAR packaging">
f505f8
     
f505f8
                description="the name of the JAR file to create"/>
f505f8
@@ -3308,8 +3196,6 @@ Read the Building page on the Apache Tom
f505f8
                default="${tomcat.manifests}/default.license" />
f505f8
     
f505f8
                default="${tomcat.manifests}/default" />
f505f8
-    
f505f8
-               default="false" />
f505f8
     <sequential>
f505f8
       <jar jarfile="@{jarfile}" manifest="@{manifest}">
f505f8
         <fileset dir="@{filesDir}">
f505f8
@@ -3323,22 +3209,9 @@ Read the Building page on the Apache Tom
f505f8
         <zipfileset file="@{notice}" fullpath="META-INF/NOTICE" />
f505f8
         <zipfileset file="@{license}" fullpath="META-INF/LICENSE" />
f505f8
       </jar>
f505f8
-      <antcall target="add-osgi" >
f505f8
-        <param name="jarfile" value="@{jarfile}" />
f505f8
-        <param name="addOSGi" value="@{addOSGi}" />
f505f8
-      </antcall>
f505f8
     </sequential>
f505f8
   </macrodef>
f505f8
 
f505f8
-  <target name="add-osgi" if="${addOSGi}" >
f505f8
-    <echo message="add-osgi ${jarfile} ${addOSGi}"></echo>
f505f8
-    <bndwrap output="${jarfile}.tmp" definitions="${tomcat.bnd}" >
f505f8
-      <fileset file="${jarfile}"  />
f505f8
-    </bndwrap>
f505f8
-    <delete file="${jarfile}" />
f505f8
-    <move file="${jarfile}.tmp" tofile="${jarfile}" />
f505f8
-  </target>
f505f8
-
f505f8
   
f505f8
   
f505f8
   <macrodef name="hashAndSign">