From: Decebal Suiu Date: Sun, 25 Nov 2018 15:45:11 +0000 (+0200) Subject: Fix #252 X-Git-Tag: release-2.5.0~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=769ad8c5dc333d15d0ebb8d5d7da9a70cb306953;p=pf4j.git Fix #252 --- diff --git a/pf4j/src/main/java/org/pf4j/util/FileUtils.java b/pf4j/src/main/java/org/pf4j/util/FileUtils.java index 251af11..a3e955e 100644 --- a/pf4j/src/main/java/org/pf4j/util/FileUtils.java +++ b/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 { URI uri = path.toUri(); if (isJarFile(path)) { - String pathString = path.toString(); + String pathString = path.toAbsolutePath().toString(); // transformation for Windows OS pathString = StringUtils.addStart(pathString.replace("\\", "/"), "/"); // space is replaced with %20