Browse Source

Fix #371

pull/376/head
Decebal Suiu 5 years ago
parent
commit
4fca1aa2e4
  1. 3
      pf4j/src/main/java/org/pf4j/util/FileUtils.java

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

@ -232,7 +232,8 @@ public class FileUtils {
public static Path getPath(URI uri, String first, String... more) throws IOException {
FileSystem fileSystem = getFileSystem(uri);
Path path = fileSystem.getPath(first, more);
if ("jar".equals(uri.getScheme())) {
boolean isWindowsOS = System.getProperty("os.name").startsWith("Windows");
if (isWindowsOS && "jar".equals(uri.getScheme())) {
// it's a ZipFileSystem
fileSystem.close();
}

Loading…
Cancel
Save