aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam NAILI2018-02-04 13:01:18 +0100
committerAdam NAILI2018-02-04 13:01:18 +0100
commit19c7eabf537e5805be25454e241d138d306ca2f3 (patch)
treea54ba74e4fd251150211b9b528eedd7a09faf303
parent444392c383ee266b0a905ed8fc9d91723ce05ef0 (diff)
downloadwallj-19c7eabf537e5805be25454e241d138d306ca2f3.tar.gz
Correcting the isInJar test
-rw-r--r--src/main/java/fr/umlv/java/wallj/viewer/Main.java2
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");