From a5a372a17dfbea0e0551a992e11c4fec4b7bb9d0 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Wed, 16 May 2007 07:40:12 +0000
Subject: [PATCH] Add a "PRINTABLE_VERSION_STRING" string in DynamicContants class. This will prevent to compute in several places the printable string to be displayed (--version)

---
 opends/src/server/org/opends/server/core/DirectoryServer.java |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index 5be3c58..2d27853 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -8328,18 +8328,7 @@
   public static void printVersion(OutputStream outputStream)
   throws IOException
   {
-    StringBuilder buffer = new StringBuilder();
-    buffer.append(getVersionString());
-    buffer.append(EOL);
-    buffer.append("Build " + BUILD_ID);
-    buffer.append(EOL);
-
-    if ((FIX_IDS != null) && (FIX_IDS.length() > 0))
-    {
-      buffer.append("Fix IDs:  " + FIX_IDS);
-      buffer.append(EOL);
-    }
-    outputStream.write(getBytes(buffer.toString()));
+    outputStream.write(getBytes(PRINTABLE_VERSION_STRING));
     return;
   }
 

--
Gitblit v1.10.0