diff --git a/CHANGELOG.md b/CHANGELOG.md index 12be816..1f67de7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/main/java/fxlauncher/Launcher.java b/src/main/java/fxlauncher/Launcher.java index 1437d21..f5a1f5d 100644 --- a/src/main/java/fxlauncher/Launcher.java +++ b/src/main/java/fxlauncher/Launcher.java @@ -237,8 +237,8 @@ private void startApplication() throws Exception { } else { // Start any executable jar (i.E. Spring Boot); List 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); }