< prev index next >

src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WindowsAppImageBuilder.java

Print this page

        

@@ -72,11 +72,10 @@
             "WinLauncher.template";
 
     private final Path root;
     private final Path appDir;
     private final Path appModsDir;
-    private final String relativeModsDir;
     private final Path runtimeDir;
     private final Path mdir;
     private final Path binDir;
 
     private final Map<String, ? super Object> params;

@@ -123,11 +122,10 @@
         this.params = config;
 
         this.root = imageOutDir.resolve(APP_NAME.fetchFrom(params));
         this.appDir = root.resolve("app");
         this.appModsDir = appDir.resolve("mods");
-        this.relativeModsDir = "app/mods";
         this.runtimeDir = root.resolve("runtime");
         this.mdir = runtimeDir.resolve("lib");
         this.binDir = root.resolve("bin");
         Files.createDirectories(appDir);
         Files.createDirectories(runtimeDir);

@@ -141,11 +139,10 @@
 
         this.params = null;
         this.root = imageOutDir.resolve(jreName);
         this.appDir = null;
         this.appModsDir = null;
-        this.relativeModsDir = null;
         this.runtimeDir = root;
         this.mdir = runtimeDir.resolve("lib");
         this.binDir = null;
         Files.createDirectories(runtimeDir);
     }

@@ -198,15 +195,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);

@@ -320,11 +312,11 @@
 
         Files.copy(in, iconTarget.toPath(),
                 StandardCopyOption.REPLACE_EXISTING);
 
         writeCfgFile(params, root.resolve(
-                getLauncherCfgName(params)).toFile(), "$APPDIR\\runtime");
+                getLauncherCfgName(params)).toFile());
 
         prepareExecutableProperties(params);
 
         // Copy executable to bin folder
         Path executableFile = binDir.resolve(getLauncherName(params));
< prev index next >