< prev index next >

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

Print this page

        

*** 156,174 **** // 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_FS_NAME.fetchFrom(p)); } public static String getLauncherName(Map<String, ? super Object> p) { ! return APP_FS_NAME.fetchFrom(p); } public static String getLauncherCfgName(Map<String, ? super Object> p) { ! return "app/" + APP_FS_NAME.fetchFrom(p) + ".cfg"; } @Override public Path getAppDir() { return appDir; --- 156,174 ---- // 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;
*** 195,207 **** List<Map<String, ? super Object>> entryPoints = StandardBundlerParam.SECONDARY_LAUNCHERS.fetchFrom(params); for (Map<String, ? super Object> entryPoint : entryPoints) { Map<String, ? super Object> tmp = new HashMap<>(originalParams); tmp.putAll(entryPoint); - // remove name.fs that was calculated for main launcher. - // otherwise, wrong launcher name will be selected. - tmp.remove(APP_FS_NAME.getID()); createLauncherForEntryPoint(tmp, root); } // Copy class path entries to Java folder copyApplication(); --- 195,204 ----
*** 231,241 **** private void copyIcon() throws IOException { File icon = ICON_PNG.fetchFrom(params); if (icon != null) { File iconTarget = new File(resourcesDir.toFile(), ! APP_FS_NAME.fetchFrom(params) + ".png"); IOUtils.copyFile(icon, iconTarget); } } private void copyApplication() throws IOException { --- 228,238 ---- private void copyIcon() throws IOException { File icon = ICON_PNG.fetchFrom(params); if (icon != null) { File iconTarget = new File(resourcesDir.toFile(), ! APP_NAME.fetchFrom(params) + ".png"); IOUtils.copyFile(icon, iconTarget); } } private void copyApplication() throws IOException {
< prev index next >