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

jvergara
03.48.2008 dffcd320297e23f6d95dad4c7b08a2c0a9c1893a
opends/src/server/org/opends/server/tools/CreateRCScript.java
@@ -218,14 +218,6 @@
    else
    {
      javaHomeDir = System.getenv(SetupUtils.OPENDS_JAVA_HOME);
      if (javaHomeDir == null)
      {
        javaHomeDir = System.getenv("JAVA_HOME");
      }
      if (javaHomeDir == null)
      {
        javaHomeDir = System.getProperty("java.home");
      }
    }
@@ -258,16 +250,19 @@
      w.println("export INSTANCE_ROOT");
      w.println();
      w.println("# Specify the path to the Java installation to use");
      w.println("OPENDS_JAVA_HOME=\"" + javaHomeDir + "\"");
      w.println("export OPENDS_JAVA_HOME");
      w.println();
      if (javaHomeDir != null)
      {
        w.println("# Specify the path to the Java installation to use");
        w.println("OPENDS_JAVA_HOME=\"" + javaHomeDir + "\"");
        w.println("export OPENDS_JAVA_HOME");
        w.println();
      }
      if (javaArgs.isPresent())
      {
        w.println("# Specify arguments that should be provided to the JVM");
        w.println("JAVA_ARGS=\"" + javaArgs.getValue() + "\"");
        w.println("export JAVA_ARGS");
        w.println("OPENDS_JAVA_ARGS=\"" + javaArgs.getValue() + "\"");
        w.println("export OPENDS_JAVA_ARGS");
        w.println();
      }