Skip to content

Commit

Permalink
Fixed another case of resolve. Checking for "/" and acting accordingly.
Browse files Browse the repository at this point in the history
  • Loading branch information
TurekBot committed Dec 19, 2018
1 parent 372d667 commit cfa70b8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/fxlauncher/FXManifest.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,13 @@ public String getFilename() {
}

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

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

public Path getPath(Path cacheDir) {
Expand Down

0 comments on commit cfa70b8

Please sign in to comment.