summaryrefslogtreecommitdiff
path: root/jvmfwk/source
diff options
context:
space:
mode:
Diffstat (limited to 'jvmfwk/source')
-rw-r--r--jvmfwk/source/fwkutil.cxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/jvmfwk/source/fwkutil.cxx b/jvmfwk/source/fwkutil.cxx
index 5fe8c7290579..c4eb8fa515e2 100644
--- a/jvmfwk/source/fwkutil.cxx
+++ b/jvmfwk/source/fwkutil.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fwkutil.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: jl $ $Date: 2004-05-18 08:37:33 $
+ * last change: $Author: jl $ $Date: 2004-05-18 09:03:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -439,6 +439,19 @@ rtl::OUString getVendorSettingsURL()
if (fileError == osl::FileBase::E_None)
return sVendor;
+ //Hack. try the so sub dir of the executable dir. Necessery for build process
+ //where javavendors.xml is delivered to ../bin/so for StarOffice
+ sVendor = getDirFromFile(ouExe);
+ sBufVendor.append(sVendor);
+ sBufVendor.appendAscii("/so/");
+ sBufVendor.appendAscii(VENDORSETTINGS);
+ sVendor = sBufVendor.makeStringAndClear();
+ //check if the file exists
+ fileError = osl::DirectoryItem::get(sVendor, vendorItem);
+ if (fileError == osl::FileBase::E_None)
+ return sVendor;
+
+
//try next to the jvmfwk.dll
rtl::OUString sLib;
if (osl_getModuleURLFromAddress((void *) & getVendorSettingsURL,