Author: jonesde
Date: Tue Sep 18 02:24:19 2007
New Revision: 576796
URL:
http://svn.apache.org/viewvc?rev=576796&view=revLog:
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
Modified:
ofbiz/trunk/framework/base/src/base/org/ofbiz/base/component/ComponentConfig.java
Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/component/ComponentConfig.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/component/ComponentConfig.java?rev=576796&r1=576795&r2=576796&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/component/ComponentConfig.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/component/ComponentConfig.java Tue Sep 18 02:24:19 2007
@@ -33,6 +33,8 @@
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 @@
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);
}