mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

kenneth_suter
06.44.2007 8bf3714a5318dfa049d969a5c94ac794cd8841f9
fixed broken import data step during install after import command args changed
3 files modified
25 ■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java 5 ●●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/resources/Resources.properties 2 ●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/Utils.java 18 ●●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
@@ -593,7 +593,7 @@
    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()];
@@ -606,9 +606,10 @@
      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)
    {
opends/src/quicksetup/org/opends/quicksetup/resources/Resources.properties
@@ -654,7 +654,7 @@
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}.
opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
@@ -1544,4 +1544,22 @@
    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();
  }
}