mirror of https://github.com/apache/maven.git
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:
parent
f0248e0084
commit
f9360a13d9
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue