From e0275949f74d465268a8d135a4e2c427524e9dfa Mon Sep 17 00:00:00 2001 From: 4pr0n Date: Sat, 5 Apr 2014 11:52:25 -0700 Subject: [PATCH] Added debug statements while finding rippers --- src/main/java/com/rarchives/ripme/utils/Utils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/rarchives/ripme/utils/Utils.java b/src/main/java/com/rarchives/ripme/utils/Utils.java index c52c7d7b..c24c3023 100644 --- a/src/main/java/com/rarchives/ripme/utils/Utils.java +++ b/src/main/java/com/rarchives/ripme/utils/Utils.java @@ -159,7 +159,9 @@ public class Utils { } else { try { + logger.debug("fullPath = " + fullPath); String jarPath = fullPath.replaceFirst("[.]jar[!].*", ".jar").replaceFirst("file:", ""); + logger.debug("jarPath = " + jarPath); JarFile jarFile = new JarFile(jarPath); Enumeration entries = jarFile.entries(); while(entries.hasMoreElements()) { @@ -175,6 +177,7 @@ public class Utils { } } } 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); } }