I want to discover all xml files that my ClassLoader is aware of using a wildcard pattern. Is there any way to do this?
A JAR-file is just another ZIP-file, right?
So I suppose you could iterate the jar-files using http://java.sun.com/javase/6/docs/api/java/util/zip/ZipInputStream.html
I'm thinking something like:
ZipSearcher searcher = new ZipSearcher(new ZipInputStream(new FileInputStream("my.jar")));
List xmlFilenames = searcher.search(new RegexFilenameFilter(".xml$"));
Cheers. Keith.