[MPLUGIN-262] fixed mojo deprecation too

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590392 13f79535-47bb-0310-9956-ffa450edef68
master
Herve Boutemy 2014-04-27 13:38:36 +00:00
parent 4f4c32b9dc
commit 8f0a5ee56a
2 changed files with 5 additions and 3 deletions

View File

@ -2,6 +2,8 @@
Tests generation and compilation of the help mojo.
help:test
Deprecated. As of 1.0, use the "quoted" goal instead.
MOJO-DESCRIPTION. Some 'quotation' marks and backslashes '\\', some important
javadoc
and an inline link to AnotherMojo.

View File

@ -282,16 +282,16 @@ public class HelpMojo
{
append( sb, goalPrefix + ":" + mojoGoal, 0 );
Node deprecated = findSingleChild( mojo, "deprecated" );
if ( ( deprecated != null ) && isNotEmpty( deprecated.getNodeValue() ) )
if ( ( deprecated != null ) && isNotEmpty( deprecated.getTextContent() ) )
{
append( sb, "Deprecated. " + deprecated, 1 );
append( sb, "Deprecated. " + deprecated.getTextContent(), 1 );
if ( detail && description != null )
{
append( sb, "", 0 );
append( sb, description.getTextContent(), 1 );
}
}
else if (description != null )
else if ( description != null )
{
append( sb, description.getTextContent(), 1 );
}