| | |
| | | private HashMap<InstallProgressStep, Message> hmSummary = |
| | | new HashMap<InstallProgressStep, Message>(); |
| | | |
| | | private ApplicationException runError; |
| | | |
| | | private static final Logger LOG = |
| | | Logger.getLogger(OfflineInstaller.class.getName()); |
| | | /** |
| | |
| | | */ |
| | | public void run() |
| | | { |
| | | initMaps(); |
| | | runError = null; |
| | | PrintStream origErr = System.err; |
| | | PrintStream origOut = System.out; |
| | | |
| | | try |
| | | { |
| | | initMaps(); |
| | | |
| | | System.setErr(getApplicationErrorStream()); |
| | | System.setOut(getApplicationOutputStream()); |
| | | |
| | |
| | | notifyListeners(html); |
| | | LOG.log(Level.SEVERE, "Error installing.", ex); |
| | | } |
| | | runError = ex; |
| | | } |
| | | catch (Throwable t) |
| | | { |
| | |
| | | Message msg = getFormattedError(ex, true); |
| | | notifyListeners(msg); |
| | | LOG.log(Level.SEVERE, "Error installing.", t); |
| | | runError = ex; |
| | | } |
| | | System.setErr(origErr); |
| | | System.setOut(origOut); |
| | | finally |
| | | { |
| | | System.setErr(origErr); |
| | | System.setOut(origOut); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public ApplicationException getRunError() |
| | | { |
| | | return runError; |
| | | } |
| | | |
| | | /** |
| | | * Called when the user elects to cancel this operation. |
| | | */ |
| | | protected void uninstall() { |