< prev index next >

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

Print this page

        

*** 78,98 **** private final Map<String, ? super Object> params; public static final BundlerParamInfo<Boolean> REBRAND_EXECUTABLE = new WindowsBundlerParam<>( - I18N.getString("param.rebrand-executable.name"), - I18N.getString("param.rebrand-executable.description"), "win.launcher.rebrand", Boolean.class, params -> Boolean.TRUE, (s, p) -> Boolean.valueOf(s)); public static final BundlerParamInfo<File> ICON_ICO = new StandardBundlerParam<>( - I18N.getString("param.icon-ico.name"), - I18N.getString("param.icon-ico.description"), "icon.ico", File.class, params -> { File f = ICON.fetchFrom(params); if (f != null && !f.getName().toLowerCase().endsWith(".ico")) { --- 78,94 ----
*** 104,115 **** }, (s, p) -> new File(s)); public static final StandardBundlerParam<Boolean> CONSOLE_HINT = new WindowsBundlerParam<>( - I18N.getString("param.console-hint.name"), - I18N.getString("param.console-hint.description"), Arguments.CLIOptions.WIN_CONSOLE_HINT.getId(), Boolean.class, params -> false, // valueOf(null) is false, // and we actually do want null in some cases --- 100,109 ----
*** 254,266 **** Files.copy(is_lib, root.resolve(LIBRARY_NAME)); } copyMSVCDLLs(); ! // create the secondary launchers, if any 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); createLauncherForEntryPoint(tmp); } --- 248,260 ---- Files.copy(is_lib, root.resolve(LIBRARY_NAME)); } copyMSVCDLLs(); ! // create the additional launcher(s), if any List<Map<String, ? super Object>> entryPoints = ! StandardBundlerParam.ADD_LAUNCHERS.fetchFrom(params); for (Map<String, ? super Object> entryPoint : entryPoints) { Map<String, ? super Object> tmp = new HashMap<>(originalParams); tmp.putAll(entryPoint); createLauncherForEntryPoint(tmp); }
*** 387,397 **** // Update branding of EXE file if (REBRAND_EXECUTABLE.fetchFrom(p)) { try { String tempDirectory = WindowsDefender.getUserTempDirectory(); if (Arguments.CLIOptions.context().userProvidedBuildRoot) { ! tempDirectory = BUILD_ROOT.fetchFrom(p).getAbsolutePath(); } if (WindowsDefender.isThereAPotentialWindowsDefenderIssue( tempDirectory)) { Log.error(MessageFormat.format(I18N.getString( "message.potential.windows.defender.issue"), --- 381,391 ---- // Update branding of EXE file if (REBRAND_EXECUTABLE.fetchFrom(p)) { try { String tempDirectory = WindowsDefender.getUserTempDirectory(); if (Arguments.CLIOptions.context().userProvidedBuildRoot) { ! tempDirectory = TEMP_ROOT.fetchFrom(p).getAbsolutePath(); } if (WindowsDefender.isThereAPotentialWindowsDefenderIssue( tempDirectory)) { Log.error(MessageFormat.format(I18N.getString( "message.potential.windows.defender.issue"),
< prev index next >