Fixed spaces-in-directory bug #9

This commit is contained in:
4pr0n 2014-04-05 13:52:27 -07:00
parent d51ad485f6
commit 72cd101d2a

View File

@ -160,7 +160,10 @@ public class Utils {
else { else {
try { try {
logger.debug("fullPath = " + fullPath); logger.debug("fullPath = " + fullPath);
String jarPath = fullPath.replaceFirst("[.]jar[!].*", ".jar").replaceFirst("file:", ""); String jarPath = fullPath
.replaceFirst("[.]jar[!].*", ".jar")
.replaceFirst("file:", "")
.replaceAll("%20", " ");
logger.debug("jarPath = " + jarPath); logger.debug("jarPath = " + jarPath);
JarFile jarFile = new JarFile(jarPath); JarFile jarFile = new JarFile(jarPath);
Enumeration<JarEntry> entries = jarFile.entries(); Enumeration<JarEntry> entries = jarFile.entries();