You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2017/05/07 09:18:01 UTC
svn commit: r1794188 -
/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
Author: veithen
Date: Sun May 7 09:18:01 2017
New Revision: 1794188
URL: http://svn.apache.org/viewvc?rev=1794188&view=rev
Log:
AXIS2-3919: Remove the now unused findLibJars method.
Modified:
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
Modified: axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java?rev=1794188&r1=1794187&r2=1794188&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java (original)
+++ axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java Sun May 7 09:18:01 2017
@@ -717,38 +717,6 @@ public class Utils {
}
/**
- * Get names of all *.jar files inside the lib/ directory of a given jar URL
- *
- * @param url base URL of a JAR to search
- * @return a List containing file names (Strings) of all files matching "[lL]ib/*.jar"
- */
- public static List<String> findLibJars(URL url) {
- ArrayList<String> embedded_jars = new ArrayList<String>();
- try {
- ZipInputStream zin = new ZipInputStream(url.openStream());
- ZipEntry entry;
- String entryName;
- while ((entry = zin.getNextEntry()) != null) {
- entryName = entry.getName();
- /**
- * if the entry name start with /lib and ends with .jar add it
- * to the the arraylist
- */
- if (entryName != null
- && (entryName.startsWith("lib/") || entryName
- .startsWith("Lib/"))
- && entryName.endsWith(".jar")) {
- embedded_jars.add(entryName);
- }
- }
- zin.close();
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- return embedded_jars;
- }
-
- /**
* Add the Axis2 lifecycle / session methods to a pre-existing list of names that will be
* excluded when generating schemas.
*