You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by ma...@apache.org on 2013/02/26 16:54:29 UTC

svn commit: r1450237 - /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorUpdater.java

Author: maartenc
Date: Tue Feb 26 15:54:28 2013
New Revision: 1450237

URL: http://svn.apache.org/r1450237
Log:
Don't write empty inherited descriptors...

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=1450237&r1=1450236&r2=1450237&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 Tue Feb 26 15:54:28 2013
@@ -1031,7 +1031,7 @@ public final class XmlModuleDescriptorUp
             if (!hasDescription) {
                 hasDescription = true;
                 String description = merged.getDescription();
-                if (description != null) {
+                if ((description != null) && (description.length() > 0)) {
                     PrintWriter writer = getWriter();
                     if (justOpen != null) {
                         writer.println(">");