maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r742091 - /maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java
Date Sun, 08 Feb 2009 13:23:56 GMT
Author: bentmann
Date: Sun Feb  8 13:23:56 2009
New Revision: 742091

URL: http://svn.apache.org/viewvc?rev=742091&view=rev
Log:
o Fixed passing of system properties with spaces

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

Modified: maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java?rev=742091&r1=742090&r2=742091&view=diff
==============================================================================
--- maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java (original)
+++ maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java Sun
Feb  8 13:23:56 2009
@@ -1230,7 +1230,8 @@
             for ( Iterator i = systemProperties.keySet().iterator(); i.hasNext(); )
             {
                 String key = (String) i.next();
-                cli.createArgument().setLine( "-D" + key + "=" + systemProperties.getProperty(
key ) );
+                String value = systemProperties.getProperty( key );
+                cli.createArgument().setValue( "-D" + key + "=" + value );
             }
 
             /*
@@ -1244,9 +1245,7 @@
 
             if ( useMavenRepoLocal )
             {
-                // 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 +
"\"" );
+                cli.createArgument().setValue( "-Dmaven.repo.local=" + localRepo );
             }
 
             for ( Iterator i = allGoals.iterator(); i.hasNext(); )



Mime
View raw message