mirror of https://github.com/apache/maven.git
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:
parent
10a192dfc2
commit
45729dcafc
|
@ -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 ):
|
||||
|
|
Loading…
Reference in New Issue