From afa089fedd62a29826d57cc34293ad5e0e6a4efd Mon Sep 17 00:00:00 2001
From: Violette Roche-Montane <violette.roche-montane@forgerock.com>
Date: Wed, 26 Mar 2014 13:15:01 +0000
Subject: [PATCH] Replaced OperatingSystem class by its SDK class.
---
opendj3-server-dev/src/server/org/opends/server/tools/ConfigureWindowsService.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/tools/ConfigureWindowsService.java b/opendj3-server-dev/src/server/org/opends/server/tools/ConfigureWindowsService.java
index 94456e7..885cd20 100644
--- a/opendj3-server-dev/src/server/org/opends/server/tools/ConfigureWindowsService.java
+++ b/opendj3-server-dev/src/server/org/opends/server/tools/ConfigureWindowsService.java
@@ -42,6 +42,7 @@
import static org.opends.messages.ToolMessages.*;
import static org.opends.server.util.ServerConstants.*;
import static org.opends.server.util.StaticUtils.*;
+import static com.forgerock.opendj.util.OperatingSystem.hasUAC;
/**
* This class is used to configure the Windows service for this instance on
@@ -410,7 +411,7 @@
String[] cmd;
- if (SetupUtils.hasUAC())
+ if (hasUAC())
{
cmd = new String[] {
getLauncherBinaryFullPath(),
@@ -521,7 +522,7 @@
LocalizableMessage msg;
String serverRoot = getServerRoot();
String[] cmd;
- if (SetupUtils.hasUAC())
+ if (hasUAC())
{
cmd = new String[] {
getLauncherBinaryFullPath(),
@@ -601,7 +602,7 @@
int returnValue;
LocalizableMessage msg;
String[] cmd;
- if (SetupUtils.hasUAC())
+ if (hasUAC())
{
cmd = new String[] {
getLauncherBinaryFullPath(),
--
Gitblit v1.10.0