ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r705001 - /ant/ivy/core/trunk/src/java/org/apache/ivy/ant/AntBuildTrigger.java
Date Wed, 15 Oct 2008 19:34:00 GMT
Author: maartenc
Date: Wed Oct 15 12:34:00 2008
New Revision: 705001

URL: http://svn.apache.org/viewvc?rev=705001&view=rev
Log:
Fixed junit test failure: don't pass properties with null values

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/ant/AntBuildTrigger.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/ant/AntBuildTrigger.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/ant/AntBuildTrigger.java?rev=705001&r1=705000&r2=705001&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/ant/AntBuildTrigger.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/ant/AntBuildTrigger.java Wed Oct 15 12:34:00
2008
@@ -95,9 +95,11 @@
                 for (Iterator iter = atts.keySet().iterator(); iter.hasNext();) {
                     String key = (String) iter.next();
                     String value = (String) atts.get(key);
-                    Property p = ant.createProperty();
-                    p.setName(prefix == null ? key : prefix + key);
-                    p.setValue(value);
+                    if (value != null) {
+                        Property p = ant.createProperty();
+                        p.setName(prefix == null ? key : prefix + key);
+                        p.setValue(value);
+                    }
                 }
 
                 Message.verbose("triggering build: " + f + " target=" + target + " for "
+ event);



Mime
View raw message