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

kenneth_suter
25.10.2007 8f1963b2a3e26e22cd5795ad79c4119271839023
opends/src/quicksetup/org/opends/quicksetup/Launcher.java
@@ -114,6 +114,7 @@
   */
  protected void printUsage(String i18nMsg) {
    System.err.println(i18nMsg);
    System.exit(QuickSetupCli.USER_DATA_ERROR);
  }
  /**
@@ -233,24 +234,26 @@
  /**
   * 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 int launch() {
    int exitCode = 0;
  public void launch() {
    if (shouldPrintUsage()) {
      printUsage();
      exitCode = QuickSetupCli.USER_DATA_ERROR;
    } else if (isCli()) {
      exitCode = launchCli(args, createCliApplication());
      int exitCode = launchCli(args, createCliApplication());
      if (exitCode != 0) {
        System.exit(exitCode);
      }
    } else {
      willLaunchGui();
      exitCode = launchGui(args);
      int exitCode = launchGui(args);
      if (exitCode != 0) {
        guiLaunchFailed();
        exitCode = launchCli(args, createCliApplication());
        if (exitCode != 0) {
          System.exit(exitCode);
        }
      }
    }
    return exitCode;
  }
  /**