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

neil_a_wilson
09.14.2006 f232e2f931b79f4087f3758cb772a80fccfb19a3
Add a simple method to the DirectoryServer class that may be used to get a
compact server version string, matching the one used for the top-level
directory included in the OpenDS zip file, as well as in the name of that ZIP
file.
1 files modified
23 ■■■■■ changed files
opends/src/server/org/opends/server/core/DirectoryServer.java 23 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -7118,6 +7118,29 @@
  /**
   * Retrieves a compact version string for the Directory Server, which may be
   * used in elements like path names.
   *
   * @return  A compact version string for the Directory Server.
   */
  public static String getCompactVersionString()
  {
    StringBuilder buffer = new StringBuilder();
    buffer.append(SHORT_NAME);
    buffer.append("-");
    buffer.append(MAJOR_VERSION);
    buffer.append(".");
    buffer.append(MINOR_VERSION);
    if ((VERSION_QUALIFIER != null) && (VERSION_QUALIFIER.length() > 0))
    {
      buffer.append(VERSION_QUALIFIER);
    }
    return buffer.toString();
  }
  /**
   * Retrieves the full version string for the Directory Server.
   *
   * @return  The full version string for the Directory Server.