Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 53404 invoked from network); 9 Aug 2010 20:57:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Aug 2010 20:57:55 -0000 Received: (qmail 31233 invoked by uid 500); 9 Aug 2010 20:57:55 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 31178 invoked by uid 500); 9 Aug 2010 20:57:55 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 31171 invoked by uid 99); 9 Aug 2010 20:57:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 20:57:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 20:57:54 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EBACA23889EA; Mon, 9 Aug 2010 20:56:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r983820 - in /ant/ivy/core/trunk: CHANGES.txt src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java Date: Mon, 09 Aug 2010 20:56:37 -0000 To: notifications@ant.apache.org From: maartenc@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100809205637.EBACA23889EA@eris.apache.org> 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);