| | |
| | | * 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 |
| | |
| | | * @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 |