Skip to content

Commit

Permalink
Now using the separator logic as was previously used.
Browse files Browse the repository at this point in the history
  • Loading branch information
TurekBot committed Dec 20, 2018
1 parent 38b7b00 commit 390e702
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/java/fxlauncher/FXManifest.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,11 @@ public String getFilename() {
}

public URI getFXAppURI() {
String appXmlFile = "app.xml";
if (!uri.getPath().endsWith("/")) {
appXmlFile = "/app.xml";
}

String separator = uri.getPath().endsWith("/") ? "" : "/";

// We avoid using uri.resolve() here so as to not break UNC paths. See issue #143
return URI.create(uri.toString() + appXmlFile);
return URI.create(uri.toString() + separator + "app.xml");
}

public Path getPath(Path cacheDir) {
Expand Down

0 comments on commit 390e702

Please sign in to comment.