From 08d62ab30082bc0feb209c8de443b8ec9a419dd6 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 18 Jul 2007 21:28:42 +0000
Subject: [PATCH] Fix for issue 1603 (quickInstall fails to register service on vista)
---
opendj-sdk/opends/src/server/org/opends/server/util/SetupUtils.java | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/util/SetupUtils.java b/opendj-sdk/opends/src/server/org/opends/server/util/SetupUtils.java
index 20e779e..544d922 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/util/SetupUtils.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/util/SetupUtils.java
@@ -154,6 +154,26 @@
}
/**
+ * Indicates whether the underlying operating system is Windows Vista.
+ *
+ * @return {@code true} if the underlying operating system is Windows
+ * Vista, or {@code false} if not.
+ */
+ public static boolean isVista()
+ {
+ boolean isVista;
+ String os = System.getProperty("os.name");
+ if (os != null)
+ {
+ isVista = isWindows() && (os.toLowerCase().indexOf("vista") != -1);
+ }
+ else
+ {
+ isVista = false;
+ }
+ return isVista;
+ }
+ /**
* Returns a String representation of the OS we are running.
* @return a String representation of the OS we are running.
*/
--
Gitblit v1.10.0