MPLUGIN-70: Make plugin highlight deprecated goals in the plugin overview

Submitted by: Benjamin Bentmann
Reviewed by: Vincent Siveton

o applied

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@620116 13f79535-47bb-0310-9956-ffa450edef68
master
Vincent Siveton 2008-02-09 14:08:28 +00:00
parent 271d72ffe4
commit da2a058a67
3 changed files with 9 additions and 1 deletions

View File

@ -278,11 +278,17 @@ public class PluginReport
String goalDocumentationLink = "./" + mojo.getGoal() + "-mojo.html"; String goalDocumentationLink = "./" + mojo.getGoal() + "-mojo.html";
String description = mojo.getDescription(); String description = mojo.getDescription();
if ( StringUtils.isEmpty( mojo.getDescription() ) ) if ( StringUtils.isEmpty( description ) )
{ {
description = getBundle( locale ).getString( "report.plugin.goal.nodescription" ); description = getBundle( locale ).getString( "report.plugin.goal.nodescription" );
} }
String deprecated = mojo.getDeprecated();
if ( StringUtils.isNotEmpty( deprecated ) )
{
description = "<strong>" + getBundle( locale ).getString( "report.plugin.goal.deprecated" ) + "</strong> " + description;
}
sink.tableRow(); sink.tableRow();
tableCell( createLinkPatternedText( goalName, goalDocumentationLink ) ); tableCell( createLinkPatternedText( goalName, goalDocumentationLink ) );
tableCell( description, true ); tableCell( description, true );

View File

@ -26,6 +26,7 @@ report.plugin.goals.intro=Goals available for this plugin:
report.plugin.goals.column.goal=Goal report.plugin.goals.column.goal=Goal
report.plugin.goals.column.description=Description report.plugin.goals.column.description=Description
report.plugin.goal.nodescription=No description. report.plugin.goal.nodescription=No description.
report.plugin.goal.deprecated=Deprecated.
report.plugin.systemrequirements=System Requirements report.plugin.systemrequirements=System Requirements
report.plugin.systemrequirements.intro=The following specifies the minimum requirements to run this Maven plugin: report.plugin.systemrequirements.intro=The following specifies the minimum requirements to run this Maven plugin:

View File

@ -26,6 +26,7 @@ report.plugin.goals.intro=Goals disponibles pour ce plugin:
report.plugin.goals.column.goal=Goal report.plugin.goals.column.goal=Goal
report.plugin.goals.column.description=Description report.plugin.goals.column.description=Description
report.plugin.goal.nodescription=Pas de description. report.plugin.goal.nodescription=Pas de description.
report.plugin.goal.deprecated=Obsol\u00e8te.
report.plugin.systemrequirements=Exigences Syst\u00e8mes report.plugin.systemrequirements=Exigences Syst\u00e8mes
report.plugin.systemrequirements.intro=Ce qui suit sp\u00e9cifie les exigences minimales pour \u00e9x\u00e9cuter ce plugin Maven: report.plugin.systemrequirements.intro=Ce qui suit sp\u00e9cifie les exigences minimales pour \u00e9x\u00e9cuter ce plugin Maven: