[
http://jira.codehaus.org/browse/MGROOVY-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Dillon updated MGROOVY-43:
--------------------------------
Description:
Add a simple closure bound to the name {{fail}} to allow the {{groovy:execute}}
goal easy access to toss MojoExecutionExceptions.
So, this:
{code}
import org.apache.maven.plugin.MojoExecutionException
throw new MojoExecutionException("Whatever")
{code}
becomes:
{code}
fail("Whatever")
{code}
Fix Version/s: 1.0-beta-1
> Add a fail() helper to the default namespace for groovy:execute
> ---------------------------------------------------------------
>
> Key: MGROOVY-43
> URL: http://jira.codehaus.org/browse/MGROOVY-43
> Project: Maven 2.x Groovy Plugin
> Issue Type: New Feature
> Components: execute
> Reporter: Jason Dillon
> Assignee: Jason Dillon
> Fix For: 1.0-beta-1
>
>
> Add a simple closure bound to the name {{fail}} to allow the
> {{groovy:execute}} goal easy access to toss MojoExecutionExceptions.
> So, this:
> {code}
> import org.apache.maven.plugin.MojoExecutionException
> throw new MojoExecutionException("Whatever")
> {code}
> becomes:
> {code}
> fail("Whatever")
> {code}
--
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email