From e8461f5a27650a2bf1807063a6c3646232b5898e Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 09 Nov 2006 17:17:39 +0000
Subject: [PATCH] Move the logic that was just added in DirectoryServer.getCompactVerisonString into the DynamicConstants class as a COMPACT_VERSION_STRING constant.  A FULL_VERSION_STRING constant has also been added.

---
 opends/resource/DynamicConstants.java.stubs |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/opends/resource/DynamicConstants.java.stubs b/opends/resource/DynamicConstants.java.stubs
index 2f89e22..7c371cb 100644
--- a/opends/resource/DynamicConstants.java.stubs
+++ b/opends/resource/DynamicConstants.java.stubs
@@ -110,4 +110,23 @@
    * versions.
    */
   public static final boolean DEBUG_BUILD = ${DEBUG_BUILD};
+
+  /**
+   * A compact version string for this product, suitable for use in path
+   * names and similar cases.
+   */
+  public static final String COMPACT_VERSION_STRING =
+       SHORT_NAME + "-" + MAJOR_VERSION + "." + MINOR_VERSION +
+       (((VERSION_QUALIFIER != null) && (VERSION_QUALIFIER.length() > 0))
+        ? VERSION_QUALIFIER
+        : "");
+
+  /**
+   * A full version string for this product.
+   */
+  public static final String FULL_VERSION_STRING =
+       PRODUCT_NAME + " " + MAJOR_VERSION + "." + MINOR_VERSION +
+       (((VERSION_QUALIFIER != null) && (VERSION_QUALIFIER.length() > 0))
+        ? VERSION_QUALIFIER
+        : "." + POINT_VERSION);
 }

--
Gitblit v1.10.0