ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r535312 - /ant/core/trunk/src/main/org/apache/tools/ant/Project.java
Date Fri, 04 May 2007 16:14:49 GMT
Author: peterreilly
Date: Fri May  4 09:14:49 2007
New Revision: 535312

URL: http://svn.apache.org/viewvc?view=rev&rev=535312
Log:
Bugzilla 42334: System properties may be none string objects

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/Project.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/Project.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/Project.java?view=diff&rev=535312&r1=535311&r2=535312
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/Project.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/Project.java Fri May  4 09:14:49 2007
@@ -910,7 +910,9 @@
         while (e.hasMoreElements()) {
             String propertyName = (String) e.nextElement();
             String value = systemP.getProperty(propertyName);
-            this.setPropertyInternal(propertyName, value);
+            if (value != null) {
+                this.setPropertyInternal(propertyName, value);
+            }
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message