geronimo-scm mailing list archives

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

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

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

Modified: geronimo/server/branches/2.0/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/SurefireXMLGeneratorMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/SurefireXMLGeneratorMojo.java?rev=582369&r1=582368&r2=582369&view=diff
==============================================================================
--- geronimo/server/branches/2.0/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/SurefireXMLGeneratorMojo.java
(original)
+++ geronimo/server/branches/2.0/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/SurefireXMLGeneratorMojo.java
Fri Oct  5 11:18:26 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