diff options
Diffstat (limited to 'src/main/java/fr')
-rw-r--r-- | src/main/java/fr/umlv/java/wallj/viewer/Main.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/viewer/Main.java b/src/main/java/fr/umlv/java/wallj/viewer/Main.java index d74785c..291ad58 100644 --- a/src/main/java/fr/umlv/java/wallj/viewer/Main.java +++ b/src/main/java/fr/umlv/java/wallj/viewer/Main.java | |||
@@ -18,7 +18,7 @@ public class Main { | |||
18 | private static final String DEFAULT_MAP_NAME = "/maps/level0.txt"; | 18 | private static final String DEFAULT_MAP_NAME = "/maps/level0.txt"; |
19 | 19 | ||
20 | private static FileSystem fileSystemForContext(URI uri) throws URISyntaxException, IOException { | 20 | private static FileSystem fileSystemForContext(URI uri) throws URISyntaxException, IOException { |
21 | boolean isInJar = Objects.equals(Main.class.getProtectionDomain().getCodeSource().getLocation().getProtocol(), "jar"); | 21 | boolean isInJar = Main.class.getProtectionDomain().getCodeSource().getLocation().toURI().toString().endsWith(".jar"); |
22 | if (isInJar) {//JAR from command line handling | 22 | if (isInJar) {//JAR from command line handling |
23 | Map<String, String> env = new HashMap<>(); | 23 | Map<String, String> env = new HashMap<>(); |
24 | env.put("create", "true"); | 24 | env.put("create", "true"); |