Author: ffang
Date: Tue Aug 14 07:01:05 2012
New Revision: 1372749
URL: http://svn.apache.org/viewvc?rev=1372749&view=rev
Log:
[KARAF-1066]add-features-to-repo should honor repository tag content have
whitespace tab, etc
Modified:
karaf/branches/karaf-2.3.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java
Modified:
karaf/branches/karaf-2.3.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java
URL:
http://svn.apache.org/viewvc/karaf/branches/karaf-2.3.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java?rev=1372749&r1=1372748&r2=1372749&view=diff
==============================================================================
---
karaf/branches/karaf-2.3.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java
(original)
+++
karaf/branches/karaf-2.3.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java
Tue Aug 14 07:01:05 2012
@@ -449,7 +449,7 @@ public class AddFeaturesToRepoMojo exten
continue;
}
Element e = (Element) nodes.item(i);
- repositories.add(e.getTextContent());
+ repositories.add(e.getTextContent().trim());
}
} catch (SAXException e) {
throw (IOException) new IOException().initCause(e);