Fixed spaces-in-directory bug #9
This commit is contained in:
parent
d51ad485f6
commit
72cd101d2a
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user