if (pos > 0)
list.addAll(scanInDir(regex, f, ignoreHidden));
}
// 如果在 jar 中,则循环查找这个 jar 的每一个实体
else {
JarEntryInfo jeInfo = new JarEntryInfo(path);
list.addAll(scanInJar( checkSrc(jeInfo.getEntryName()),
regex,
jeInfo.getJarPath()));
}
} else {
try {
Enumeration<URL> en = getClass().getClassLoader().getResources(src);
if (en != null) {
while (en.hasMoreElements()) {
JarEntryInfo jeInfo = new JarEntryInfo(en.nextElement().getPath());
list.addAll(scanInJar( checkSrc(jeInfo.getEntryName()),
regex,
jeInfo.getJarPath()));
}
}
}
catch (Throwable e) {
e.printStackTrace();