From 4f03d1c6b9b340f55a817b0dcb5b6a1cffdb87a1 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 22 Oct 2007 15:48:15 +0000
Subject: [PATCH] Fix for issue 2483: Bad management of lib/set-java-home when java path changed

---
 opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java b/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
index 116ddc4..812d1c5 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
@@ -1758,8 +1758,10 @@
     {
       // This isn't likely to happen, and it's not a serious problem even if
       // it does.
-      SetupUtils.writeSetOpenDSJavaHome(getInstallationPath());
-    } catch (Exception e) {}
+      SetupUtils.writeSetOpenDSJavaHome(getInstallationPath(), false);
+    } catch (Exception e) {
+      LOG.log(Level.WARNING, "Error writing OpenDS Java Home file: "+e, e);
+    }
   }
 
   /**

--
Gitblit v1.10.0