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/StatusPanelLauncher.java | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusPanelLauncher.java b/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusPanelLauncher.java
index 53466b3..a3750b8 100644
--- a/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusPanelLauncher.java
+++ b/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusPanelLauncher.java
@@ -39,10 +39,6 @@
*/
public class StatusPanelLauncher
{
- private static String COMMAND_NAME_WINDOWS = "statuspanel.bat";
-
- private static String COMMAND_NAME_UNIX = "statuspanel";
-
/**
* The main method which is called by the control panel command lines.
* @param args the arguments passed by the command lines.
@@ -124,10 +120,10 @@
String arg;
if (Utils.isWindows())
{
- arg = COMMAND_NAME_WINDOWS;
+ arg = Utils.getWindowsStatusPanelFileName();
} else
{
- arg = COMMAND_NAME_UNIX;
+ arg = Utils.getUnixStatusPanelFileName();
}
/*
* This is required because the usage message contains '{' characters that
--
Gitblit v1.10.0