OPENDJ-2622 Remove setup temp log file if successful
Remove the temporary setup file if setup was successful also in GUI
mode.
Just delete the file at the end of the OfflineInstaller.run() method because
both setups type used it.
| | |
| | | updateSummaryWithServerState(hmSummary, true); |
| | | setCurrentProgressStep(InstallProgressStep.FINISHED_SUCCESSFULLY); |
| | | notifyListeners(null); |
| | | |
| | | tempLogFile.deleteLogFileAfterSuccess(); |
| | | } catch (ApplicationException ex) |
| | | { |
| | | logger.error(LocalizableMessage.raw("Caught exception: "+ex, ex)); |
| | |
| | | final PrintStream err = NullOutputStream.wrapOrNullStream(errStream); |
| | | final InstallDS install = new InstallDS(out, err, inStream, tempLogFile); |
| | | |
| | | int retCode = install.execute(args); |
| | | if (retCode == 0) |
| | | { |
| | | tempLogFile.deleteLogFileAfterSuccess(); |
| | | } |
| | | return retCode; |
| | | return install.execute(args); |
| | | } |
| | | |
| | | /** |