Blame SOURCES/removeUnusedDependencies.patch

9a1c5c
--- build.xml.orig	2021-12-09 13:29:38.000000000 -0500
9a1c5c
+++ build.xml	2022-06-24 15:11:09.283008874 -0400
9a1c5c
@@ -73,7 +73,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"/>
9a1c5c
-  <property name="tomcat.bnd"            value="${basedir}/res/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"/>
9a1c5c
@@ -239,11 +238,6 @@
9a1c5c
 
1a2fab
   
1a2fab
   <path id="compile.classpath">
9a1c5c
-    <pathelement location="${bnd.jar}"/>
9a1c5c
-    <pathelement location="${osgi-annotations.jar}"/>
9a1c5c
-    <pathelement location="${jdt.jar}"/>
1a2fab
-    <pathelement location="${jaxrpc-lib.jar}"/>
1a2fab
-    <pathelement location="${wsdl4j-lib.jar}"/>
1a2fab
     
1a2fab
     <pathelement location="${ant.jar}"/>
1a2fab
   </path>
9a1c5c
@@ -298,7 +292,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"/>
9a1c5c
@@ -453,6 +446,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
 
9a1c5c
   <patternset id="files.tomcat-embed-programmatic">
9a1c5c
@@ -964,7 +958,7 @@
9a1c5c
     </copy>
1a2fab
   </target>
1a2fab
 
9a1c5c
-  <target name="compile" depends="build-prepare,compile-prepare,setup-bnd">
9a1c5c
+  <target name="compile" depends="build-prepare,compile-prepare">
9a1c5c
     
9a1c5c
     
9a1c5c
            debug="${compile.debug}"
9a1c5c
@@ -978,6 +972,7 @@
1a2fab
       -->
1a2fab
       <compilerarg value="-XDignore.symbol.file"/>
1a2fab
       <classpath refid="compile.classpath" />
1a2fab
+      <exclude name="org/apache/naming/factory/webservices/**" />
1a2fab
     </javac>
1a2fab
     
9a1c5c
     <copy todir="${tomcat.classes}" encoding="UTF-8">
9a1c5c
@@ -1032,7 +1027,7 @@
1a2fab
       filesDir="${tomcat.classes}"
1a2fab
       filesId="files.annotations-api"
9a1c5c
       manifest="${tomcat.manifests}/annotations-api.jar.manifest"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
1a2fab
     
9a1c5c
@@ -1041,41 +1036,41 @@
1a2fab
       manifest="${tomcat.manifests}/servlet-api.jar.manifest"
1a2fab
       notice="${tomcat.manifests}/servlet-api.jar.notice"
9a1c5c
       license="${tomcat.manifests}/servlet-api.jar.license"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.el-api"
9a1c5c
       manifest="${tomcat.manifests}/el-api.jar.manifest"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.jsp-api"
9a1c5c
       manifest="${tomcat.manifests}/jsp-api.jar.manifest"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
1a2fab
     
1a2fab
       filesDir="${tomcat.classes}"
1a2fab
       filesId="files.websocket-api"
9a1c5c
       manifest="${tomcat.manifests}/websocket-api.jar.manifest"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
1a2fab
     
1a2fab
       filesDir="${tomcat.classes}"
1a2fab
       filesId="files.jaspic-api"
9a1c5c
       manifest="${tomcat.manifests}/jaspic-api.jar.manifest"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.tomcat-juli"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
1a2fab
     
1a2fab
     
9a1c5c
@@ -1087,61 +1082,61 @@
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.tomcat-util"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.tomcat-api"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.tomcat-util-scan"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.tomcat-jni"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.tomcat-coyote"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.tomcat-websocket"
9a1c5c
       meta-inf="${tomcat.manifests}/tomcat-websocket.jar"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.catalina-tribes"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.catalina"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.catalina-ha"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.catalina-ssi"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
9a1c5c
     
9a1c5c
@@ -1152,27 +1147,27 @@
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.catalina-storeconfig"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.jasper-el"
9a1c5c
       meta-inf="${tomcat.manifests}/jasper-el.jar"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
9a1c5c
     
9a1c5c
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.jasper"
9a1c5c
       meta-inf="${tomcat.manifests}/jasper.jar"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
1a2fab
     
1a2fab
     
1a2fab
       filesDir="${tomcat.classes}"
9a1c5c
       filesId="files.tomcat-dbcp"
1a2fab
-      addOSGi="true" />
9a1c5c
+      />
1a2fab
 
1a2fab
     
1a2fab
     
9a1c5c
@@ -1616,7 +1611,7 @@
1a2fab
     </txt2html>
1a2fab
   </target>
1a2fab
   
9a1c5c
-    depends="build-manifests,setup-bnd,compile,package" >
9a1c5c
+    depends="build-manifests,compile,package" >
1a2fab
 
1a2fab
     <mkdir dir="${tomcat.embed}" />
1a2fab
 
9a1c5c
@@ -3137,7 +3132,7 @@ skip.installer property in build.propert
1a2fab
 
