file = file.getParentFile();
}
parser = new DirectoryParser(file);
} else if (file.isFile() && file.getName().endsWith(".jar")) {
zipFile = new ZipFile(file);
parser = new ZipParser(zipFile);
} else {
throw new UnsupportedOperationException(
"Unsupported file: neither directory nor name-ends-with \".jar\"");
}
for (Iterator<IResource> it = parser.iterator(); it