]> source.dussan.org Git - pf4j.git/commitdiff
Fix #184
authorDecebal Suiu <decebal.suiu@gmail.com>
Sat, 16 Dec 2017 08:28:51 +0000 (10:28 +0200)
committerDecebal Suiu <decebal.suiu@gmail.com>
Sat, 16 Dec 2017 08:28:51 +0000 (10:28 +0200)
pf4j/src/main/java/org/pf4j/util/FileUtils.java

index a17481bbe43c4f325a70ec4b639c2c54fa3a2d13..e3e8959a868e0e01ae47e0adf83cae6804342f20 100644 (file)
@@ -216,7 +216,7 @@ public class FileUtils {
     public static Path getPath(Path path, String first, String... more) throws IOException {
         URI uri = path.toUri();
         if (isJarFile(path)) {
-            uri = URI.create("jar:file:" + path.toString());
+            uri = URI.create("jar:file:" + path.toString().replace("\\", "/"));
         }
 
         return getPath(uri, first, more);