mirror of https://github.com/apache/maven.git
rollback system properties change, it didn't do what I thought it did
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@289147 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
59c6e617ff
commit
7c57e8db00
|
@ -483,20 +483,17 @@ public class MavenCli
|
|||
// are most dominant.
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
Properties systemProperties = new Properties();
|
||||
if ( commandLine.hasOption( CLIManager.SET_SYSTEM_PROPERTY ) )
|
||||
{
|
||||
String[] defStrs = commandLine.getOptionValues( CLIManager.SET_SYSTEM_PROPERTY );
|
||||
for ( int i = 0; i < defStrs.length; ++i )
|
||||
{
|
||||
setCliProperty( defStrs[i], systemProperties );
|
||||
setCliProperty( defStrs[i] );
|
||||
}
|
||||
}
|
||||
|
||||
System.setProperties( systemProperties );
|
||||
}
|
||||
|
||||
private static void setCliProperty( String property, Properties systemProperties )
|
||||
private static void setCliProperty( String property )
|
||||
{
|
||||
String name;
|
||||
|
||||
|
@ -517,7 +514,7 @@ public class MavenCli
|
|||
value = property.substring( i + 1 ).trim();
|
||||
}
|
||||
|
||||
systemProperties.setProperty( name, value );
|
||||
System.setProperty( name, value );
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue