From 66962c445640f43cf0b1a0bfef5afc9f05e511ac Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 28 Apr 2009 15:14:27 +0000
Subject: [PATCH] Fix for issue 3943 (Inconsistent installation path across tools) Try to use File.getCanonicalPath to display the paths.  If this does not work use File.getAbsolutePath() as fall back.

---
 opends/src/quicksetup/org/opends/quicksetup/util/Utils.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java b/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
index 63faa3b..1db3a4d 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
@@ -249,9 +249,10 @@
   }
 
   /**
-   * Returns the absolute path for the given parentPath and relativePath.
+   * Returns the absolute path for the given file.  It tries to get the
+   * canonical file path.  If it fails it returns the string representation.
    * @param f File to get the path
-   * @return the absolute path for the given parentPath and relativePath.
+   * @return the absolute path for the given file.
    */
   public static String getPath(File f)
   {

--
Gitblit v1.10.0