Author: gnodet
Date: Thu Sep 27 02:55:29 2007
New Revision: 579963
URL: http://svn.apache.org/viewvc?rev=579963&view=rev
Log:
SM-952: ClassLoaderXmlPreprocessor not able to load shared libraries from
xbean.xml
Modified:
incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/ClassLoaderXmlPreprocessor.java
Modified:
incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/ClassLoaderXmlPreprocessor.java
URL:
http://svn.apache.org/viewvc/incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/ClassLoaderXmlPreprocessor.java?rev=579963&r1=579962&r2=579963&view=diff
==============================================================================
---
incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/ClassLoaderXmlPreprocessor.java
(original)
+++
incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/ClassLoaderXmlPreprocessor.java
Thu Sep 27 02:55:29 2007
@@ -174,7 +174,7 @@
List<String> sls = new ArrayList<String>();
NodeList libraries =
classpathElement.getElementsByTagName("library");
for (int i = 0; i < libraries.getLength(); i++) {
- Element locationElement = (Element) locations.item(i);
+ Element locationElement = (Element) libraries.item(i);
String library = ((Text)
locationElement.getFirstChild()).getData().trim();
sls.add(library);
}
@@ -186,7 +186,7 @@
List<String> components = new ArrayList<String>();
NodeList componentList =
classpathElement.getElementsByTagName("component");
for (int i = 0; i < componentList.getLength(); i++) {
- Element locationElement = (Element) locations.item(i);
+ Element locationElement = (Element) componentList.item(i);
String component = ((Text)
locationElement.getFirstChild()).getData().trim();
components.add(component);
}