< prev index next >
src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxAppImageBuilder.java
Print this page
*** 44,54 ****
private static final ResourceBundle I18N = ResourceBundle.getBundle(
"jdk.jpackage.internal.resources.LinuxResources");
private static final String LIBRARY_NAME = "libapplauncher.so";
! private final static String DEFAULT_ICON = "java32.png";
private final Path root;
private final Path appDir;
private final Path appModsDir;
private final Path runtimeDir;
--- 44,54 ----
private static final ResourceBundle I18N = ResourceBundle.getBundle(
"jdk.jpackage.internal.resources.LinuxResources");
private static final String LIBRARY_NAME = "libapplauncher.so";
! final static String DEFAULT_ICON = "java32.png";
private final Path root;
private final Path appDir;
private final Path appModsDir;
private final Path runtimeDir;
*** 104,126 ****
private void writeEntry(InputStream in, Path dstFile) throws IOException {
Files.createDirectories(dstFile.getParent());
Files.copy(in, dstFile);
}
! // 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 getLauncherRelativePath(
! Map<String, ? super Object> params) {
! return "bin" + File.separator + APP_NAME.fetchFrom(params);
! }
!
! private static String getLauncherName(Map<String, ? super Object> params) {
return APP_NAME.fetchFrom(params);
}
public static String getLauncherCfgName(
Map<String, ? super Object> params) {
--- 104,114 ----
private void writeEntry(InputStream in, Path dstFile) throws IOException {
Files.createDirectories(dstFile.getParent());
Files.copy(in, dstFile);
}
! public static String getLauncherName(Map<String, ? super Object> params) {
return APP_NAME.fetchFrom(params);
}
public static String getLauncherCfgName(
Map<String, ? super Object> params) {
< prev index next >