From fde34e83843ce261fd2243cf714b14cec166a7ec Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Thu, 21 May 2009 16:46:19 +0000 Subject: [PATCH] o get rid of extraneous goal matching git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@777171 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/lifecycle/DefaultLifecycleExecutor.java | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java b/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java index a775ce5863..f532cf85bc 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java @@ -385,7 +385,6 @@ public class DefaultLifecycleExecutor private void populateMojoExecutionConfiguration( MavenProject project, MojoExecution mojoExecution ) { - //System.out.println( mojoExecution.getGoal() + " : executionid: " + mojoExecution.getExecutionId() ); String g = mojoExecution.getGroupId(); @@ -397,17 +396,11 @@ public class DefaultLifecycleExecutor { if ( mojoExecution.getExecutionId().equals( e.getId() ) ) { - for ( String goal : e.getGoals() ) - { - if ( mojoExecution.getGoal().equals( goal ) ) - { - Xpp3Dom executionConfiguration = (Xpp3Dom) e.getConfiguration(); + Xpp3Dom executionConfiguration = (Xpp3Dom) e.getConfiguration(); - Xpp3Dom mojoConfiguration = extractMojoConfiguration( executionConfiguration, mojoExecution.getMojoDescriptor() ); + Xpp3Dom mojoConfiguration = extractMojoConfiguration( executionConfiguration, mojoExecution.getMojoDescriptor() ); - mojoExecution.setConfiguration( mojoConfiguration ); - } - } + mojoExecution.setConfiguration( mojoConfiguration ); } } }