standardized the tools various option forms for suppressing output to -Q/--quiet
| | |
| | | UninstallUserData userData = new UninstallUserData(); |
| | | |
| | | boolean isInteractive; |
| | | boolean isSilent; |
| | | boolean isQuiet; |
| | | boolean isCancelled = false; |
| | | |
| | | /* Step 1: analyze the arguments. |
| | |
| | | |
| | | isInteractive = args.isInteractive(); |
| | | |
| | | isSilent = args.isSilent(); |
| | | isQuiet = args.isQuiet(); |
| | | |
| | | userData.setSilent(isSilent); |
| | | userData.setQuiet(isQuiet); |
| | | userData.setForceOnError(args.isForceOnError()); |
| | | userData.setTrustManager(args.getTrustManager()); |
| | | |
| | |
| | | * @return <CODE>true</CODE> if the user wants to continue with uninstall and |
| | | * <CODE>false</CODE> otherwise. |
| | | * @throws UserDataException if there is a problem with the data |
| | | * provided by the user (in the particular case where we are on silent |
| | | * provided by the user (in the particular case where we are on quiet |
| | | * uninstall and some data is missing or not valid). |
| | | */ |
| | | private boolean checkServerState(UninstallUserData userData, |
| | |
| | | { |
| | | if (confirmToUpdateRemoteAndStart()) |
| | | { |
| | | boolean startWorked = startServer(userData.isSilent()); |
| | | boolean startWorked = startServer(userData.isQuiet()); |
| | | // Ask for authentication if needed, etc. |
| | | if (startWorked) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | boolean startWorked = startServer(userData.isSilent()); |
| | | boolean startWorked = startServer(userData.isQuiet()); |
| | | // Ask for authentication if needed, etc. |
| | | if (startWorked) |
| | | { |
| | |
| | | { |
| | | private BooleanArgument interactive; |
| | | private BooleanArgument forceOnError; |
| | | private BooleanArgument silent; |
| | | private BooleanArgument quiet; |
| | | private BooleanArgument removeAll; |
| | | private BooleanArgument removeServerLibraries; |
| | | private BooleanArgument removeDatabases; |
| | |
| | | "forceOnError", |
| | | INFO_UNINSTALLDS_DESCRIPTION_FORCE.get()); |
| | | args.add(forceOnError); |
| | | silent = new BooleanArgument( |
| | | SecureConnectionCliParser.SILENT_OPTION_LONG, |
| | | SecureConnectionCliParser.SILENT_OPTION_SHORT, |
| | | SecureConnectionCliParser.SILENT_OPTION_LONG, |
| | | quiet = new BooleanArgument( |
| | | SecureConnectionCliParser.QUIET_OPTION_LONG, |
| | | SecureConnectionCliParser.QUIET_OPTION_SHORT, |
| | | SecureConnectionCliParser.QUIET_OPTION_LONG, |
| | | INFO_UNINSTALLDS_DESCRIPTION_SILENT.get()); |
| | | args.add(silent); |
| | | args.add(quiet); |
| | | |
| | | adminUidArg = new StringArgument("adminUID", 'I', |
| | | "adminUID", false, false, true, "adminUID", |
| | |
| | | } |
| | | |
| | | /** |
| | | * Tells whether the user specified to have a silent uninstall or not. |
| | | * Tells whether the user specified to have a quiet uninstall or not. |
| | | * This method must be called after calling parseArguments. |
| | | * @return <CODE>true</CODE> if the user specified to have a silent |
| | | * @return <CODE>true</CODE> if the user specified to have a quiet |
| | | * uninstall and <CODE>false</CODE> otherwise. |
| | | */ |
| | | public boolean isSilent() |
| | | public boolean isQuiet() |
| | | { |
| | | return silent.isPresent(); |
| | | return quiet.isPresent(); |
| | | } |
| | | |
| | | /** |
| | |
| | | install. If not specified the graphical interface will be launched. The \ |
| | | rest of the options (excluding help and version) will only be taken into \ |
| | | account if this option is specified |
| | | INFO_UNINSTALLDS_DESCRIPTION_SILENT=Perform a silent uninstall (no \ |
| | | INFO_UNINSTALLDS_DESCRIPTION_SILENT=Perform a quiet uninstall (no \ |
| | | progress information is written to the standard output) |
| | | INFO_UNINSTALLDS_DESCRIPTION_REMOVE_ALL=Remove all components of \ |
| | | OpenDS (this option is not compatible with the rest of remove options) |
| | |
| | | started properly |
| | | INFO_INSTALLDS_DESCRIPTION_PROGNAME_486=The setup command used to invoke this \ |
| | | program |
| | | INFO_INSTALLDS_DESCRIPTION_SILENT_489=Perform a silent installation |
| | | INFO_INSTALLDS_DESCRIPTION_SILENT_489=Perform a quiet installation |
| | | INFO_INSTALLDS_DESCRIPTION_BASEDN_490=Specifies the base DN for user \ |
| | | information in the Directory Server. Multiple base DNs may be provided by \ |
| | | using this option multiple times |
| | |
| | | INFO_INSTALLDS_PROMPT_ROOT_DN_512=What would you like to use as the initial \ |
| | | root user DN for the Directory Server? |
| | | SEVERE_ERR_INSTALLDS_NO_ROOT_PASSWORD_513=ERROR: No password was provided \ |
| | | for the initial root user. When performing a silent installation, this must \ |
| | | for the initial root user. When performing a quiet installation, this must \ |
| | | be provided using either the %s or the %s argument |
| | | INFO_INSTALLDS_PROMPT_ROOT_PASSWORD_514=Please provide the password to use \ |
| | | for the initial root user |
| | |
| | | line version of this tool |
| | | INFO_UPGRADE_DESCRIPTION_INTERACTIVE_1191=Prompt for any required information \ |
| | | rather than fail |
| | | INFO_UPGRADE_DESCRIPTION_SILENT_1192=Perform a silent upgrade |
| | | INFO_UPGRADE_DESCRIPTION_SILENT_1192=Perform a quiet upgrade |
| | | INFO_LDIFIMPORT_DESCRIPTION_COUNT_REJECTS_1195=Count the number of entries \ |
| | | rejected by the server and return that value as the exit code (values > 255 \ |
| | | will be reduced to 255 due to exit code restrictions) |
| | |
| | | reverted to the state before the most recent upgrade |
| | | INFO_REVERT_DESCRIPTION_INTERACTIVE_1221=Prompt for any required information \ |
| | | rather than fail |
| | | INFO_REVERT_DESCRIPTION_SILENT_1222=Perform a silent reversion |
| | | INFO_REVERT_DESCRIPTION_SILENT_1222=Perform a quiet reversion |
| | | SEVERE_ERR_DSCFG_ERROR_MISSING_NON_INTERACTIVE_ARG_1223=The argument "--%s" \ |
| | | must be specified when this application is used non-interactively |
| | | SEVERE_ERR_DSCFG_ERROR_CANNOT_READ_CONSOLE_INPUT_1224=The response could not \ |
| | |
| | | /** |
| | | * Makes available a <code>UserInteraction</code> class that can be used |
| | | * by the application to interact with the user. If the user has requested |
| | | * a silent session this method returns null. |
| | | * a quiet session this method returns null. |
| | | * @return UserInteraction object |
| | | */ |
| | | public UserInteraction userInteraction() { |
| | | // Note: overridden in GuiApplication |
| | | UserInteraction ui = null; |
| | | if (!getUserData().isSilent()) { |
| | | if (!getUserData().isQuiet()) { |
| | | ui = new CliUserInteraction(); |
| | | } |
| | | return ui; |
| | |
| | | |
| | | private BooleanArgument interactiveArg = null; |
| | | |
| | | private BooleanArgument silentArg = null; |
| | | private BooleanArgument quietArg = null; |
| | | |
| | | /** |
| | | * Interactively prompts (on standard output) the user to provide a string |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns <CODE>true</CODE> if this is a silent uninstall and |
| | | * Returns <CODE>true</CODE> if this is a quiet uninstall and |
| | | * <CODE>false</CODE> otherwise. |
| | | * @param args the arguments passed in the command line. |
| | | * @return <CODE>true</CODE> if this is a silent uninstall and |
| | | * @return <CODE>true</CODE> if this is a quiet uninstall and |
| | | * <CODE>false</CODE> otherwise. |
| | | */ |
| | | protected boolean isSilent(String[] args) |
| | | protected boolean isQuiet(String[] args) |
| | | { |
| | | boolean isSilent = false; |
| | | for (int i=0; i<args.length && !isSilent; i++) |
| | | boolean isQuiet = false; |
| | | for (int i=0; i<args.length && !isQuiet; i++) |
| | | { |
| | | if (args[i].equalsIgnoreCase("--silentUninstall") || |
| | | args[i].equalsIgnoreCase("-s")) |
| | | if (args[i].equalsIgnoreCase("--quiet") || |
| | | args[i].equalsIgnoreCase("-Q")) |
| | | { |
| | | isSilent = true; |
| | | isQuiet = true; |
| | | } |
| | | } |
| | | return isSilent; |
| | | return isQuiet; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns <CODE>true</CODE> if this is a silent session and |
| | | * Returns <CODE>true</CODE> if this is a quiet session and |
| | | * <CODE>false</CODE> otherwise. This method relies on the a previous |
| | | * call to createArgumentParser having been made and the parser |
| | | * having been used to parse the arguments. |
| | | * @return <CODE>true</CODE> if this is a silent uninstall and |
| | | * @return <CODE>true</CODE> if this is a quiet uninstall and |
| | | * <CODE>false</CODE> otherwise. |
| | | */ |
| | | protected boolean isSilent() { |
| | | return silentArg != null && silentArg.isPresent(); |
| | | protected boolean isQuiet() { |
| | | return quietArg != null && quietArg.isPresent(); |
| | | } |
| | | |
| | | /** |
| | |
| | | null); |
| | | argParser.addArgument(interactiveArg); |
| | | |
| | | silentArg = |
| | | quietArg = |
| | | new BooleanArgument("silent session", |
| | | SecureConnectionCliParser.SILENT_OPTION_SHORT, |
| | | SecureConnectionCliParser.SILENT_OPTION_LONG, |
| | | SecureConnectionCliParser.QUIET_OPTION_SHORT, |
| | | SecureConnectionCliParser.QUIET_OPTION_LONG, |
| | | null); |
| | | argParser.addArgument(silentArg); |
| | | argParser.addArgument(quietArg); |
| | | |
| | | } catch (ArgumentException e) { |
| | | LOG.log(Level.INFO, "error", e); |
| | |
| | | private void preExit(CliApplication cliApp) { |
| | | if (cliApp != null) { |
| | | UserData ud = cliApp.getUserData(); |
| | | if (ud != null && !ud.isSilent()) { |
| | | if (ud != null && !ud.isQuiet()) { |
| | | |
| | | // Add an extra space systematically |
| | | System.out.println(); |
| | |
| | | new PlainTextProgressMessageFormatter(); |
| | | cliApp.setUserData(userData); |
| | | cliApp.setProgressMessageFormatter(formatter); |
| | | if (!userData.isSilent()) { |
| | | if (!userData.isQuiet()) { |
| | | cliApp.addProgressUpdateListener( |
| | | new ProgressUpdateListener() { |
| | | public void progressUpdate(ProgressUpdateEvent ev) { |
| | |
| | | |
| | | private Map<ServerDescriptor, Integer> remoteWithNoReplicationPort; |
| | | |
| | | private boolean silent; |
| | | private boolean quiet; |
| | | |
| | | private boolean interactive; |
| | | |
| | |
| | | /** |
| | | * Sets whether or not this session should print messages to the |
| | | * console if in CLI mode. |
| | | * @param silent where true indicates this sesssion should be silent |
| | | * @param quiet where true indicates this sesssion should be quiet |
| | | */ |
| | | public void setSilent(boolean silent) { |
| | | this.silent = silent; |
| | | public void setQuiet(boolean quiet) { |
| | | this.quiet = quiet; |
| | | } |
| | | |
| | | /** |
| | | * Indicates whether or not the user has requested silent mode. |
| | | * Indicates whether or not the user has requested quiet mode. |
| | | * <p> |
| | | * Silent mode in the CLI means that nothing is written to output including |
| | | * Quiet mode in the CLI means that nothing is written to output including |
| | | * prompts for information and whether or not to continue an operation |
| | | * experiencing errors. |
| | | * |
| | | * @return boolean where true indicates this session should be silent. |
| | | * @return boolean where true indicates this session should be quiet. |
| | | */ |
| | | public boolean isSilent() { |
| | | return this.silent; |
| | | public boolean isQuiet() { |
| | | return this.quiet; |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return boolean where true indicates this session should be interactive |
| | | */ |
| | | public boolean isInteractive() { |
| | | return !this.silent && this.interactive; |
| | | return !this.quiet && this.interactive; |
| | | } |
| | | |
| | | /** |
| | |
| | | BooleanArgument addBaseEntry; |
| | | BooleanArgument cliMode; |
| | | BooleanArgument showUsage; |
| | | BooleanArgument silentInstall; |
| | | BooleanArgument quietInstall; |
| | | BooleanArgument skipPortCheck; |
| | | BooleanArgument enableWindowsService; |
| | | FileBasedArgument rootPWFile; |
| | |
| | | INFO_INSTALLDS_DESCRIPTION_CLI.get()); |
| | | argParser.addArgument(cliMode); |
| | | |
| | | silentInstall = new BooleanArgument("silent", 's', "silentInstall", |
| | | quietInstall = new BooleanArgument("quiet", |
| | | OPTION_SHORT_QUIET, |
| | | OPTION_LONG_QUIET, |
| | | INFO_INSTALLDS_DESCRIPTION_SILENT.get()); |
| | | argParser.addArgument(silentInstall); |
| | | argParser.addArgument(quietInstall); |
| | | |
| | | baseDN = new StringArgument("basedn", OPTION_SHORT_BASEDN, |
| | | OPTION_LONG_BASEDN, false, true, true, |
| | |
| | | */ |
| | | public UserInteraction userInteraction() { |
| | | UserInteraction ui = null; |
| | | if (!getUserData().isSilent()) { |
| | | if (!getUserData().isQuiet()) { |
| | | if (Utils.isCli()) { |
| | | ui = new CliUserInteraction(); |
| | | } else { |
| | |
| | | throws UserDataException { |
| | | UpgradeUserData uud = super.createUserData(args); |
| | | |
| | | // Build extractor is always silent whether user |
| | | // Build extractor is always quiet whether user |
| | | // has specified this or not. |
| | | uud.setSilent(true); |
| | | uud.setQuiet(true); |
| | | |
| | | if (localInstallPackFileNameArg.isPresent()) { |
| | | String localInstallPackFileName = |
| | |
| | | import org.opends.server.util.args.FileBasedArgument; |
| | | import org.opends.server.util.ServerConstants; |
| | | import static org.opends.messages.ToolMessages.*; |
| | | import static org.opends.server.tools.ToolConstants.OPTION_SHORT_HELP; |
| | | import static org.opends.server.tools.ToolConstants.OPTION_LONG_HELP; |
| | | import static org.opends.server.tools.ToolConstants.*; |
| | | |
| | | import java.io.File; |
| | | |
| | |
| | | private BooleanArgument showUsage; |
| | | private FileBasedArgument dir; |
| | | private BooleanArgument mostRecent; |
| | | private BooleanArgument silent; |
| | | private BooleanArgument quiet; |
| | | private BooleanArgument interactive; |
| | | |
| | | /** |
| | |
| | | INFO_REVERT_DESCRIPTION_INTERACTIVE.get()); |
| | | argParser.addArgument(interactive); |
| | | |
| | | silent = new BooleanArgument("silent", 's', "silent", |
| | | quiet = new BooleanArgument("quiet", |
| | | OPTION_SHORT_QUIET, |
| | | OPTION_LONG_QUIET, |
| | | INFO_REVERT_DESCRIPTION_SILENT.get()); |
| | | argParser.addArgument(silent); |
| | | argParser.addArgument(quiet); |
| | | |
| | | showUsage = new BooleanArgument("showusage", OPTION_SHORT_HELP, |
| | | OPTION_LONG_HELP, |
| | |
| | | INFO_UPGRADE_LAUNCHER_USAGE_DESCRIPTION.get(), false); |
| | | BooleanArgument showUsage; |
| | | FileBasedArgument file; |
| | | BooleanArgument silent; |
| | | BooleanArgument quiet; |
| | | BooleanArgument interactive; |
| | | try |
| | | { |
| | |
| | | SecureConnectionCliParser.INTERACTIVE_OPTION_LONG, |
| | | INFO_UPGRADE_DESCRIPTION_INTERACTIVE.get()); |
| | | argParser.addArgument(interactive); |
| | | silent = new BooleanArgument( |
| | | SecureConnectionCliParser.SILENT_OPTION_LONG, |
| | | SecureConnectionCliParser.SILENT_OPTION_SHORT, |
| | | SecureConnectionCliParser.SILENT_OPTION_LONG, |
| | | quiet = new BooleanArgument( |
| | | SecureConnectionCliParser.QUIET_OPTION_LONG, |
| | | SecureConnectionCliParser.QUIET_OPTION_SHORT, |
| | | SecureConnectionCliParser.QUIET_OPTION_LONG, |
| | | INFO_UPGRADE_DESCRIPTION_SILENT.get()); |
| | | argParser.addArgument(silent); |
| | | argParser.addArgument(quiet); |
| | | showUsage = new BooleanArgument("showusage", OPTION_SHORT_HELP, |
| | | OPTION_LONG_HELP, |
| | | INFO_DESCRIPTION_USAGE.get()); |
| | |
| | | ArgumentParser ap = createArgumentParser(); |
| | | try { |
| | | ap.parseArguments(args); |
| | | uud.setSilent(isSilent()); |
| | | uud.setQuiet(isQuiet()); |
| | | uud.setInteractive(isInteractive()); |
| | | |
| | | // There is no need to check/validate the file argument |
| | |
| | | static public final Character INTERACTIVE_OPTION_SHORT = 'i'; |
| | | |
| | | /** Long form of the option for specifying a noninteractive session. */ |
| | | static public final String SILENT_OPTION_LONG = "silent"; |
| | | static public final String QUIET_OPTION_LONG = "quiet"; |
| | | |
| | | /** Long form of the option for specifying a noninteractive session. */ |
| | | static public final String INTERACTIVE_OPTION_LONG = "interactive"; |
| | | |
| | | /** Short form of the option for specifying a noninteractive session. */ |
| | | static public final Character SILENT_OPTION_SHORT = 's'; |
| | | static public final Character QUIET_OPTION_SHORT = 'Q'; |
| | | |
| | | /** |
| | | * The tracer object for the debug logger. |
| | |
| | | argParser.addArgument(isEncrypted); |
| | | |
| | | |
| | | quietMode = new BooleanArgument("quietmode", 'Q', "quiet", |
| | | quietMode = new BooleanArgument("quietmode", OPTION_SHORT_QUIET, |
| | | OPTION_LONG_QUIET, |
| | | INFO_LDIFIMPORT_DESCRIPTION_QUIET.get()); |
| | | argParser.addArgument(quietMode); |
| | | |
| | |
| | | BooleanArgument cliMode; |
| | | BooleanArgument testOnly; |
| | | BooleanArgument showUsage; |
| | | BooleanArgument silentInstall; |
| | | BooleanArgument quietInstall; |
| | | BooleanArgument skipPortCheck; |
| | | BooleanArgument enableWindowsService; |
| | | FileBasedArgument rootPWFile; |
| | |
| | | INFO_INSTALLDS_DESCRIPTION_CLI.get()); |
| | | argParser.addArgument(cliMode); |
| | | |
| | | silentInstall = new BooleanArgument( |
| | | "silent", 's', "silentInstall", |
| | | quietInstall = new BooleanArgument( |
| | | "quiet", OPTION_SHORT_QUIET, |
| | | OPTION_LONG_QUIET, |
| | | INFO_INSTALLDS_DESCRIPTION_SILENT.get()); |
| | | argParser.addArgument(silentInstall); |
| | | argParser.addArgument(quietInstall); |
| | | |
| | | baseDN = new StringArgument( |
| | | "basedn", OPTION_SHORT_BASEDN, |
| | |
| | | String configClassName = configClass.getValue(); |
| | | |
| | | |
| | | // If this isn't a silent install, then print the version string. |
| | | if (! silentInstall.isPresent()) |
| | | // If this isn't a quiet install, then print the version string. |
| | | if (! quietInstall.isPresent()) |
| | | { |
| | | System.out.println(versionString); |
| | | System.out.println(); |
| | |
| | | |
| | | // Determine the LDAP port number. |
| | | int ldapPortNumber; |
| | | if (silentInstall.isPresent() || ldapPort.isPresent()) |
| | | if (quietInstall.isPresent() || ldapPort.isPresent()) |
| | | { |
| | | try |
| | | { |
| | |
| | | |
| | | // Determine the JMX port number. |
| | | int jmxPortNumber; |
| | | if (silentInstall.isPresent() || jmxPort.isPresent()) |
| | | if (quietInstall.isPresent() || jmxPort.isPresent()) |
| | | { |
| | | try |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | else if (silentInstall.isPresent()) |
| | | else if (quietInstall.isPresent()) |
| | | { |
| | | rootDNs = new LinkedList<DN>(); |
| | | try |
| | |
| | | { |
| | | rootPassword = rootPWFile.getValue(); |
| | | } |
| | | else if (silentInstall.isPresent()) |
| | | else if (quietInstall.isPresent()) |
| | | { |
| | | Message message = ERR_INSTALLDS_NO_ROOT_PASSWORD.get( |
| | | rootPWString.getLongIdentifier(), |
| | |
| | | } |
| | | } |
| | | } |
| | | else if (silentInstall.isPresent()) |
| | | else if (quietInstall.isPresent()) |
| | | { |
| | | try |
| | | { |
| | |
| | | return 1; |
| | | } |
| | | } |
| | | else if (silentInstall.isPresent()) |
| | | else if (quietInstall.isPresent()) |
| | | { |
| | | populateType = POPULATE_TYPE_LEAVE_EMPTY; |
| | | } |
| | |
| | | // If we are in Windows ask if the server must run as a windows service. |
| | | if (SetupUtils.isWindows()) |
| | | { |
| | | if (silentInstall.isPresent()) |
| | | if (quietInstall.isPresent()) |
| | | { |
| | | enableService = enableWindowsService.isPresent(); |
| | | } |
| | |
| | | String[] configureDSArguments = new String[argList.size()]; |
| | | argList.toArray(configureDSArguments); |
| | | |
| | | if (! silentInstall.isPresent()) |
| | | if (! quietInstall.isPresent()) |
| | | { |
| | | System.out.println(); |
| | | |
| | |
| | | if (populateType == POPULATE_TYPE_BASE_ONLY) |
| | | { |
| | | // Create a temporary LDIF file that will hold the entry to add. |
| | | if (! silentInstall.isPresent()) |
| | | if (! quietInstall.isPresent()) |
| | | { |
| | | Message message = INFO_INSTALLDS_STATUS_CREATING_BASE_LDIF.get(); |
| | | System.out.println(wrapText(message, MAX_LINE_WIDTH)); |
| | |
| | | |
| | | if ((ldifFiles != null) && (! ldifFiles.isEmpty())) |
| | | { |
| | | if (! silentInstall.isPresent()) |
| | | if (! quietInstall.isPresent()) |
| | | { |
| | | Message message = INFO_INSTALLDS_STATUS_IMPORTING_LDIF.get(); |
| | | System.out.println(wrapText(message, MAX_LINE_WIDTH)); |
| | |
| | | } |
| | | |
| | | // If we've gotten here, then everything seems to have gone smoothly. |
| | | if (! silentInstall.isPresent()) |
| | | if (! quietInstall.isPresent()) |
| | | { |
| | | Message message = INFO_INSTALLDS_STATUS_SUCCESS.get(); |
| | | System.out.println(wrapText(message, MAX_LINE_WIDTH)); |
| | |
| | | * Value for the server root option long form. |
| | | */ |
| | | public static final String OPTION_LONG_SERVER_ROOT = "serverRoot"; |
| | | |
| | | /** |
| | | * Value for the quiet option short form |
| | | */ |
| | | public static final Character OPTION_SHORT_QUIET = 'Q'; |
| | | |
| | | /** |
| | | * Value for the quiet option long form |
| | | */ |
| | | public static final String OPTION_LONG_QUIET = "quiet"; |
| | | } |
| | | |
| | |
| | | verboseArgument = new BooleanArgument("verbose", 'v', "verbose", |
| | | INFO_DESCRIPTION_VERBOSE.get()); |
| | | |
| | | quietArgument = new BooleanArgument("quiet", 'q', "quiet", |
| | | quietArgument = new BooleanArgument("quiet", 'Q', "quiet", |
| | | INFO_DESCRIPTION_QUIET.get()); |
| | | |
| | | scriptFriendlyArgument = new BooleanArgument("script-friendly", 's', |
| | |
| | | args.add(new File(root, "setup.bat").getPath()); |
| | | } |
| | | args.add("--cli"); |
| | | args.add("-s"); |
| | | args.add("-Q"); |
| | | args.add("-p"); |
| | | args.add(Integer.toString(ldapPort)); |
| | | args.add("-x"); |