Improving binding for PluginParameterException report.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@604642 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2007-12-16 16:10:21 +00:00
parent 10a192dfc2
commit 45729dcafc
1 changed files with 6 additions and 3 deletions

View File

@ -141,15 +141,18 @@ public privileged aspect LifecycleErrorReporterAspect
getReporter().reportAttemptToOverrideUneditableMojoParameter( currentParameter, binding, project, session, exec, translator, logger, cause );
}
before( MojoBinding binding, MavenProject project, List invalidParameters, PluginParameterException err ):
PluginParameterException around( MojoBinding binding, MavenProject project, List invalidParameters ):
cflow( le_executeGoalAndHandleFailures( binding ) )
&& cflow( pm_executeMojo( project ) )
&& cflow( pm_checkRequiredParameters() )
&& execution( PluginParameterException.new( .., List ) )
&& call( PluginParameterException.new( .., List ) )
&& args( .., invalidParameters )
&& this( err )
{
PluginParameterException err = proceed( binding, project, invalidParameters );
getReporter().reportMissingRequiredMojoParameter( binding, project, invalidParameters, err );
return err;
}
private pointcut ppee_evaluate( String expression ):