Browse Source

Fix #252

pull/255/head
Decebal Suiu 6 years ago
parent
commit
769ad8c5dc
  1. 2
      pf4j/src/main/java/org/pf4j/util/FileUtils.java

2
pf4j/src/main/java/org/pf4j/util/FileUtils.java

@ -217,7 +217,7 @@ public class FileUtils {
public static Path getPath(Path path, String first, String... more) throws IOException { public static Path getPath(Path path, String first, String... more) throws IOException {
URI uri = path.toUri(); URI uri = path.toUri();
if (isJarFile(path)) { if (isJarFile(path)) {
String pathString = path.toString(); String pathString = path.toAbsolutePath().toString();
// transformation for Windows OS // transformation for Windows OS
pathString = StringUtils.addStart(pathString.replace("\\", "/"), "/"); pathString = StringUtils.addStart(pathString.replace("\\", "/"), "/");
// space is replaced with %20 // space is replaced with %20

Loading…
Cancel
Save