< prev index next >

src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxAppImageBuilder.java

Print this page

        

@@ -55,11 +55,10 @@
     private static final String LIBRARY_NAME = "libapplauncher.so";
 
     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;
 
     private final Map<String, ? super Object> params;

@@ -87,11 +86,10 @@
         Objects.requireNonNull(imageOutDir);
 
         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");
         this.params = new HashMap<>();
         config.entrySet().stream().forEach(e -> params.put(

@@ -107,11 +105,10 @@
         Objects.requireNonNull(imageOutDir);
 
         this.root = imageOutDir.resolve(appName);
         this.appDir = null;
         this.appModsDir = null;
-        this.relativeModsDir = null;
         this.runtimeDir = null;
         this.binDir = null;
         this.mdir = null;
         this.params = new HashMap<>();
     }

@@ -151,15 +148,10 @@
     public Path getAppModsDir() {
         return appModsDir;
     }
 
     @Override
-    public String getRelativeModsDir() {
-        return relativeModsDir;
-    }
-
-    @Override
     public void prepareApplicationFiles() throws IOException {
         Map<String, ? super Object> originalParams = new HashMap<>(params);
 
         try {
             IOUtils.writableOutputDir(root);

@@ -204,12 +196,11 @@
         }
 
         executableFile.toFile().setExecutable(true, false);
         executableFile.toFile().setWritable(true, true);
 
-        writeCfgFile(params, root.resolve(getLauncherCfgName(params)).toFile(),
-                "$APPDIR/runtime");
+        writeCfgFile(params, root.resolve(getLauncherCfgName(params)).toFile());
     }
 
     private void copyIcon() throws IOException {
         File icon = ICON_PNG.fetchFrom(params);
         if (icon != null) {
< prev index next >