geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r582367 - /geronimo/server/trunk/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/SurefireXMLGeneratorMojo.java
Date Fri, 05 Oct 2007 18:11:11 GMT
Author: gawor
Date: Fri Oct  5 11:11:01 2007
New Revision: 582367

URL: http://svn.apache.org/viewvc?rev=582367&view=rev
Log:
remove commas before converting to float

Modified:
    geronimo/server/trunk/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/SurefireXMLGeneratorMojo.java

Modified: geronimo/server/trunk/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/SurefireXMLGeneratorMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/SurefireXMLGeneratorMojo.java?rev=582367&r1=582366&r2=582367&view=diff
==============================================================================
--- geronimo/server/trunk/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/SurefireXMLGeneratorMojo.java
(original)
+++ geronimo/server/trunk/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/SurefireXMLGeneratorMojo.java
Fri Oct  5 11:11:01 2007
@@ -178,10 +178,15 @@
             int skippedNum = Integer.parseInt(parent_skipped) + Integer.parseInt(skipped);
             int errorsNum = Integer.parseInt(parent_errors) + Integer.parseInt(errors);
             int failuresNum = Integer.parseInt(parent_failures) + Integer.parseInt(failures);
-            float timeNum = Float.parseFloat(parent_time) + Float.parseFloat(time);
+            float timeNum = getTime(parent_time) + getTime(time);
 
             writeParentXML(testsNum,skippedNum,errorsNum,failuresNum,timeNum,artifactName,parentSurefireXMLFile);
         }
+    }
+
+    private float getTime(String time) {
+        time = time.replaceAll(",","");
+        return Float.parseFloat(time);
     }
 
     /**



Mime
View raw message