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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user