You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by br...@apache.org on 2005/07/26 07:13:32 UTC

svn commit: r225233 - /maven/components/trunk/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java

Author: brett
Date: Mon Jul 25 22:13:27 2005
New Revision: 225233

URL: http://svn.apache.org/viewcvs?rev=225233&view=rev
Log:
lines may have spaces - use setLine instead of setValue

Modified:
    maven/components/trunk/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java

Modified: maven/components/trunk/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java?rev=225233&r1=225232&r2=225233&view=diff
==============================================================================
--- maven/components/trunk/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java (original)
+++ maven/components/trunk/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java Mon Jul 25 22:13:27 2005
@@ -187,7 +187,7 @@
                 throw new VerificationException( e );
             }
         }
-        
+
         return lines;
     }
 
@@ -465,7 +465,7 @@
         String mavenHome = System.getProperty( "maven.home" );
 
         List goals = loadFile( basedir, filename );
-        
+
         List cliOptions = loadFile( basedir, "cli-options.txt" );
 
         if ( goals.size() == 0 )
@@ -498,20 +498,20 @@
             }
 
             cli.setExecutable( executable );
-            
+
             for ( Iterator it = cliOptions.iterator(); it.hasNext(); )
             {
                 String key = (String) it.next();
-                cli.createArgument().setValue(key);
+                cli.createArgument().setLine( key );
             }
 
             cli.createArgument().setValue( "-e" );
 //            cli.createArgument().setValue( "-X" );
-            
+
             cli.createArgument().setValue( "--no-plugin-registry" );
-            
+
             cli.createArgument().setValue( "--check-plugin-latest" );
-            
+
             cli.createArgument().setValue( "--batch-mode" );
 
             for ( Iterator i = properties.keySet().iterator(); i.hasNext(); )
@@ -519,9 +519,9 @@
                 String key = (String) i.next();
                 cli.createArgument().setLine( "-D" + key + "=" + properties.getProperty( key ) );
             }
-            
-            // Note: Make sure that the repo is surrounded by quotes as it can possibly have 
-            // spaces in its path.            
+
+            // Note: Make sure that the repo is surrounded by quotes as it can possibly have
+            // spaces in its path.
             cli.createArgument().setLine( "-Dmaven.repo.local=" + "\"" + localRepo + "\"" );
 
             for ( Iterator i = allGoals.iterator(); i.hasNext(); )
@@ -581,7 +581,7 @@
     public static void main( String args[] )
     {
         String basedir = System.getProperty( "user.dir" );
-        
+
         localRepo = retrieveLocalRepo();
 
         List tests = null;
@@ -619,7 +619,7 @@
                 verifier.executeHook( "prebuild-hook.txt" );
 
                 Properties properties = verifier.loadProperties( "system.properties" );
-                
+
                 Properties controlProperties = verifier.loadProperties( "verifier.properties" );
 
                 boolean chokeOnErrorOutput = Boolean.valueOf( controlProperties.getProperty( "failOnErrorOutput", "true" ) ).booleanValue();



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org