--- a/src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxAppImageBuilder.java Sat Jun 29 09:11:19 2019 -0400
+++ b/src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxAppImageBuilder.java Mon Jul 01 18:31:16 2019 -0400
@@ -57,6 +57,7 @@
private final Path root;
private final Path appDir;
private final Path appModsDir;
+ private final String relativeModsDir;
private final Path runtimeDir;
private final Path binDir;
private final Path mdir;
@@ -88,6 +89,7 @@
this.root = imageOutDir.resolve(APP_NAME.fetchFrom(config));
this.appDir = root.resolve("app");
this.appModsDir = appDir.resolve("mods");
+ this.relativeModsDir = "app/mods";
this.runtimeDir = root.resolve("runtime");
this.binDir = root.resolve("bin");
this.mdir = runtimeDir.resolve("lib");
@@ -107,6 +109,7 @@
this.root = imageOutDir.resolve(appName);
this.appDir = null;
this.appModsDir = null;
+ this.relativeModsDir = null;
this.runtimeDir = null;
this.binDir = null;
this.mdir = null;
@@ -150,6 +153,11 @@
}
@Override
+ public String getRelativeModsDir() {
+ return relativeModsDir;
+ }
+
+ @Override
public void prepareApplicationFiles() throws IOException {
Map<String, ? super Object> originalParams = new HashMap<>(params);