| return callers;
}
public static UrlSet applyBuiltinExcludes(UrlSet urlSet) throws MalformedURLException {
Filter filter = Filters.prefixes(
"XmlSchema-",
"activeio-",
"activemq-",
"antlr-",
"aopalliance-",
"avalon-framework-",
"axis-",
"axis2-",
"bcprov-",
"bval-core",
"bval-jsr",
"catalina-",
"cglib-",
"commons-beanutils",
"commons-cli-",
"commons-codec-",
"commons-collections-",
"commons-digester-",
"commons-dbcp",
"commons-dbcp-all-1.3-",
"commons-discovery-",
"commons-httpclient-",
"commons-io-",
"commons-lang-",
"commons-lang3-",
"commons-logging-",
"commons-logging-api-",
"commons-net-",
"commons-pool-",
"cssparser-",
"cxf-",
"deploy.jar",
"derby-",
"dom4j-",
"geronimo-",
"gragent.jar",
"guice-",
"hibernate-",
"howl-",
"hsqldb-",
"htmlunit-",
"icu4j-",
"idb-",
"idea_rt.jar",
"jasypt-",
"javaee-",
"javaee-api",
"javassist-",
"javaws.jar",
"javax.",
"jaxb-",
"jaxp-",
"jboss-",
"jbossall-",
"jbosscx-",
"jbossjts-",
"jbosssx-",
"jcommander-",
"jetty-",
"jettison-",
"joda-time-",
"jmdns-",
"jsp-api-",
"jsr299-",
"jsr311-",
"juli-",
"junit-",
"kahadb-",
"log4j-",
"logkit-",
"mbean-annotation-api-",
"myfaces-",
"neethi-",
"nekohtml-",
"openejb-api",
"openejb-cxf-bundle",
"openejb-javaagent",
"openejb-jee",
"openejb-loader",
"openjpa-",
"opensaml-",
"openwebbeans-",
"openws-",
"org.eclipse.",
"org.junit.",
"org.osgi.core-",
"quartz-",
"rmock-",
"saaj-",
"sac-",
"scannotation-",
"serializer-",
"serp-",
"servlet-api-",
"slf4j-",
"spring-",
"stax-api-",
"swizzle-",
"testng-",
"webbeans-ee",
"webbeans-ejb",
"webbeans-impl",
"webbeans-spi",
"wsdl4j-",
"wss4j-",
"wstx-asl-",
"xalan-",
"xbean-",
"xercesImpl-",
"xml-apis-",
"xml-resolver-",
"xmlrpc-",
"xmlsec-",
"xmlunit-"
);
// filter = Filters.optimize(filter, new PatternFilter(".*/openejb-.*"));
List<URL> urls = urlSet.getUrls();
Iterator<URL> iterator = urls.iterator();
while (iterator.hasNext()) {
URL url = iterator.next();
File file = URLs.toFile(url);
String name = filter(file).getName();
// System.out.println("JAR "+name);
if (filter.accept(name)) iterator.remove();
}
return new UrlSet(urls);
|