Submitted by: Vincent Massol

allow spaces in local repository path


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@191293 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-06-18 15:57:58 +00:00
parent a72409b091
commit 20e6d21710
1 changed files with 4 additions and 2 deletions

View File

@ -499,8 +499,10 @@ public void executeGoals( Properties properties, String filename )
String key = (String) i.next();
cli.createArgument().setLine( "-D" + key + "=" + properties.getProperty( key ) );
}
cli.createArgument().setLine( "-Dmaven.repo.local=" + localRepo );
// 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(); )
{