ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xav...@apache.org
Subject svn commit: r618005 - /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorUpdater.java
Date Sun, 03 Feb 2008 15:44:13 GMT
Author: xavier
Date: Sun Feb  3 07:44:07 2008
New Revision: 618005

URL: http://svn.apache.org/viewvc?rev=618005&view=rev
Log:
handle empty conf attribute as if none were specified

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorUpdater.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorUpdater.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorUpdater.java?rev=618005&r1=618004&r2=618005&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorUpdater.java
(original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorUpdater.java
Sun Feb  3 07:44:07 2008
@@ -366,7 +366,8 @@
             ExtendedBuffer buffer = new ExtendedBuffer(getContext());
             buffers.push(buffer);
             confAttributeBuffers.push(buffer);
-            buffer.setDefaultPrint(attributes.getValue("conf") == null);
+            buffer.setDefaultPrint(attributes.getValue("conf") == null
+                || attributes.getValue("conf").trim().length() == 0);
             write("<dependency");
             String org = substitute(settings, attributes.getValue("org"));
             org = org == null ? organisation : org;



Mime
View raw message