test if properties were provided

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169498 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-05-10 17:00:09 +00:00
parent f0248e0084
commit f9360a13d9
1 changed files with 8 additions and 5 deletions

View File

@ -168,12 +168,15 @@ public class SurefirePlugin
System.setProperty( "basedir", basedir );
// Add all system properties configured by the user
Enumeration propertyKeys = systemProperties.propertyNames();
while ( propertyKeys.hasMoreElements() )
if ( systemProperties != null )
{
String key = (String) propertyKeys.nextElement();
System.setProperty( key, systemProperties.getProperty( key ) );
getLog().debug( "Setting system property [" + key + "]=[" + systemProperties.getProperty( key ) + "]" );
Enumeration propertyKeys = systemProperties.propertyNames();
while ( propertyKeys.hasMoreElements() )
{
String key = (String) propertyKeys.nextElement();
System.setProperty( key, systemProperties.getProperty( key ) );
getLog().debug( "Setting system property [" + key + "]=[" + systemProperties.getProperty( key ) + "]" );
}
}
// TODO: we should really just trust the plugin classloader?