From c0e776c195406d5bd83fdd683ac73c56fcc8a93f Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 26 Feb 2007 21:13:28 +0000
Subject: [PATCH] Centralize the hardcoded strings of the different commands used in the setup and in the control panel in the class Utils.java.

---
 opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java b/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java
index f17ff38..9b866d0 100644
--- a/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java
+++ b/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java
@@ -658,10 +658,12 @@
 
     if (Utils.isWindows())
     {
-      argList.add(Utils.getPath(getBinariesPath(), "stop-ds.bat"));
+      argList.add(Utils.getPath(getBinariesPath(),
+              Utils.getWindowsStopFileName()));
     } else
     {
-      argList.add(Utils.getPath(getBinariesPath(), "stop-ds"));
+      argList.add(Utils.getPath(getBinariesPath(),
+              Utils.getUnixStopFileName()));
     }
     String[] args = new String[argList.size()];
     argList.toArray(args);

--
Gitblit v1.10.0