From 8da94ddff4e557ea2599a77ae74e7bc418beea07 Mon Sep 17 00:00:00 2001 From: "David E. Jones" Date: Tue, 18 Sep 2007 09:24:19 +0000 Subject: [PATCH] Changed to use FlexibleLocation so that for url resource loaders in component config files you can use the component:// style url for resources in components git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576796 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/base/org/ofbiz/base/component/ComponentConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/base/src/base/org/ofbiz/base/component/ComponentConfig.java b/framework/base/src/base/org/ofbiz/base/component/ComponentConfig.java index 77f5327a2c..1cc2f545b8 100644 --- a/framework/base/src/base/org/ofbiz/base/component/ComponentConfig.java +++ b/framework/base/src/base/org/ofbiz/base/component/ComponentConfig.java @@ -33,6 +33,8 @@ import javax.xml.parsers.ParserConfigurationException; import javolution.util.FastList; import javolution.util.FastMap; + +import org.ofbiz.base.location.FlexibleLocation; import org.ofbiz.base.util.*; import org.w3c.dom.Document; import org.w3c.dom.Element; @@ -488,7 +490,7 @@ public class ComponentConfig { String fullLocation = getFullLocation(resourceLoaderName, location); URL url = null; try { - url = new URL(fullLocation); + url = FlexibleLocation.resolveLocation(location); } catch (java.net.MalformedURLException e) { throw new ComponentException("Error with malformed URL while trying to load URL resource at location [" + fullLocation + "]", e); }