| | |
| | | import static com.forgerock.opendj.cli.Utils.checkJavaVersion; |
| | | import static com.forgerock.opendj.cli.CliMessages.*; |
| | | |
| | | |
| | | import java.io.PrintStream; |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | |
| | | import com.forgerock.opendj.cli.ArgumentException; |
| | | import com.forgerock.opendj.cli.BooleanArgument; |
| | | import com.forgerock.opendj.cli.CLIException; |
| | | import com.forgerock.opendj.cli.CliConstants; |
| | | import com.forgerock.opendj.cli.CommonArguments; |
| | | import com.forgerock.opendj.cli.ConsoleApplication; |
| | | import com.forgerock.opendj.cli.FileBasedArgument; |
| | |
| | | import com.forgerock.opendj.cli.StringArgument; |
| | | import com.forgerock.opendj.cli.SubCommand; |
| | | import com.forgerock.opendj.cli.SubCommandArgumentParser; |
| | | import com.forgerock.opendj.cli.Utils; |
| | | |
| | | /** |
| | | * This class implements the new CLI for OpenDJ3 setup. |
| | |
| | | |
| | | /** Create the command-line argument parser for use with this program. */ |
| | | int run(final String[] args) { |
| | | // TODO SetupLog.initLogFileHandler(); |
| | | // TODO Activate logger when the instance/installation path will be resolved. |
| | | // SetupLog.initLogFileHandler(); |
| | | |
| | | try { |
| | | checkJavaVersion(); |
| | |
| | | rejectedImportFile = CommonArguments.getRejectedImportLdif(); |
| | | skippedImportFile = CommonArguments.getSkippedImportFile(); |
| | | sampleData = CommonArguments.getSampleData(); |
| | | ldapPort = CommonArguments.getLDAPPort(389); // TODO |
| | | adminConnectorPort = CommonArguments.getAdminLDAPPort(1444); // TODO |
| | | jmxPort = CommonArguments.getJMXPort(1444); // TODO |
| | | ldapPort = CommonArguments.getLDAPPort(CliConstants.DEFAULT_LDAP_PORT); |
| | | adminConnectorPort = CommonArguments.getAdminLDAPPort(CliConstants.DEFAULT_ADMIN_PORT); |
| | | jmxPort = CommonArguments.getJMXPort(CliConstants.DEFAULT_JMX_PORT); |
| | | skipPortCheck = CommonArguments.getSkipPortCheck(); |
| | | directoryManagerDN = CommonArguments.getRootDN(); |
| | | directoryManagerPwdString = CommonArguments.getRootDNPwd(); |
| | |
| | | enableWindowsService = CommonArguments.getEnableWindowsService(); |
| | | doNotStart = CommonArguments.getDoNotStart(); |
| | | enableStartTLS = CommonArguments.getEnableTLS(); |
| | | ldapsPort = CommonArguments.getLDAPSPort(1636); // TODO |
| | | ldapsPort = CommonArguments.getLDAPSPort(CliConstants.DEFAULT_LDAPS_PORT); |
| | | generateSelfSignedCertificate = CommonArguments.getGenerateSelfSigned(); |
| | | hostName = CommonArguments.getHostName("TODO"); // TODO |
| | | hostName = CommonArguments.getHostName(Utils.getDefaultHostName()); |
| | | usePkcs11 = CommonArguments.getUsePKCS11Keystore(); |
| | | useJavaKeyStore = CommonArguments.getUseJavaKeyStore(); |
| | | useJCEKS = CommonArguments.getUseJCEKS(); |