You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2014/04/27 15:38:37 UTC
svn commit: r1590392 - in /maven/plugin-tools/trunk:
maven-plugin-plugin/src/it/help-basic/expected-help.txt
maven-plugin-tools-generators/src/main/resources/help-class-source.vm
Author: hboutemy
Date: Sun Apr 27 13:38:36 2014
New Revision: 1590392
URL: http://svn.apache.org/r1590392
Log:
[MPLUGIN-262] fixed mojo deprecation too
Modified:
maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/expected-help.txt
maven/plugin-tools/trunk/maven-plugin-tools-generators/src/main/resources/help-class-source.vm
Modified: maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/expected-help.txt
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/expected-help.txt?rev=1590392&r1=1590391&r2=1590392&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/expected-help.txt (original)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/it/help-basic/expected-help.txt Sun Apr 27 13:38:36 2014
@@ -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.
Modified: maven/plugin-tools/trunk/maven-plugin-tools-generators/src/main/resources/help-class-source.vm
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-tools-generators/src/main/resources/help-class-source.vm?rev=1590392&r1=1590391&r2=1590392&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-tools-generators/src/main/resources/help-class-source.vm (original)
+++ maven/plugin-tools/trunk/maven-plugin-tools-generators/src/main/resources/help-class-source.vm Sun Apr 27 13:38:36 2014
@@ -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 );
}