< prev index next >
src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxAppImageBuilder.java
Print this page
*** 144,163 ****
}
}
// it is static for the sake of sharing with "installer" bundlers
// that may skip calls to validate/bundle in this class!
! public static File getRootDir(File outDir, Map<String, ? super Object> p) {
! return new File(outDir, APP_NAME.fetchFrom(p));
}
! public static String getLauncherName(Map<String, ? super Object> p) {
! return APP_NAME.fetchFrom(p);
}
! public static String getLauncherCfgName(Map<String, ? super Object> p) {
! return "app/" + APP_NAME.fetchFrom(p) + ".cfg";
}
@Override
public Path getAppDir() {
return appDir;
--- 144,165 ----
}
}
// it is static for the sake of sharing with "installer" bundlers
// that may skip calls to validate/bundle in this class!
! public static File getRootDir(File outDir,
! Map<String, ? super Object> params) {
! return new File(outDir, APP_NAME.fetchFrom(params));
}
! public static String getLauncherName(Map<String, ? super Object> params) {
! return APP_NAME.fetchFrom(params);
}
! public static String getLauncherCfgName(
! Map<String, ? super Object> params) {
! return "app/" + APP_NAME.fetchFrom(params) + ".cfg";
}
@Override
public Path getAppDir() {
return appDir;
*** 196,218 ****
}
@Override
public void prepareJreFiles() throws IOException {}
! private void createLauncherForEntryPoint(Map<String, ? super Object> p)
! throws IOException {
// Copy executable to Linux folder
! Path executableFile = root.resolve(getLauncherName(p));
try (InputStream is_launcher =
getResourceAsStream("jpackageapplauncher")) {
writeEntry(is_launcher, executableFile);
}
executableFile.toFile().setExecutable(true, false);
executableFile.toFile().setWritable(true, true);
! writeCfgFile(p, root.resolve(getLauncherCfgName(p)).toFile(),
"$APPDIR/runtime");
}
private void copyIcon() throws IOException {
File icon = ICON_PNG.fetchFrom(params);
--- 198,220 ----
}
@Override
public void prepareJreFiles() throws IOException {}
! private void createLauncherForEntryPoint(
! Map<String, ? super Object> params) throws IOException {
// Copy executable to Linux folder
! Path executableFile = root.resolve(getLauncherName(params));
try (InputStream is_launcher =
getResourceAsStream("jpackageapplauncher")) {
writeEntry(is_launcher, executableFile);
}
executableFile.toFile().setExecutable(true, false);
executableFile.toFile().setWritable(true, true);
! writeCfgFile(params, root.resolve(getLauncherCfgName(params)).toFile(),
"$APPDIR/runtime");
}
private void copyIcon() throws IOException {
File icon = ICON_PNG.fetchFrom(params);
< prev index next >