You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by da...@apache.org on 2006/02/25 18:45:24 UTC
svn commit: r380959 -
/maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java
Author: dantran
Date: Sat Feb 25 09:45:22 2006
New Revision: 380959
URL: http://svn.apache.org/viewcvs?rev=380959&view=rev
Log:
use Map for systemProperties, MSUREFIRE-61
Modified:
maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java
Modified: maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java?rev=380959&r1=380958&r2=380959&view=diff
==============================================================================
--- maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java (original)
+++ maven/plugins/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/test/SurefirePlugin.java Sat Feb 25 09:45:22 2006
@@ -141,7 +141,7 @@
*
* @parameter
*/
- private Properties systemProperties;
+ private Map systemProperties;
/**
* List of of Plugin Artifacts.
@@ -397,15 +397,17 @@
// Add all system properties configured by the user
if ( systemProperties != null )
{
- Enumeration propertyKeys = systemProperties.propertyNames();
+ Iterator iter = systemProperties.keySet().iterator();
- while ( propertyKeys.hasMoreElements() )
+ while ( iter.hasNext() )
{
- String key = (String) propertyKeys.nextElement();
+ String key = (String) iter.next();
- System.setProperty( key, systemProperties.getProperty( key ) );
+ String value = (String) systemProperties.get( key );
- getLog().debug( "Setting system property [" + key + "]=[" + systemProperties.getProperty( key ) + "]" );
+ System.setProperty( key, value );
+
+ getLog().debug( "Setting system property [" + key + "]=[" + value + "]" );
}
}
}