From b2197626fde63249f99e14e049423b87560b5f9a Mon Sep 17 00:00:00 2001 From: Joachim Lingner Date: Tue, 18 May 2004 08:03:37 +0000 Subject: #i20052# --- jvmfwk/source/fwkutil.cxx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'jvmfwk/source/fwkutil.cxx') 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, -- cgit