Return-Path: Delivered-To: apmail-maven-commits-archive@www.apache.org Received: (qmail 49191 invoked from network); 9 Feb 2008 14:08:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Feb 2008 14:08:51 -0000 Received: (qmail 13568 invoked by uid 500); 9 Feb 2008 14:08:44 -0000 Delivered-To: apmail-maven-commits-archive@maven.apache.org Received: (qmail 13514 invoked by uid 500); 9 Feb 2008 14:08:44 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 13500 invoked by uid 99); 9 Feb 2008 14:08:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Feb 2008 06:08:44 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Feb 2008 14:08:22 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 50E0D1A9832; Sat, 9 Feb 2008 06:08:30 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@maven.apache.org From: vsiveton@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080209140830.50E0D1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 = "" + getBundle( locale ).getString( "report.plugin.goal.deprecated" ) + " " + 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: