c76e883
From 549e54fb2f8113502743c443d6deadfe648dede1 Mon Sep 17 00:00:00 2001
c76e883
From: Hanno Meyer-Thurow <h.mth@web.de>
c76e883
Date: Tue, 13 Sep 2011 13:23:28 +0100
c76e883
Subject: [PATCH] add Oracle Java 1.7.0 recognition
c76e883
c76e883
---
c76e883
 .../OpenOfficeorg/javavendors_linux.xml            |    4 ++++
c76e883
 jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx   |    2 ++
c76e883
 jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx   |    1 +
c76e883
 3 files changed, 7 insertions(+), 0 deletions(-)
c76e883
c76e883
diff --git a/jvmfwk/distributions/OpenOfficeorg/javavendors_linux.xml b/jvmfwk/distributions/OpenOfficeorg/javavendors_linux.xml
c76e883
index ed329e5..489511f 100644
c76e883
--- a/jvmfwk/distributions/OpenOfficeorg/javavendors_linux.xml
c76e883
+++ b/jvmfwk/distributions/OpenOfficeorg/javavendors_linux.xml
c76e883
@@ -9,6 +9,9 @@
c76e883
   <vendor name="Sun Microsystems Inc.">
c76e883
     <minVersion>1.5.0</minVersion>
c76e883
   </vendor>
c76e883
+  <vendor name="Oracle Corporation">
c76e883
+    <minVersion>1.7.0</minVersion>
c76e883
+  </vendor>
c76e883
   <vendor name="IBM Corporation">
c76e883
     <minVersion>1.5.0</minVersion>
c76e883
   </vendor>
c76e883
@@ -25,6 +28,7 @@
c76e883
 
c76e883
  <plugins>
c76e883
   <library vendor="Sun Microsystems Inc.">vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/sunjavaplugin.so</library>
c76e883
+  <library vendor="Oracle Corporation">vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/sunjavaplugin.so</library>
c76e883
   <library vendor="IBM Corporation">vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/sunjavaplugin.so</library>
c76e883
   <library vendor="Blackdown Java-Linux Team">vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/sunjavaplugin.so</library>
c76e883
   <library vendor="Free Software Foundation, Inc.">vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/sunjavaplugin.so</library>
c76e883
diff --git a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
c76e883
index 8567d79..91ad4c6 100644
c76e883
--- a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
c76e883
+++ b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
c76e883
@@ -112,6 +112,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
c76e883
 
c76e883
     //Only do something if the sunjavaplugin created this JavaInfo
c76e883
     rtl::OUString sVendor1(RTL_CONSTASCII_USTRINGPARAM("Sun Microsystems Inc."));
c76e883
+    rtl::OUString sVendor9(RTL_CONSTASCII_USTRINGPARAM("Oracle Corporation"));
c76e883
     rtl::OUString sVendor2(RTL_CONSTASCII_USTRINGPARAM("IBM Corporation"));
c76e883
     rtl::OUString sVendor3(RTL_CONSTASCII_USTRINGPARAM("Blackdown Java-Linux Team"));
c76e883
     rtl::OUString sVendor4(RTL_CONSTASCII_USTRINGPARAM("Apple Inc."));
c76e883
@@ -121,6 +122,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
c76e883
     rtl::OUString sVendor8(RTL_CONSTASCII_USTRINGPARAM("The FreeBSD Foundation"));
c76e883
     if ( ! (sVendor1.equals(pInfo->sVendor) == sal_True
c76e883
             || sVendor2.equals(pInfo->sVendor) == sal_True
c76e883
+            || sVendor9.equals(pInfo->sVendor) == sal_True
c76e883
             || sVendor3.equals(pInfo->sVendor) == sal_True
c76e883
             || sVendor4.equals(pInfo->sVendor) == sal_True
c76e883
             || sVendor5.equals(pInfo->sVendor) == sal_True
c76e883
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx b/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx
c76e883
index f24b6ff..5e87002 100644
c76e883
--- a/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx
c76e883
+++ b/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx
c76e883
@@ -52,6 +52,7 @@ namespace jfw_plugin
c76e883
  */
c76e883
 BEGIN_VENDOR_MAP()
c76e883
     VENDOR_MAP_ENTRY("Sun Microsystems Inc.", SunInfo)
c76e883
+    VENDOR_MAP_ENTRY("Oracle Corporation", SunInfo)
c76e883
     VENDOR_MAP_ENTRY("IBM Corporation", OtherInfo)
c76e883
     VENDOR_MAP_ENTRY("Blackdown Java-Linux Team", OtherInfo)
c76e883
     VENDOR_MAP_ENTRY("Apple Inc.", OtherInfo)
c76e883
-- 
c76e883
1.7.6.4
c76e883