9a1c5c
   
9a1c5c
           description="Download components necessary to compile"
9a1c5c
-          depends="setup-bnd">
9a1c5c
+          >
1a2fab
 
9a1c5c
     
9a1c5c
     <antcall target="downloadgz-2">
9a1c5c
@@ -3712,15 +3707,6 @@ Read the Building page on the Apache Tom
1a2fab
     </antcall>
1a2fab
   </target>
1a2fab
 
9a1c5c
-  <target name="setup-bnd" >
1a2fab
-    
9a1c5c
-    <path id="bnd.classpath">
1a2fab
-      <fileset file="${bnd.jar}" />
1a2fab
-    </path>
1a2fab
-
9a1c5c
-    <taskdef resource="aQute/bnd/ant/taskdef.properties" classpathref="bnd.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"/>
9a1c5c
diff -up ./java/org/apache/el/ExpressionFactoryImpl.java.orig ./java/org/apache/el/ExpressionFactoryImpl.java
9a1c5c
--- ./java/org/apache/el/ExpressionFactoryImpl.java.orig	2022-06-24 15:17:45.976566618 -0400
9a1c5c
+++ ./java/org/apache/el/ExpressionFactoryImpl.java	2022-06-24 15:17:51.346506484 -0400
9a1c5c
@@ -33,7 +33,6 @@ import org.apache.el.util.MessageFactory
9a1c5c
  *
9a1c5c
  * @author Jacob Hookom [jacob@hookom.net]
9a1c5c
  */
9a1c5c
-@aQute.bnd.annotation.spi.ServiceProvider(value=ExpressionFactory.class)
9a1c5c
 public class ExpressionFactoryImpl extends ExpressionFactory {
9a1c5c
 
9a1c5c
     @Override
9a1c5c
diff -up ./java/org/apache/juli/logging/LogFactory.java.orig ./java/org/apache/juli/logging/LogFactory.java
9a1c5c
--- ./java/org/apache/juli/logging/LogFactory.java.orig	2022-06-24 15:17:21.628839270 -0400
9a1c5c
+++ ./java/org/apache/juli/logging/LogFactory.java	2022-06-24 15:17:37.625660134 -0400
9a1c5c
@@ -21,8 +21,6 @@ import java.nio.file.FileSystems;
9a1c5c
 import java.util.ServiceLoader;
9a1c5c
 import java.util.logging.LogManager;
9a1c5c
 
9a1c5c
-import aQute.bnd.annotation.spi.ServiceConsumer;
1a2fab
-
9a1c5c
 /**
9a1c5c
  * This is a modified LogFactory that uses a simple {@link ServiceLoader} based
9a1c5c
  * discovery mechanism with a default of using JDK based logging. An
9a1c5c
@@ -63,7 +61,6 @@ import aQute.bnd.annotation.spi.ServiceC
9a1c5c
  * @author Costin Manolache
9a1c5c
  * @author Richard A. Sitze
9a1c5c
  */
9a1c5c
-@ServiceConsumer(value=org.apache.juli.logging.Log.class)
9a1c5c
 public class LogFactory {
9a1c5c
 
9a1c5c
     private static final LogFactory singleton = new LogFactory();
9a1c5c
diff -up ./java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java.orig ./java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java
9a1c5c
--- ./java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java.orig	2022-06-24 15:17:09.250977880 -0400
9a1c5c
+++ ./java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java	2022-06-24 15:17:14.091923670 -0400
9a1c5c
@@ -26,7 +26,6 @@ import javax.websocket.HandshakeResponse
9a1c5c
 import javax.websocket.server.HandshakeRequest;
9a1c5c
 import javax.websocket.server.ServerEndpointConfig;
9a1c5c
 
9a1c5c
-@aQute.bnd.annotation.spi.ServiceProvider(value=ServerEndpointConfig.Configurator.class)
9a1c5c
 public class DefaultServerEndpointConfigurator
9a1c5c
         extends ServerEndpointConfig.Configurator {
9a1c5c
 
9a1c5c
diff -up ./java/org/apache/tomcat/websocket/WsContainerProvider.java.orig ./java/org/apache/tomcat/websocket/WsContainerProvider.java
9a1c5c
--- ./java/org/apache/tomcat/websocket/WsContainerProvider.java.orig	2022-06-24 15:16:58.046103352 -0400
9a1c5c
+++ ./java/org/apache/tomcat/websocket/WsContainerProvider.java	2022-06-24 15:17:03.098046783 -0400
9a1c5c
@@ -19,7 +19,6 @@ package org.apache.tomcat.websocket;
9a1c5c
 import javax.websocket.ContainerProvider;
9a1c5c
 import javax.websocket.WebSocketContainer;
9a1c5c
 
9a1c5c
-@aQute.bnd.annotation.spi.ServiceProvider(value=ContainerProvider.class)
9a1c5c
 public class WsContainerProvider extends ContainerProvider {
9a1c5c
 
9a1c5c
     @Override