if (args.length != 2) {
System.err.println("Please provide the library directory and the resource name to search for.");
} else {
System.out.println("Searching for " + args[1] + " in " + args[0]);
LibDirectoryClassSource lib = new LibDirectoryClassSource(new SystemDirectory(args[0]), true);
List<ClassSource> sources = lib.getAllNonCompositeSources();
for (ClassSource source : sources) {
for (String name : source.getResourceNames()) {
if (name.contains(args[1])) {
System.out.println("Found: " + name + " in " + source);