Author: maartenc
Date: Mon Aug 9 20:56:37 2010
New Revision: 983820
URL: http://svn.apache.org/viewvc?rev=983820&view=rev
Log:
IMPROVEMENT: Handle attributes in description subelements (IVY-1214) (thanks to
Jean-Louis Boudart)
Modified:
ant/ivy/core/trunk/CHANGES.txt
ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java
Modified: ant/ivy/core/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/ant/ivy/core/trunk/CHANGES.txt?rev=983820&r1=983819&r2=983820&view=diff
==============================================================================
--- ant/ivy/core/trunk/CHANGES.txt (original)
+++ ant/ivy/core/trunk/CHANGES.txt Mon Aug 9 20:56:37 2010
@@ -110,6 +110,7 @@ for detailed view of each issue, please
trunk
=====================================
+- IMPROVEMENT: Handle attributes in description subelements (IVY-1214) (thanks
to Jean-Louis Boudart)
- IMPROVEMENT: Use IvyAuthenticator only when it is really necessary (IVY-1211)
- IMPROVEMENT: ivy:makepom now has an option to disable the generation of an
extra Ivy comment block in the POM
- IMPROVEMENT: ivy:makepom now accepts a list of configurations to include
(IVY-1005) (thanks to Jesper Pedersen)
Modified:
ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java
URL:
http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java?rev=983820&r1=983819&r2=983820&view=diff
==============================================================================
---
ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java
(original)
+++
ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java
Mon Aug 9 20:56:37 2010
@@ -281,7 +281,15 @@ public class XmlModuleDescriptorParser e
try {
if (state == State.DESCRIPTION) {
// make sure we don't interpret any tag while in
description tag
- buffer.append("<" + qName + ">");
+ getBuffer().append("<").append(qName);
+ for (int i = 0; i < attributes.getLength(); i++) {
+ getBuffer().append(" ");
+ getBuffer().append(attributes.getQName(i));
+ getBuffer().append("=\"");
+ getBuffer().append(attributes.getValue(i));
+ getBuffer().append("\"");
+ }
+ getBuffer().append(">");
return;
} else if ("ivy-module".equals(qName)) {
ivyModuleStarted(attributes);