From 1882ea34a9c7f2358125a26ade52446a0c06d954 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.

---
 opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java |    5 +++--
 1 files changed, 3 insertions(+), 2 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 63faa3b..1db3a4d 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
@@ -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