mirror of https://github.com/apache/maven.git
o fix typo causing NPE setting properties
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@543756 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e8fc77cccd
commit
885409f569
|
@ -267,7 +267,26 @@ public class DefaultMavenExecutionRequest
|
|||
|
||||
public MavenExecutionRequest setProperties( Properties properties )
|
||||
{
|
||||
this.properties = properties;
|
||||
if ( this.properties == null )
|
||||
{
|
||||
this.properties = properties;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.properties.putAll( properties );
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
public MavenExecutionRequest setProperty( String key, String value )
|
||||
{
|
||||
if ( properties == null )
|
||||
{
|
||||
properties = new Properties();
|
||||
}
|
||||
|
||||
properties.setProperty( key, value );
|
||||
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue