From 24fc3f1bec00d45b2950774b88940a5f558f763b Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 12 Jun 2009 13:35:23 +0000
Subject: [PATCH] Frontport of fix for issue 4047 ( Uninstall deletes systematically resources and classes directories).

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

diff --git a/opends/src/quicksetup/org/opends/quicksetup/Installation.java b/opends/src/quicksetup/org/opends/quicksetup/Installation.java
index ee62ea5..6aebc1a 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/Installation.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/Installation.java
@@ -77,6 +77,12 @@
     SetupUtils.LIBRARIES_PATH_RELATIVE;
 
   /**
+   * The relative path where the resources directory (to customize the product)
+   * is.
+   */
+  public static final String RESOURCES_PATH_RELATIVE = "resources";
+
+  /**
    * The relative path where customer classes are.
    */
   public static final String CLASSES_PATH_RELATIVE = "classes";
@@ -676,6 +682,24 @@
   }
 
   /**
+   * Returns the path to the resources directory.
+   *
+   * @return the path to the resources directory.
+   */
+  public File getResourcesDirectory() {
+    return new File(getRootDirectory(), RESOURCES_PATH_RELATIVE);
+  }
+
+  /**
+   * Returns the path to the classes directory.
+   *
+   * @return the path to the classes directory.
+   */
+  public File getClassesDirectory() {
+    return new File(getRootDirectory(), CLASSES_PATH_RELATIVE);
+  }
+
+  /**
    * Returns the path to the tools properties file.
    *
    * @return the path to the tools properties file.

--
Gitblit v1.10.0