fixed broken import data step during install after import command args changed
| | |
| | | argList.add(getBackendName()); |
| | | argList.add("-t"); |
| | | argList.add(templatePath.getAbsolutePath()); |
| | | argList.add("-S"); |
| | | argList.add("-s"); // seed |
| | | argList.add("0"); |
| | | |
| | | String[] args = new String[argList.size()]; |
| | |
| | | |
| | | if (result != 0) |
| | | { |
| | | String[] msgArgs = { Utils.stringArrayToString(args, " ") }; |
| | | throw new QuickSetupException( |
| | | QuickSetupException.Type.CONFIGURATION_ERROR, |
| | | getMsg("error-import-automatically-generated"), null); |
| | | getMsg("error-import-automatically-generated", msgArgs), null); |
| | | } |
| | | } catch (Throwable t) |
| | | { |
| | |
| | | error-creating-base-entry=Error Creating Base Entry. |
| | | error-importing-ldif=Error Importing LDIF File. |
| | | error-import-automatically-generated=Error Importing Automatically- Generated \ |
| | | Data. |
| | | Data when invoked with arguments: {0}". |
| | | error-starting-server=Error Starting Directory Server. |
| | | error-starting-server-in-windows=Could not connect to Server after Start. \ |
| | | If you have a firewall configured check that it allows connections to port {0}. |
| | |
| | | return sb.toString(); |
| | | } |
| | | |
| | | /** |
| | | * Creates a string consisting of the string representation of the |
| | | * elements in the <code>list</code> separated by <code>separator</code>. |
| | | * @param array the list to print |
| | | * @param separator to use in separating elements |
| | | * @return String representing the list |
| | | */ |
| | | static public String stringArrayToString(String[] array, String separator) { |
| | | StringBuffer sb = new StringBuffer(); |
| | | for (int i = 0; i < array.length; i++) { |
| | | sb.append(array[i]); |
| | | if (i < array.length - 1) { |
| | | sb.append(separator); |
| | | } |
| | | } |
| | | return sb.toString(); |
| | | } |
| | | |
| | | } |