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

Violette Roche-Montane
13.00.2013 2f31bc6d639a724f60880118789b418d21a65564
OPENDJ-901 make-ldif and create-rc-scripts tools should work even if the server has not been upgraded.
- Fixed. The tools 'make-ldif' and 'create-rc-scripts' can still be used between unpacking and upgrade.
2 files modified
26 ■■■■■ changed files
opends/src/server/org/opends/server/tools/CreateRCScript.java 13 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tools/makeldif/MakeLDIF.java 13 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tools/CreateRCScript.java
@@ -37,10 +37,8 @@
import org.opends.messages.Message;
import org.opends.server.core.DirectoryServer;
import org.opends.server.types.FilePermission;
import org.opends.server.types.InitializationException;
import org.opends.server.types.NullOutputStream;
import org.opends.server.types.OperatingSystem;
import org.opends.server.util.BuildVersion;
import org.opends.server.util.EmbeddedUtils;
import org.opends.server.util.SetupUtils;
import org.opends.server.util.args.ArgumentParser;
@@ -193,17 +191,6 @@
      return 0;
    }
    // Checks the version - if upgrade required, the tool is unusable
    try
    {
      BuildVersion.checkVersionMismatch();
    }
    catch (InitializationException e)
    {
      err.println(wrapText(e.getMessage(), MAX_LINE_WIDTH));
      return 1;
    }
    // Determine the path to the Java installation that should be used.
    String javaHomeDir;
    if (javaHome.isPresent())
opends/src/server/org/opends/server/tools/makeldif/MakeLDIF.java
@@ -40,10 +40,8 @@
import org.opends.server.core.DirectoryServer;
import org.opends.server.types.AttributeType;
import org.opends.server.types.ExistingFileBehavior;
import org.opends.server.types.InitializationException;
import org.opends.server.types.LDIFExportConfig;
import org.opends.server.types.NullOutputStream;
import org.opends.server.util.BuildVersion;
import org.opends.server.util.LDIFWriter;
import org.opends.server.util.args.ArgumentException;
import org.opends.server.util.args.ArgumentParser;
@@ -246,17 +244,6 @@
      return 0;
    }
    // Checks the version - if upgrade required, the tool is unusable
    try
    {
      BuildVersion.checkVersionMismatch();
    }
    catch (InitializationException e)
    {
      err.println(wrapText(e.getMessage(), MAX_LINE_WIDTH));
      return 1;
    }
    if (initializeServer)
    {
      // Initialize the Directory Server configuration handler using the