maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r398631 - /maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
Date Mon, 01 May 2006 16:32:01 GMT
Author: brett
Date: Mon May  1 09:31:54 2006
New Revision: 398631

URL: http://svn.apache.org/viewcvs?rev=398631&view=rev
Log:
fix problems with the plexus utils split :(

Modified:
    maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java

Modified: maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
URL: http://svn.apache.org/viewcvs/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java?rev=398631&r1=398630&r2=398631&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
(original)
+++ maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
Mon May  1 09:31:54 2006
@@ -617,14 +617,14 @@
         Object[] paramObjects = null;
         if ( paramProperty != null )
         {
-            String[] params = StringUtils.split( paramProperty, "|" );
-            String[] types = StringUtils.split( typeProperty, "|" );
+            String[] params = StringUtils.split( StringUtils.replace( paramProperty, "||",
"| |" ), "|" );
+            String[] types = StringUtils.split( StringUtils.replace( typeProperty, "||",
"| |" ), "|" );
 
             paramObjects = new Object[params.length];
 
             for ( int i = 0; i < types.length; i++ )
             {
-                if ( types[i].length() == 0 )
+                if ( types[i].trim().length() == 0 )
                 {
                     params[i] = null;
                 }



Mime
View raw message