maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r380010 - /maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/report/XMLReporter.java
Date Thu, 23 Feb 2006 00:58:36 GMT
Author: carlos
Date: Wed Feb 22 16:58:33 2006
New Revision: 380010

URL: http://svn.apache.org/viewcvs?rev=380010&view=rev
Log:
When a system property value is null, resulting xml reports are cropped
PR: SUREFIRE-32

Modified:
    maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/report/XMLReporter.java

Modified: maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/report/XMLReporter.java
URL: http://svn.apache.org/viewcvs/maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/report/XMLReporter.java?rev=380010&r1=380009&r2=380010&view=diff
==============================================================================
--- maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/report/XMLReporter.java
(original)
+++ maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/report/XMLReporter.java
Wed Feb 22 16:58:33 2006
@@ -246,13 +246,20 @@
             while ( propertyKeys.hasMoreElements() )
             {
                 String key = (String) propertyKeys.nextElement();
+
+                String value = systemProperties.getProperty( key );
                 
+                if ( value == null )
+                {
+                    value = "null";
+                }
+
                 property = createElement(properties,"property");
-                
+
                 property.setAttribute("name", key);
-        
-                property.setAttribute("value", systemProperties.getProperty( key ));
-        
+
+                property.setAttribute("value", value);
+
             }
         }
     }



Mime
View raw message