| | |
| | | import com.forgerock.opendj.cli.ArgumentException; |
| | | import com.forgerock.opendj.cli.IntegerArgument; |
| | | import com.forgerock.opendj.cli.StringArgument; |
| | | import com.forgerock.opendj.cli.CLIException; |
| | | import com.forgerock.opendj.cli.ClientException; |
| | | import org.opends.server.util.cli.ConsoleApplication; |
| | | import org.opends.server.util.cli.Menu; |
| | | import org.opends.server.util.cli.MenuBuilder; |
| | |
| | | throw new InitializationException(LocalizableMessage.EMPTY, null); |
| | | } |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.error(LocalizableMessage.raw("Unexpected error: "+ce, ce)); |
| | | throw new InitializationException(LocalizableMessage.EMPTY, null); |
| | |
| | | dns.add(dn); |
| | | prompted = true; |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | | } |
| | |
| | | { |
| | | portNumber = readPort(promptMsg, defaultValue); |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | portNumber = -1; |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | |
| | | prompt = confirmAction(INFO_INSTALLDS_PROVIDE_BASE_DN_PROMPT.get(), |
| | | true); |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | prompt = true; |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | |
| | | importLDIFFiles.add(path); |
| | | } |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | | } |
| | |
| | | readInput(INFO_INSTALLDS_PROMPT_REJECTED_FILE.get(), |
| | | lastResetRejectedFile); |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | | } |
| | |
| | | readInput(INFO_INSTALLDS_PROMPT_SKIPPED_FILE.get(), |
| | | lastResetSkippedFile); |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | | } |
| | |
| | | throw new RuntimeException(); |
| | | } |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | populateType = POPULATE_TYPE_BASE_ONLY; |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | |
| | | println(message); |
| | | } |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | | } |
| | |
| | | rejectedFile = |
| | | readInput(INFO_INSTALLDS_PROMPT_REJECTED_FILE.get(), null); |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | | } |
| | |
| | | skippedFile = |
| | | readInput(INFO_INSTALLDS_PROMPT_SKIPPED_FILE.get(), null); |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | | } |
| | |
| | | INFO_INSTALLDS_PROMPT_LDAPSPORT.get(), usedPorts, false); |
| | | } |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | | } |
| | |
| | | enableStartTLS = confirmAction(INFO_INSTALLDS_ENABLE_STARTTLS.get(), |
| | | defaultValue); |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | | } |
| | |
| | | throw new RuntimeException(); |
| | | } |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | | certType = SELF_SIGNED; |
| | |
| | | false : lastResetEnableWindowsService; |
| | | enableService = confirmAction(message, defaultValue); |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | | } |
| | |
| | | true : lastResetStartServer; |
| | | startServer = confirmAction(message, defaultValue); |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | | startServer = true; |
| | |
| | | { |
| | | path = readInput(pathPrompt, defaultPathValue); |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | path = ""; |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | |
| | | { |
| | | s = readInput(prompt, String.valueOf(defaultValue)); |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | s = ""; |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | |
| | | break; |
| | | } |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | | } |
| | |
| | | throw new RuntimeException(); |
| | | } |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | returnValue = ConfirmCode.CANCEL; |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | |
| | | hostName = readInput(INFO_INSTALLDS_PROMPT_HOST_NAME.get(), |
| | | argParser.hostNameArg.getDefaultValue()); |
| | | } |
| | | catch (CLIException ce) |
| | | catch (ClientException ce) |
| | | { |
| | | logger.warn(LocalizableMessage.raw("Error reading input: "+ce, ce)); |
| | | } |