From f1eebaffa04eb5d931ab368a074012740fd56fe3 Mon Sep 17 00:00:00 2001
From: abobrov <abobrov@localhost>
Date: Wed, 19 Sep 2007 17:35:25 +0000
Subject: [PATCH] - add Mac native application bundles for QuickSetup, Uninstall and StatusPanel.   note that these bundles are not self contained and cannot be arbitrary moved outside of OpenDS distribution or installation location.

---
 opends/src/quicksetup/org/opends/quicksetup/Installation.java |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/Installation.java b/opends/src/quicksetup/org/opends/quicksetup/Installation.java
index 6c9a604..3f3e0e2 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/Installation.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/Installation.java
@@ -64,6 +64,11 @@
   public static final String UNIX_BINARIES_PATH_RELATIVE = "bin";
 
   /**
+   * The relative path where all the MacOS X Applications are.
+   */
+  public static final String MAC_APPLICATIONS_PATH_RELATIVE = "bin";
+
+  /**
    * The relative path where all the libraries (jar files) are.
    */
   public static final String LIBRARIES_PATH_RELATIVE = "lib";
@@ -189,6 +194,11 @@
   public static final String WINDOWS_STATUSPANEL_FILE_NAME = "status-panel.bat";
 
   /**
+   * The MacOS X status panel application bundle name.
+   */
+  public static final String MAC_STATUSPANEL_FILE_NAME = "StatusPanel.app";
+
+  /**
    * The UNIX status command line script file name.
    */
   public static final String UNIX_STATUSCLI_FILE_NAME = "status";
@@ -725,6 +735,10 @@
     if (Utils.isWindows()) {
       statusPanelCommandFile = new File(getBinariesDirectory(),
               WINDOWS_STATUSPANEL_FILE_NAME);
+    } else if (Utils.isMacOS()) {
+      statusPanelCommandFile = new File(getRootDirectory() +
+        File.separator + MAC_APPLICATIONS_PATH_RELATIVE,
+        MAC_STATUSPANEL_FILE_NAME);
     } else {
       statusPanelCommandFile = new File(getBinariesDirectory(),
               UNIX_STATUSPANEL_FILE_NAME);
@@ -796,6 +810,7 @@
   /**
    * {@inheritDoc}
    */
+  @Override
   public String toString() {
     return Utils.getPath(rootDirectory);
   }

--
Gitblit v1.10.0