Author: jkuhnert
Date: Tue May  8 07:47:10 2007
New Revision: 536211

URL: http://svn.apache.org/viewvc?view=rev&rev=536211
Log:
Fixes non 1.4 compatible use of Integer.valueOf(int) .

Modified:
    
maven/sandbox/branches/surefire/surefire-collaboration/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java

Modified: 
maven/sandbox/branches/surefire/surefire-collaboration/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
URL: 
http://svn.apache.org/viewvc/maven/sandbox/branches/surefire/surefire-collaboration/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java?view=diff&rev=536211&r1=536210&r2=536211
==============================================================================
--- 
maven/sandbox/branches/surefire/surefire-collaboration/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
 (original)
+++ 
maven/sandbox/branches/surefire/surefire-collaboration/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
 Tue May  8 07:47:10 2007
@@ -471,8 +471,13 @@
             properties.put("excludegroups", this.excludedGroups);
         if (this.groups != null)
             properties.put("groups", this.groups);
-        if (this.threadCount > 0)
-            properties.put("threadcount", Integer.valueOf(this.threadCount));
+
+        try {
+            if (this.threadCount > 0)
+                properties.put("threadcount", new Integer(this.threadCount));
+        } catch (NumberFormatException e) {
+            //ignore 
+        }
 
         if (this.suiteXmlFiles != null) {
             String list = "";


Reply via email to