Added debug statements while finding rippers

This commit is contained in:
4pr0n 2014-04-05 11:52:25 -07:00
parent 17d544498a
commit e0275949f7

View File

@ -159,7 +159,9 @@ public class Utils {
} }
else { else {
try { try {
logger.debug("fullPath = " + fullPath);
String jarPath = fullPath.replaceFirst("[.]jar[!].*", ".jar").replaceFirst("file:", ""); String jarPath = fullPath.replaceFirst("[.]jar[!].*", ".jar").replaceFirst("file:", "");
logger.debug("jarPath = " + jarPath);
JarFile jarFile = new JarFile(jarPath); JarFile jarFile = new JarFile(jarPath);
Enumeration<JarEntry> entries = jarFile.entries(); Enumeration<JarEntry> entries = jarFile.entries();
while(entries.hasMoreElements()) { while(entries.hasMoreElements()) {
@ -175,6 +177,7 @@ public class Utils {
} }
} }
} catch (IOException e) { } catch (IOException e) {
logger.error("Error while loading jar file:", e);
throw new RuntimeException(pkgname + " (" + directory + ") does not appear to be a valid package", e); throw new RuntimeException(pkgname + " (" + directory + ") does not appear to be a valid package", e);
} }
} }