| | |
| | | |
| | | BooleanArgument showUsage; |
| | | IntegerArgument randomSeed; |
| | | StringArgument configClass; |
| | | StringArgument configFile; |
| | | StringArgument templatePath; |
| | | StringArgument ldifFile; |
| | |
| | | .required() |
| | | .valuePlaceholder(INFO_CONFIGFILE_PLACEHOLDER.get()) |
| | | .buildAndAddToParser(argParser); |
| | | configClass = |
| | | StringArgument.builder(OPTION_LONG_CONFIG_CLASS) |
| | | .shortIdentifier(OPTION_SHORT_CONFIG_CLASS) |
| | | .description(INFO_DESCRIPTION_CONFIG_CLASS.get()) |
| | | .hidden() |
| | | .valuePlaceholder(INFO_CONFIGCLASS_PLACEHOLDER.get()) |
| | | .buildAndAddToParser(argParser); |
| | | resourcePath = |
| | | StringArgument.builder("resourcePath") |
| | | .shortIdentifier('r') |
| | |
| | | |
| | | try |
| | | { |
| | | directoryServer.initializeConfiguration(configClass.getValue(), |
| | | configFile.getValue()); |
| | | directoryServer.initializeConfiguration(configFile.getValue()); |
| | | } |
| | | catch (Exception e) |
| | | { |