From 856bfa759bec64b3cfc710fa26b755855bcc61c8 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 28 Feb 2007 11:35:55 +0000
Subject: [PATCH] Fix for issue 1285.
---
opends/src/statuspanel/org/opends/statuspanel/StatusCli.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opends/src/statuspanel/org/opends/statuspanel/StatusCli.java b/opends/src/statuspanel/org/opends/statuspanel/StatusCli.java
index 346b51f..9509499 100644
--- a/opends/src/statuspanel/org/opends/statuspanel/StatusCli.java
+++ b/opends/src/statuspanel/org/opends/statuspanel/StatusCli.java
@@ -37,6 +37,7 @@
import javax.swing.table.TableModel;
+import org.opends.quicksetup.CurrentInstallStatus;
import org.opends.quicksetup.util.Utils;
import org.opends.server.core.DirectoryServer;
@@ -231,8 +232,7 @@
}
else
{
- boolean isServerRunning =
- Utils.isServerRunning(Utils.getInstallPathFromClasspath());
+ boolean isServerRunning = CurrentInstallStatus.isServerRunning();
/* This is required to retrieve the ldap url to be used by the
* ConfigFromLDAP class.
*/
@@ -355,7 +355,7 @@
ServerStatusDescriptor desc = new ServerStatusDescriptor();
desc.setAuthenticated((dn != null) && (pwd != null));
- if (Utils.isServerRunning(Utils.getInstallPathFromClasspath()))
+ if (CurrentInstallStatus.isServerRunning())
{
desc.setStatus(ServerStatusDescriptor.ServerStatus.STARTED);
}
--
Gitblit v1.10.0