From e7934050009ce7e6f43e2ce7d56c827a23ac287e 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.
---
opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java b/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
index 28f7738..3ecf739 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
@@ -870,10 +870,12 @@
if (Utils.isWindows())
{
- argList.add(Utils.getPath(getBinariesPath(), "start-ds.bat"));
+ argList.add(Utils.getPath(getBinariesPath(),
+ Utils.getWindowsStartFileName()));
} else
{
- argList.add(Utils.getPath(getBinariesPath(), "start-ds"));
+ argList.add(Utils.getPath(getBinariesPath(),
+ Utils.getUnixStartFileName()));
}
String[] args = new String[argList.size()];
@@ -1043,11 +1045,13 @@
String cmd;
if (Utils.isWindows())
{
- cmd = "bin"+File.separator+"statuspanel.bat";
+ cmd = Utils.getBinariesRelativePath()+File.separator+
+ Utils.getWindowsStatusPanelFileName();
}
else
{
- cmd = "bin"+File.separator+"statuspanel";
+ cmd = Utils.getBinariesRelativePath()+File.separator+
+ Utils.getUnixStatusPanelFileName();
}
cmd = UIFactory.applyFontToHtml(cmd, UIFactory.INSTRUCTIONS_MONOSPACE_FONT);
String[] args = {formatter.getFormattedText(getInstallationPath()), cmd};
--
Gitblit v1.10.0