URL root = new File(dir).toURI().toURL();
ClasspathRoot classpath;
if (dir.endsWith(".jar")) {
classpath = new JarClasspathRoot(root);
} else {
classpath = new DirectoryClasspathRoot(root);
}
// Get the class readers for each class
buildCrlist(root, classpath, prefix, "", crlist, flags.isVerbose());