[Libreoffice-commits] core.git: jvmfwk/plugins
Stephan Bergmann
sbergman at redhat.com
Tue Dec 16 00:40:06 PST 2014
jvmfwk/plugins/sunmajor/pluginlib/util.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 555f024f16d4407be3c9b0dbb15fb18c2f6f3b20
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Dec 16 09:38:59 2014 +0100
Related fdo#83753: Fix JVM_ONE_PATH_CHECK feature again
Change-Id: I1dc3b0db6295c43a9d29576b81870b4a293a61aa
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
index 7b29faf..7ea4d1b 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
@@ -817,14 +817,12 @@ vector<Reference<VendorBase> > addAllJREInfos(
addJavaInfoFromWinReg(allInfos, addedInfos);
#endif // WNT
-#ifndef JVM_ONE_PATH_CHECK
if (checkJavaHomeAndPath) {
addJavaInfoFromJavaHome(allInfos, addedInfos);
//this function should be called after addJavaInfosDirScan.
//Otherwise in SDKs Java may be started twice
addJavaInfosFromPath(allInfos, addedInfos);
}
-#endif
#ifdef UNX
addJavaInfosDirScan(allInfos, addedInfos);
@@ -1103,6 +1101,7 @@ void addJavaInfosFromPath(
std::vector<rtl::Reference<VendorBase>> & allInfos,
std::vector<rtl::Reference<VendorBase>> & addedInfos)
{
+#if !defined JVM_ONE_PATH_CHECK
// Get Java from PATH environment variable
static const char sCurDir[] = ".";
static const char sParentDir[] = "..";
@@ -1147,6 +1146,7 @@ void addJavaInfosFromPath(
}
while ( nIndex >= 0 );
}
+#endif
}
@@ -1154,6 +1154,7 @@ void addJavaInfoFromJavaHome(
std::vector<rtl::Reference<VendorBase>> & allInfos,
std::vector<rtl::Reference<VendorBase>> & addedInfos)
{
+#if !defined JVM_ONE_PATH_CHECK
// Get Java from JAVA_HOME environment
// Note that on OS X is it not normal at all to have a JAVA_HOME environment
@@ -1170,6 +1171,7 @@ void addJavaInfoFromJavaHome(
getAndAddJREInfoByPath(sHomeUrl, allInfos, addedInfos);
}
}
+#endif
}
bool makeDriveLetterSame(OUString * fileURL)
More information about the Libreoffice-commits
mailing list