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/util/Utils.java |  168 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 168 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
index 2ab0749..ce0a509 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
@@ -117,6 +117,66 @@
    */
   private static final String CONFIG_FILE_PATH_RELATIVE = "config/config.ldif";
 
+  /**
+   * The UNIX setup script file name.
+   */
+  private static final String UNIX_SETUP_FILE_NAME = "setup";
+
+  /**
+   * The Windows setup batch file name.
+   */
+  private static final String WINDOWS_SETUP_FILE_NAME = "setup.bat";
+
+  /**
+   * The UNIX uninstall script file name.
+   */
+  private static final String UNIX_UNINSTALL_FILE_NAME = "uninstall";
+
+  /**
+   * The Windows uninstall batch file name.
+   */
+  private static final String WINDOWS_UNINSTALL_FILE_NAME = "uninstall.bat";
+
+  /**
+   * The UNIX start script file name.
+   */
+  private static final String UNIX_START_FILE_NAME = "start-ds";
+
+  /**
+   * The Windows start batch file name.
+   */
+  private static final String WINDOWS_START_FILE_NAME = "start-ds.bat";
+
+  /**
+   * The UNIX stop script file name.
+   */
+  private static final String UNIX_STOP_FILE_NAME = "stop-ds";
+
+  /**
+   * The Windows stop batch file name.
+   */
+  private static final String WINDOWS_STOP_FILE_NAME = "stop-ds.bat";
+
+  /**
+   * The UNIX status panel script file name.
+   */
+  private static final String UNIX_STATUSPANEL_FILE_NAME = "statuspanel";
+
+  /**
+   * The Windows status panel batch file name.
+   */
+  private static final String WINDOWS_STATUSPANEL_FILE_NAME = "statuspanel.bat";
+
+  /**
+   * The UNIX status command line script file name.
+   */
+  private static final String UNIX_STATUSCLI_FILE_NAME = "status";
+
+  /**
+   * The Windows status command line batch file name.
+   */
+  private static final String WINDOWS_STATUSCLI_FILE_NAME = "status.bat";
+
   private Utils()
   {
   }
@@ -1090,6 +1150,114 @@
   }
 
   /**
+   * Returns the name of the UNIX setup script file name.
+   * @return the name of the UNIX setup script file name.
+   */
+  public static String getUnixSetupFileName()
+  {
+    return UNIX_SETUP_FILE_NAME;
+  }
+
+  /**
+   * Returns the name of the Windows setup batch file name.
+   * @return the name of the Windows setup batch file name.
+   */
+  public static String getWindowsSetupFileName()
+  {
+    return WINDOWS_SETUP_FILE_NAME;
+  }
+
+  /**
+   * Returns the name of the UNIX uninstall script file name.
+   * @return the name of the UNIX uninstall script file name.
+   */
+  public static String getUnixUninstallFileName()
+  {
+    return UNIX_UNINSTALL_FILE_NAME;
+  }
+
+  /**
+   * Returns the name of the Windows uninstall batch file name.
+   * @return the name of the Windows uninstall batch file name.
+   */
+  public static String getWindowsUninstallFileName()
+  {
+    return WINDOWS_UNINSTALL_FILE_NAME;
+  }
+
+  /**
+   * Returns the name of the UNIX start script file name.
+   * @return the name of the UNIX start script file name.
+   */
+  public static String getUnixStartFileName()
+  {
+    return UNIX_START_FILE_NAME;
+  }
+
+  /**
+   * Returns the name of the Windows start batch file name.
+   * @return the name of the Windows start batch file name.
+   */
+  public static String getWindowsStartFileName()
+  {
+    return WINDOWS_START_FILE_NAME;
+  }
+
+  /**
+   * Returns the name of the UNIX stop script file name.
+   * @return the name of the UNIX stop script file name.
+   */
+  public static String getUnixStopFileName()
+  {
+    return UNIX_STOP_FILE_NAME;
+  }
+
+  /**
+   * Returns the name of the Windows stop batch file name.
+   * @return the name of the Windows stop batch file name.
+   */
+  public static String getWindowsStopFileName()
+  {
+    return WINDOWS_STOP_FILE_NAME;
+  }
+
+  /**
+   * Returns the name of the UNIX status panel script file name.
+   * @return the name of the UNIX status panel script file name.
+   */
+  public static String getUnixStatusPanelFileName()
+  {
+    return UNIX_STATUSPANEL_FILE_NAME;
+  }
+
+  /**
+   * Returns the name of the Windows status panel batch file name.
+   * @return the name of the Windows status panel batch file name.
+   */
+  public static String getWindowsStatusPanelFileName()
+  {
+    return WINDOWS_STATUSPANEL_FILE_NAME;
+  }
+
+  /**
+   * Returns the name of the UNIX status command line script file name.
+   * @return the name of the UNIX status command line script file name.
+   */
+  public static String getUnixStatusCliFileName()
+  {
+    return UNIX_STATUSCLI_FILE_NAME;
+  }
+
+  /**
+   * Returns the name of the Windows status command line batch file name.
+   * @return the name of the Windows status command line batch file name.
+   */
+  public static String getWindowsStatusCliFileName()
+  {
+    return WINDOWS_STATUSCLI_FILE_NAME;
+  }
+
+  /**
    * Displays a confirmation message dialog.
   *
   * @param parent

--
Gitblit v1.10.0