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

kenneth_suter
07.06.2007 e08ee9a21301e4607806ff0230eca74d6dc3b13b
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/CurrentInstallStatus.java
@@ -296,16 +296,6 @@
  }
  /**
   * Provides the config file path (path to config.ldif file).
   *
   * @return the config file path.
   */
  private String getConfigFilePath()
  {
    return Utils.getConfigFileFromClasspath();
  }
  /**
   * Provides the LDAP port as is specified in the config.ldif file.
   *
   * @return the LDAP port specified in the config.ldif file.
@@ -411,7 +401,9 @@
      StringBuffer buf = new StringBuffer();
      try
      {
        FileReader reader = new FileReader(getConfigFilePath());
        Installation installation = getInstallationFromClassPath();
        FileReader reader =
                new FileReader(installation.getCurrentConfigurationFile());
        BufferedReader in = new BufferedReader(reader);
        String line;
        // We do not care about encoding: we are just interested in the ports
@@ -481,4 +473,8 @@
          index1 + attrName.length());
    }
  }
  private Installation getInstallationFromClassPath() {
    return new Installation(Utils.getInstallPathFromClasspath());
  }
}