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:
Brett Leslie Porter 2005-09-15 04:52:10 +00:00
parent 59c6e617ff
commit 7c57e8db00
1 changed files with 3 additions and 6 deletions

View File

@ -483,20 +483,17 @@ public class MavenCli
// are most dominant. // are most dominant.
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
Properties systemProperties = new Properties();
if ( commandLine.hasOption( CLIManager.SET_SYSTEM_PROPERTY ) ) if ( commandLine.hasOption( CLIManager.SET_SYSTEM_PROPERTY ) )
{ {
String[] defStrs = commandLine.getOptionValues( CLIManager.SET_SYSTEM_PROPERTY ); String[] defStrs = commandLine.getOptionValues( CLIManager.SET_SYSTEM_PROPERTY );
for ( int i = 0; i < defStrs.length; ++i ) 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; String name;
@ -517,7 +514,7 @@ public class MavenCli
value = property.substring( i + 1 ).trim(); value = property.substring( i + 1 ).trim();
} }
systemProperties.setProperty( name, value ); System.setProperty( name, value );
} }
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------