diff options
author | pacien | 2018-02-04 13:41:20 +0100 |
---|---|---|
committer | pacien | 2018-02-04 13:41:20 +0100 |
commit | e2cdb2a3d02159c18ae48142781248e1aa4beb6f (patch) | |
tree | 3787d99aadf038c53c4067feae26e86aad450d02 | |
parent | 534f0cf4c6232e87a4b96f7e583c0422c8b312a6 (diff) | |
parent | 846b53290847887bc8e5a199986f9f8a95d20418 (diff) | |
download | wallj-e2cdb2a3d02159c18ae48142781248e1aa4beb6f.tar.gz |
Merge branch 'master' of https://github.com/pacien/upem-java-wallj
-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"); |