Cleanup on pointcuts to make them slightly more efficient.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@614756 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2008-01-24 00:33:24 +00:00
parent 268d08b8a3
commit 48db18c81b
1 changed files with 2 additions and 2 deletions

View File

@ -59,14 +59,14 @@ public privileged aspect LifecycleErrorReporterAspect
after( MojoBinding binding, MavenProject project ) throwing ( PluginLoaderException cause ):
( cflow( le_executeGoalAndHandleFailures( MojoBinding ) )
|| cflow( execution( * LifecycleExecutor+.isTaskValid( .. ) ) ) )
&& call( * PluginLoader+.loadPlugin( MojoBinding, MavenProject, .. ) )
&& execution( * PluginLoader+.loadPlugin( MojoBinding, MavenProject, .. ) )
&& args( binding, project, .. )
{
getReporter().reportErrorLoadingPlugin( binding, project, cause );
}
after( String task, MavenSession session, MavenProject project ) throwing ( InvalidPluginException cause ):
call( private * DefaultLifecycleExecutor.getMojoDescriptorForDirectInvocation( String, MavenSession, MavenProject ) )
execution( private * DefaultLifecycleExecutor.getMojoDescriptorForDirectInvocation( String, MavenSession, MavenProject ) )
&& args( task, session, project )
{
getReporter().reportInvalidPluginForDirectInvocation( task, session, project, cause );