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

Jean-Noël Rouvignac
25.17.2016 01bf9b6a5d324d45355659581e9ebbd1280834fe
opendj-server-legacy/src/main/java/org/opends/quicksetup/QuickSetupCli.java
@@ -14,33 +14,30 @@
 * Copyright 2008-2009 Sun Microsystems, Inc.
 * Portions Copyright 2014-2016 ForgeRock AS.
 */
package org.opends.quicksetup;
import static com.forgerock.opendj.cli.Utils.wrapText;
import static com.forgerock.opendj.cli.Utils.*;
import org.forgerock.i18n.LocalizableMessage;
import org.forgerock.i18n.slf4j.LocalizedLogger;
import org.opends.quicksetup.util.ProgressMessageFormatter;
import org.opends.quicksetup.util.PlainTextProgressMessageFormatter;
import org.opends.quicksetup.util.Utils;
import org.opends.quicksetup.event.ProgressUpdateListener;
import org.opends.quicksetup.event.ProgressUpdateEvent;
import org.opends.quicksetup.event.ProgressUpdateListener;
import org.opends.quicksetup.util.PlainTextProgressMessageFormatter;
import org.opends.quicksetup.util.ProgressMessageFormatter;
import org.opends.quicksetup.util.Utils;
import com.forgerock.opendj.cli.ClientException;
/** Class used by Launcher to start a CLI application. */
public class QuickSetupCli {
  /** Arguments passed in the command line. */
  protected Launcher launcher;
  private CliApplication cliApp;
  private UserData userData;
  private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass();
  /** Arguments passed in the command line. */
  private final Launcher launcher;
  private final CliApplication cliApp;
  private UserData userData;
  /**
   * Creates a QuickSetupCli instance.
   * @param cliApp the application to be run
@@ -66,7 +63,7 @@
   * @return the return code (SUCCESSFUL, CANCELLED, USER_DATA_ERROR,
   * ERROR_ACCESSING_FILE_SYSTEM, ERROR_STOPPING_SERVER or BUG.
   */
  public ReturnCode run()
  ReturnCode run()
  {
    ReturnCode returnValue;
    // Parse the arguments