< prev index next >

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

Print this page

        

*** 392,405 **** throw new RuntimeException(MessageFormat.format( getString("error.cannot-write-to-output-dir"), outdir.getAbsolutePath())); } ! if (WindowsDefender.isThereAPotentialWindowsDefenderIssue()) { Log.error(MessageFormat.format( getString("message.potential.windows.defender.issue"), ! WindowsDefender.getUserTempDirectory())); } // validate we have valid tools before continuing String iscc = TOOL_INNO_SETUP_COMPILER_EXECUTABLE.fetchFrom(p); if (iscc == null || !new File(iscc).isFile()) { --- 392,410 ---- throw new RuntimeException(MessageFormat.format( getString("error.cannot-write-to-output-dir"), outdir.getAbsolutePath())); } ! String tempDirectory = WindowsDefender.getUserTempDirectory(); ! if (Arguments.CLIOptions.context().userProvidedBuildRoot) { ! tempDirectory = BUILD_ROOT.fetchFrom(p).getAbsolutePath(); ! } ! if (WindowsDefender.isThereAPotentialWindowsDefenderIssue( ! tempDirectory)) { Log.error(MessageFormat.format( getString("message.potential.windows.defender.issue"), ! tempDirectory)); } // validate we have valid tools before continuing String iscc = TOOL_INNO_SETUP_COMPILER_EXECUTABLE.fetchFrom(p); if (iscc == null || !new File(iscc).isFile()) {
< prev index next >