mirror of https://github.com/apache/maven.git
*** empty log message ***
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163279 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
721ba85844
commit
153d46aa2f
|
@ -124,6 +124,14 @@ public class GoalAttainmentPhase
|
|||
|
||||
Object value = PluginParameterExpressionEvaluator.evaluate( expression, context );
|
||||
|
||||
if ( value == null )
|
||||
{
|
||||
if ( parameter.getDefaultValue() != null )
|
||||
{
|
||||
value = parameter.getDefaultValue();
|
||||
}
|
||||
}
|
||||
|
||||
map.put( key, value );
|
||||
}
|
||||
|
||||
|
|
|
@ -264,6 +264,8 @@ public abstract class AbstractGenerator
|
|||
|
||||
pd.setDescription( parameter.getNamedParameter( "description" ) );
|
||||
|
||||
pd.setDefaultValue( parameter.getNamedParameter( "default" ) );
|
||||
|
||||
parameters.add( pd );
|
||||
}
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ public class PluginDescriptorGenerator
|
|||
|
||||
element( w, "description", parameter.getDescription() );
|
||||
|
||||
element( w, "defaultValue", parameter.getDefaultValue() );
|
||||
element( w, "default", parameter.getDefaultValue() );
|
||||
|
||||
w.endElement();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue