diff options
-rw-r--r-- | jvmfwk/source/fwkbase.cxx | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/jvmfwk/source/fwkbase.cxx b/jvmfwk/source/fwkbase.cxx index 77ec7906a8c0..1071996a6923 100644 --- a/jvmfwk/source/fwkbase.cxx +++ b/jvmfwk/source/fwkbase.cxx @@ -4,9 +4,9 @@ * * $RCSfile: fwkbase.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: obo $ $Date: 2007-06-13 07:57:54 $ + * last change: $Author: vg $ $Date: 2008-03-18 12:22:17 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -104,6 +104,15 @@ rtl::OUString getParam(const char * name) return retVal; } +rtl::OUString getParamFirstUrl(const char * name) +{ + // Some parameters can consist of multiple URLs (separated by space + // characters, although trim() harmlessly also removes other white-space), + // of which only the first is used: + sal_Int32 i = 0; + return getParam(name).trim().getToken(0, ' ', i); +} + }//blind namespace @@ -362,12 +371,12 @@ OUString VendorSettings::getPluginLibrary(const OUString& sVendor) rtl::OUString BootParams::getUserData() { - return getParam(UNO_JAVA_JFW_USER_DATA); + return getParamFirstUrl(UNO_JAVA_JFW_USER_DATA); } rtl::OUString BootParams::getSharedData() { - return getParam(UNO_JAVA_JFW_SHARED_DATA); + return getParamFirstUrl(UNO_JAVA_JFW_SHARED_DATA); } rtl::OUString BootParams::getInstallData() |