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-ffa450edef68master
parent
271d72ffe4
commit
da2a058a67
|
|
@ -278,11 +278,17 @@ public class PluginReport
|
|||
String goalDocumentationLink = "./" + mojo.getGoal() + "-mojo.html";
|
||||
|
||||
String description = mojo.getDescription();
|
||||
if ( StringUtils.isEmpty( mojo.getDescription() ) )
|
||||
if ( StringUtils.isEmpty( description ) )
|
||||
{
|
||||
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();
|
||||
tableCell( createLinkPatternedText( goalName, goalDocumentationLink ) );
|
||||
tableCell( description, true );
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ report.plugin.goals.intro=Goals available for this plugin:
|
|||
report.plugin.goals.column.goal=Goal
|
||||
report.plugin.goals.column.description=Description
|
||||
report.plugin.goal.nodescription=No description.
|
||||
report.plugin.goal.deprecated=Deprecated.
|
||||
|
||||
report.plugin.systemrequirements=System Requirements
|
||||
report.plugin.systemrequirements.intro=The following specifies the minimum requirements to run this Maven plugin:
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ report.plugin.goals.intro=Goals disponibles pour ce plugin:
|
|||
report.plugin.goals.column.goal=Goal
|
||||
report.plugin.goals.column.description=Description
|
||||
report.plugin.goal.nodescription=Pas de description.
|
||||
report.plugin.goal.deprecated=Obsol\u00e8te.
|
||||
|
||||
report.plugin.systemrequirements=Exigences Syst\u00e8mes
|
||||
report.plugin.systemrequirements.intro=Ce qui suit sp\u00e9cifie les exigences minimales pour \u00e9x\u00e9cuter ce plugin Maven:
|
||||
|
|
|
|||
Loading…
Reference in New Issue