Skip to content

Commit

Permalink
Correctly resolve cacheDir (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
Edvin Syse committed Aug 28, 2018
1 parent 44858d0 commit 0805b97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log
All notable changes to this project will be documented in this file.

## [1.0.21-SNAPSHOT]

- Correctly resolve cacheDir (https://github.com/edvin/fxlauncher/issues/131)

## [1.0.20]

- Include artifact classifiers when copying dependencies
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/fxlauncher/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ private void startApplication() throws Exception {
} else {
// Start any executable jar (i.E. Spring Boot);
List<LibraryFile> files = superLauncher.getManifest().files;
String cacheDir = superLauncher.getManifest().cacheDir;
String command = String.format("java -jar %s/%s", cacheDir, files.get(0).file);
Path cacheDir = superLauncher.getManifest().resolveCacheDir(getParameters().getNamed());
String command = String.format("java -jar %s/%s", cacheDir.toAbsolutePath(), files.get(0).file);
log.info(String.format("Execute command '%s'", command));
Runtime.getRuntime().exec(command);
}
Expand Down

0 comments on commit 0805b97

Please sign in to comment.