mirror of https://github.com/apache/maven.git
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:
parent
8e007306d2
commit
adf0b523c9
|
@ -309,6 +309,12 @@ public class PluginXdocGenerator
|
|||
|
||||
w.startElement( "th" );
|
||||
|
||||
w.writeText( "Default Value" );
|
||||
|
||||
w.endElement(); // th
|
||||
|
||||
w.startElement( "th" );
|
||||
|
||||
w.writeText( "Description" );
|
||||
|
||||
w.endElement(); // th
|
||||
|
@ -406,6 +412,27 @@ public class PluginXdocGenerator
|
|||
|
||||
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() ) )
|
||||
{
|
||||
w.writeMarkup( parameter.getDescription() );
|
||||
|
|
Loading…
Reference in New Issue