You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by ji...@codehaus.org on 2004/07/22 20:50:10 UTC

[jira] Updated: (MNG-17) Improve the validation of mojo parameters

The following issue has been updated:

    Updater: Jason van Zyl (mailto:jvanzyl@maven.org)
       Date: Thu, 22 Jul 2004 2:49 PM
    Changes:
             Fix Version changed to 1.0-alpha-2
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/browse/MNG-17?page=history

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MNG-17

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:
             1.0-alpha-2

   Assignee: 
   Reporter: Trygve Laugstol

    Created: Sun, 27 Jun 2004 12:40 PM
    Updated: Thu, 22 Jul 2004 2:49 PM

Description:
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.



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira