maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@codehaus.org
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 (mailto:jvanzyl@maven.org)
       Date: Thu, 27 Jan 2005 4:41 PM
    Changes:
             Fix Version changed to 1.0-alpha-1
    ---------------------------------------------------------------------
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-1

   Assignee: 
   Reporter: Trygve Laugstol

    Created: Sun, 27 Jun 2004 12:40 PM
    Updated: Thu, 27 Jan 2005 4:41 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


Mime
View raw message