From 030713aa69bf5fb377ab11d40659f955eee617d6 Mon Sep 17 00:00:00 2001 From: Herve Boutemy Date: Mon, 4 Jun 2012 21:29:47 +0000 Subject: [PATCH] [MPLUGIN-208] HelpMojo class generated by helpmojo goal uses deprecated expression="${propertyName}" annotation instead of property="propertyName" git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1346166 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/resources/help-class-source.vm | 42 ++++--------------- 1 file changed, 9 insertions(+), 33 deletions(-) diff --git a/maven-plugin-tools-generators/src/main/resources/help-class-source.vm b/maven-plugin-tools-generators/src/main/resources/help-class-source.vm index 361e321..33d3224 100644 --- a/maven-plugin-tools-generators/src/main/resources/help-class-source.vm +++ b/maven-plugin-tools-generators/src/main/resources/help-class-source.vm @@ -18,7 +18,7 @@ import java.util.List; /** * Display help information on maven-plugin-plugin.
- * Call
 mvn plugin:help -Ddetail=true -Dgoal=<goal-name>
to display parameter details. + * Call mvn plugin:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. * @author * @version * @goal help @@ -31,57 +31,33 @@ public class HelpMojo /** * If true, display all settable properties for each goal. * + * @parameter property="detail" default-value="false" */ - //@Parameter( expression = "${detail}", defaultValue = "false" ) - //private boolean detail; - - /** - * The name of the goal for which to show help. If unspecified, all goals will be displayed. - * - */ - //@Parameter( expression = "${goal}" ) - //private java.lang.String goal; - - /** - * The maximum length of a display line, should be positive. - * - */ - //@Parameter( expression = "${lineLength}", defaultValue = "80" ) - //private int lineLength; - - /** - * The number of spaces per indentation level, should be positive. - * - */ - //@Parameter( expression = "${indentSize}", defaultValue = "2" ) - //private int indentSize; - - /** - * If true, display all settable properties for each goal. - * - * @parameter expression="${detail}" default-value="false" - */ + //@Parameter( property = "detail", defaultValue = "false" ) private boolean detail; /** * The name of the goal for which to show help. If unspecified, all goals will be displayed. * - * @parameter expression="${goal}" + * @parameter property="goal" */ + //@Parameter( property = "${goal}" ) private java.lang.String goal; /** * The maximum length of a display line, should be positive. * - * @parameter expression="${lineLength}" default-value="80" + * @parameter property="lineLength" default-value="80" */ + //@Parameter( property = "lineLength", defaultValue = "80" ) private int lineLength; /** * The number of spaces per indentation level, should be positive. * - * @parameter expression="${indentSize}" default-value="2" + * @parameter property="indentSize" default-value="2" */ + //@Parameter( property = "indentSize", defaultValue = "2" ) private int indentSize; // groupId/artifactId/plugin-help.xml