Blame SOURCES/removeUnusedDependencies.patch

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