src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxAppImageBuilder.java
branchJDK-8200758-branch
changeset 57077 8f9cf6ad59f0
parent 57070 42783e8e73de
child 57078 db003bfc5bf7
--- a/src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxAppImageBuilder.java	Tue Dec 18 15:08:56 2018 -0500
+++ b/src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxAppImageBuilder.java	Tue Dec 18 15:10:45 2018 -0500
@@ -59,6 +59,7 @@
 
     private final Path root;
     private final Path appDir;
+    private final Path appModsDir;
     private final Path runtimeDir;
     private final Path resourcesDir;
     private final Path mdir;
@@ -91,6 +92,7 @@
 
         this.root = imageOutDir.resolve(APP_NAME.fetchFrom(config));
         this.appDir = root.resolve("app");
+        this.appModsDir = appDir.resolve("mods");
         this.runtimeDir = root.resolve("runtime");
         this.resourcesDir = root.resolve("resources");
         this.mdir = runtimeDir.resolve("lib");
@@ -110,6 +112,7 @@
 
         this.root = imageOutDir.resolve(appName);
         this.appDir = null;
+        this.appModsDir = null;
         this.runtimeDir = null;
         this.resourcesDir = null;
         this.mdir = null;
@@ -170,6 +173,16 @@
     }
 
     @Override
+    public Path getAppDir() {
+        return appDir;
+    }
+
+    @Override
+    public Path getAppModsDir() {
+        return appModsDir;
+    }
+
+    @Override
     public InputStream getResourceAsStream(String name) {
         return LinuxResources.class.getResourceAsStream(name);
     }