| | |
| | | import org.opends.server.tools.dsreplication.ReplicationCliException; |
| | | import org.opends.server.tools.dsreplication.ReplicationCliMain; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.util.cli.CommandBuilder; |
| | | |
| | | /** |
| | | * The panel where the user can import the contents of an LDIF file to the |
| | |
| | | |
| | | private String getCommandLineToInitializeAll() |
| | | { |
| | | StringBuilder sb = new StringBuilder(); |
| | | String cmdLineName = getCommandLinePath("dsreplication"); |
| | | sb.append(cmdLineName); |
| | | ArrayList<String> args = new ArrayList<String>(); |
| | | args.add( |
| | | ReplicationCliArgumentParser.INITIALIZE_ALL_REPLICATION_SUBCMD_NAME); |
| | |
| | | args.add("--trustAll"); |
| | | args.add("--no-prompt"); |
| | | |
| | | for (String arg : args) |
| | | { |
| | | sb.append(" "+CommandBuilder.escapeValue(arg)); |
| | | } |
| | | return sb.toString(); |
| | | return Task.getEquivalentCommandLine(cmdLineName, args); |
| | | } |
| | | }; |
| | | } |