From b6e0d10650364c569020e948dfbcaf4405e34a9e Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 13 Jun 2008 11:03:18 +0000
Subject: [PATCH] Fix for 3338 (upgrade breaks the java_home parameter)
---
opends/src/quicksetup/org/opends/quicksetup/Installation.java | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/Installation.java b/opends/src/quicksetup/org/opends/quicksetup/Installation.java
index c1bfe55..a002478 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/Installation.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/Installation.java
@@ -518,6 +518,17 @@
}
/**
+ * Returns the path to the set-java-home file.
+ *
+ * @return the path to the set-java-home file.
+ */
+ public File getSetJavaHomeFile() {
+ return new File(getLibrariesDirectory(),
+ Utils.isWindows()?SET_JAVA_PROPERTIES_FILE_WINDOWS :
+ SET_JAVA_PROPERTIES_FILE_UNIX);
+ }
+
+ /**
* Creates a File object representing config/upgrade/schema.ldif.current
* which the server creates the first time it starts if there are schema
* customizations.
--
Gitblit v1.10.0