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

kenneth_suter
25.10.2007 a56f339b579be6f7a1b28eadf68426ebc5bddb03
reverting earlier edit to launchers since it broke the GUI applications
4 files modified
23 ■■■■■ changed files
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/Launcher.java 17 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/InstallLauncher.java 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallLauncher.java 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/upgrader/UpgradeLauncher.java 2 ●●● patch | view | raw | blame | history
opendj-sdk/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;
  }
  /**
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/InstallLauncher.java
@@ -49,7 +49,7 @@
   * will pass to the org.opends.server.tools.InstallDS class.
   */
  public static void main(String[] args) {
    System.exit(new InstallLauncher(args).launch());
    new InstallLauncher(args).launch();
  }
  /**
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallLauncher.java
@@ -48,7 +48,7 @@
   * will pass to the org.opends.server.tools.InstallDS class.
   */
  public static void main(String[] args) {
    System.exit(new UninstallLauncher(args).launch());
    new UninstallLauncher(args).launch();
  }
  /**
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/upgrader/UpgradeLauncher.java
@@ -46,7 +46,7 @@
   * will pass to the org.opends.server.tools.InstallDS class.
   */
  public static void main(String[] args) {
    System.exit(new UpgradeLauncher(args).launch());
    new UpgradeLauncher(args).launch();
  }
  /**