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/quicksetup/org/opends/quicksetup/QuickSetup.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/QuickSetup.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/QuickSetup.java
index 056d119..6019e72 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/QuickSetup.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/QuickSetup.java
@@ -622,7 +622,8 @@
       {
         try
         {
-          String cmd = Utils.isWindows()?"statuspanel.bat":"statuspanel";
+          String cmd = Utils.isWindows()?Utils.getWindowsStatusPanelFileName():
+              Utils.getUnixStatusPanelFileName();
           String serverPath;
           if (Utils.isWebStart())
           {
@@ -632,7 +633,8 @@
           {
             serverPath = Utils.getInstallPathFromClasspath();
           }
-          cmd = Utils.getPath(serverPath, "bin"+File.separator+cmd);
+          cmd = Utils.getPath(serverPath, Utils.getBinariesRelativePath()+
+                  File.separator+cmd);
           ProcessBuilder pb = new ProcessBuilder(new String[]{cmd});
           Map<String, String> env = pb.environment();
           env.put("JAVA_HOME", System.getProperty("java.home"));

--
Gitblit v1.10.0