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;
                 }


Reply via email to