Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ public class HelpMojo
throws MojoException
{
String mojoGoal = getValue( mojo, "goal" );
Node configurationElement = findSingleChild( mojo, "configuration" );
Node description = findSingleChild( mojo, "description" );
if ( goal == null || goal.length() <= 0 || mojoGoal.equals( goal ) )
{
Expand Down Expand Up @@ -283,24 +282,18 @@ public class HelpMojo

for ( Node parameter : parameters )
{
writeParameter( sb, parameter, configurationElement );
writeParameter( sb, parameter );
}
}
}
}

private void writeParameter( StringBuilder sb, Node parameter, Node configurationElement )
private void writeParameter( StringBuilder sb, Node parameter )
throws MojoException
{
String parameterName = getValue( parameter, "name" );
String parameterDescription = getValue( parameter, "description" );

Element fieldConfigurationElement = null;
if ( configurationElement != null )
{
fieldConfigurationElement = (Element) findSingleChild( configurationElement, parameterName );
}

String parameterDefaultValue = getValueOr( parameter, "defaultValue", "" );
if ( isNotEmpty( parameterDefaultValue ) )
{
Expand Down