From 86009cc055af74069148cbb8a8bed37e79e97e43 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 15 May 2007 19:59:55 +0000
Subject: [PATCH] Make a number of administrative types of updates:
---
opends/src/server/org/opends/server/core/DirectoryServer.java | 25 +++++++++----------------
1 files changed, 9 insertions(+), 16 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index a4bcc88..5be3c58 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -33,6 +33,7 @@
import java.io.OutputStream;
import java.io.PrintStream;
import java.net.InetAddress;
+import java.text.DecimalFormat;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
@@ -8311,22 +8312,7 @@
*/
public static String getVersionString()
{
- StringBuilder buffer = new StringBuilder();
- buffer.append(PRODUCT_NAME);
- buffer.append(" ");
- buffer.append(MAJOR_VERSION);
- buffer.append(".");
- buffer.append(MINOR_VERSION);
- if ((VERSION_QUALIFIER == null) || (VERSION_QUALIFIER.length() == 0))
- {
- buffer.append(".");
- buffer.append(POINT_VERSION);
- }
- else
- {
- buffer.append(VERSION_QUALIFIER);
- }
- return buffer.toString();
+ return FULL_VERSION_STRING;
}
/**
@@ -8803,6 +8789,13 @@
System.out.println("Minor Version: " + MINOR_VERSION);
System.out.println("Point Version: " + POINT_VERSION);
System.out.println("Version Qualifier: " + VERSION_QUALIFIER);
+
+ if (BUILD_NUMBER > 0)
+ {
+ System.out.println("Build Number: " +
+ new DecimalFormat("000").format(BUILD_NUMBER));
+ }
+
System.out.println("Revision Number: " + REVISION_NUMBER);
System.out.println("Fix IDs: " + FIX_IDS);
System.out.println("Debug Build: " + DEBUG_BUILD);
--
Gitblit v1.10.0