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

kenneth_suter
24.25.2007 77eebebe9004fbcedd79da2c5fe729a875f82281
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/Launcher.java
@@ -114,7 +114,6 @@
   */
  protected void printUsage(String i18nMsg) {
    System.err.println(i18nMsg);
    System.exit(QuickSetupCli.USER_DATA_ERROR);
  }
  /**
@@ -234,26 +233,24 @@
  /**
   * The main method which is called by the uninstall command lines.
   * @return int exit code that should be returned upon exit of this program
   */
  public void launch() {
  public int launch() {
    int exitCode = 0;
    if (shouldPrintUsage()) {
      printUsage();
      exitCode = QuickSetupCli.USER_DATA_ERROR;
    } else if (isCli()) {
      int exitCode = launchCli(args, createCliApplication());
      if (exitCode != 0) {
        System.exit(exitCode);
      }
      exitCode = launchCli(args, createCliApplication());
    } else {
      willLaunchGui();
      int exitCode = launchGui(args);
      exitCode = launchGui(args);
      if (exitCode != 0) {
        guiLaunchFailed();
        exitCode = launchCli(args, createCliApplication());
        if (exitCode != 0) {
          System.exit(exitCode);
        }
      }
    }
    return exitCode;
  }
  /**