maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Updated: (MNG-17) Improve the validation of mojo parameters
Date Thu, 27 Jan 2005 21:41:23 GMT
The following issue has been updated:

    Updater: Jason van Zyl (
       Date: Thu, 27 Jan 2005 4:41 PM
             Fix Version changed to 1.0-alpha-1
For a full history of the issue, see:

View the issue:

Here is an overview of the issue:
        Key: MNG-17
    Summary: Improve the validation of mojo parameters
       Type: Improvement

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: m2
   Fix Fors:

   Reporter: Trygve Laugstol

    Created: Sun, 27 Jun 2004 12:40 PM
    Updated: Thu, 27 Jan 2005 4:41 PM

For making it easier to implement the precontitions stated in the @parameter section of a
plugin I'd like to make these changes:

In the Plugin interface add:

 validatingExecute( request, response );

This method is assumed to validate the parameters of the plugin. This method makes is easier
for maven or any third party to assume that the plugin validates it's parameters and it makes
it easier for the plugin because it can assume that when it implements execute( param1, param2
) the values of the parameters is valiated.

The maven-plugin would need another generator that from a FooPlugin creates a subclass called
ValidatingFooPlugin that takes the parameter definition and implements validatingExecute(
.. ). The plugin.xml descriptor should use the Validating version of each plugin so maven
too would get the validation for free.

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message