< prev index next >
src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WindowsAppImageBuilder.java
Print this page
*** 72,82 ****
"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;
--- 72,81 ----
*** 123,133 ****
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);
--- 122,131 ----
*** 141,151 ****
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);
}
--- 139,148 ----
*** 198,212 ****
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);
--- 195,204 ----
*** 320,330 ****
Files.copy(in, iconTarget.toPath(),
StandardCopyOption.REPLACE_EXISTING);
writeCfgFile(params, root.resolve(
! getLauncherCfgName(params)).toFile(), "$APPDIR\\runtime");
prepareExecutableProperties(params);
// Copy executable to bin folder
Path executableFile = binDir.resolve(getLauncherName(params));
--- 312,322 ----
Files.copy(in, iconTarget.toPath(),
StandardCopyOption.REPLACE_EXISTING);
writeCfgFile(params, root.resolve(
! getLauncherCfgName(params)).toFile());
prepareExecutableProperties(params);
// Copy executable to bin folder
Path executableFile = binDir.resolve(getLauncherName(params));
< prev index next >