maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r620116 - in /maven/plugin-tools/trunk/maven-plugin-plugin/src/main: java/org/apache/maven/plugin/plugin/PluginReport.java resources/plugin-report.properties resources/plugin-report_fr.properties
Date Sat, 09 Feb 2008 14:08:29 GMT
Author: vsiveton
Date: Sat Feb  9 06:08:28 2008
New Revision: 620116

URL: http://svn.apache.org/viewvc?rev=620116&view=rev
Log:
MPLUGIN-70: Make plugin highlight deprecated goals in the plugin overview
Submitted by: Benjamin Bentmann
Reviewed by: Vincent Siveton

o applied

Modified:
    maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java
    maven/plugin-tools/trunk/maven-plugin-plugin/src/main/resources/plugin-report.properties
    maven/plugin-tools/trunk/maven-plugin-plugin/src/main/resources/plugin-report_fr.properties

Modified: maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java?rev=620116&r1=620115&r2=620116&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java
(original)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java
Sat Feb  9 06:08:28 2008
@@ -278,9 +278,15 @@
                     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();

Modified: maven/plugin-tools/trunk/maven-plugin-plugin/src/main/resources/plugin-report.properties
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/main/resources/plugin-report.properties?rev=620116&r1=620115&r2=620116&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/main/resources/plugin-report.properties
(original)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/main/resources/plugin-report.properties
Sat Feb  9 06:08:28 2008
@@ -26,6 +26,7 @@
 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:

Modified: maven/plugin-tools/trunk/maven-plugin-plugin/src/main/resources/plugin-report_fr.properties
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/main/resources/plugin-report_fr.properties?rev=620116&r1=620115&r2=620116&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/main/resources/plugin-report_fr.properties
(original)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/main/resources/plugin-report_fr.properties
Sat Feb  9 06:08:28 2008
@@ -26,6 +26,7 @@
 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:



Mime
View raw message