add default value to the output

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@188651 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-06-07 01:22:08 +00:00
parent 8e007306d2
commit adf0b523c9
1 changed files with 27 additions and 0 deletions

View File

@ -309,6 +309,12 @@ public class PluginXdocGenerator
w.startElement( "th" ); w.startElement( "th" );
w.writeText( "Default Value" );
w.endElement(); // th
w.startElement( "th" );
w.writeText( "Description" ); w.writeText( "Description" );
w.endElement(); // th w.endElement(); // th
@ -406,6 +412,27 @@ public class PluginXdocGenerator
w.startElement( "td" ); w.startElement( "td" );
w.startElement( "code" );
if ( StringUtils.isNotEmpty( parameter.getDefaultValue() ) )
{
w.writeText( parameter.getDefaultValue() );
}
else
{
w.writeText( "-" );
}
w.endElement(); // code
w.endElement(); // td
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
w.startElement( "td" );
if ( StringUtils.isNotEmpty( parameter.getDescription() ) ) if ( StringUtils.isNotEmpty( parameter.getDescription() ) )
{ {
w.writeMarkup( parameter.getDescription() ); w.writeMarkup( parameter.getDescription() );