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/StatusCli.java | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusCli.java b/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusCli.java
index b1bd1b1..346b51f 100644
--- a/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusCli.java
+++ b/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusCli.java
@@ -74,10 +74,6 @@
*/
static int BUG = 2;
- private static String COMMAND_NAME_WINDOWS = "status.bat";
-
- private static String COMMAND_NAME_UNIX = "status";
-
/**
* The main method which is called by the status command lines.
* @param args the arguments passed by the status command lines.
@@ -339,10 +335,10 @@
String arg;
if (Utils.isWindows())
{
- arg = COMMAND_NAME_WINDOWS;
+ arg = Utils.getWindowsStatusCliFileName();
} else
{
- arg = COMMAND_NAME_UNIX;
+ arg = Utils.getUnixStatusCliFileName();
}
/*
* This is required because the usage message contains '{' characters that
--
Gitblit v1.10.0