mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
05.40.2007 4fab9c68f1e4755b7381ecf9bd86c8b30417bd8f
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/offline/OfflineInstaller.java
@@ -74,6 +74,8 @@
  private HashMap<InstallProgressStep, Message> hmSummary =
      new HashMap<InstallProgressStep, Message>();
  private ApplicationException runError;
  private static final Logger LOG =
    Logger.getLogger(OfflineInstaller.class.getName());
  /**
@@ -82,12 +84,13 @@
   */
  public void run()
  {
    initMaps();
    runError = null;
    PrintStream origErr = System.err;
    PrintStream origOut = System.out;
    try
    {
      initMaps();
      System.setErr(getApplicationErrorStream());
      System.setOut(getApplicationOutputStream());
@@ -181,6 +184,7 @@
        notifyListeners(html);
        LOG.log(Level.SEVERE, "Error installing.", ex);
      }
      runError = ex;
    }
    catch (Throwable t)
    {
@@ -203,9 +207,13 @@
      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);
    }
  }
  /**
@@ -225,6 +233,14 @@
  }
  /**
   * {@inheritDoc}
   */
  public ApplicationException getRunError()
  {
    return runError;
  }
  /**
   * Called when the user elects to cancel this operation.
   */
  protected void uninstall() {