private static void processDirectory(File root, Map map) throws java.io.IOException { File[] files = root.listFiles(); for (int i = 0; i < files.length; i++) { File f = files[i]; if (f.isDirectory()) processDirectory(f, map); else { String name = f.getName().toLowerCase(); if (name.endsWith(".zip") || name.endsWith(".jar")) //$NON-NLS-1$ //$NON-NLS-2$ { processFile(f, map); } } } }
while (it.hasNext()) { String entryName = (String) it.next(); addEntry(entryName, map, filename);
for (int i = 0; i < args.length; i++) { File root = new File(args[i]); processDirectory(root, map);