each task on the CLI is to be executed individually - don't preprocess all the goals.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163432 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-02-28 22:57:39 +00:00
parent b70904c7a3
commit 7b1ca71aac
1 changed files with 16 additions and 21 deletions

View File

@ -81,12 +81,12 @@ public class DefaultLifecycleExecutor
processPluginConfiguration( session.getProject(), session ); processPluginConfiguration( session.getProject(), session );
processGoalChain( tasks, session );
for ( Iterator i = tasks.iterator(); i.hasNext(); ) for ( Iterator i = tasks.iterator(); i.hasNext(); )
{ {
String task = (String) i.next(); String task = (String) i.next();
processGoalChain( task, session );
if ( phaseMap.containsKey( task ) ) if ( phaseMap.containsKey( task ) )
{ {
executePhase( task, session, response ); executePhase( task, session, response );
@ -154,13 +154,9 @@ public class DefaultLifecycleExecutor
} }
} }
private void processGoalChain( List tasks, MavenSession session ) private void processGoalChain( String task, MavenSession session )
throws Exception throws Exception
{ {
for ( Iterator i = tasks.iterator(); i.hasNext(); )
{
String task = (String) i.next();
if ( phaseMap.containsKey( task ) ) if ( phaseMap.containsKey( task ) )
{ {
// only execute up to the given phase // only execute up to the given phase
@ -186,7 +182,6 @@ public class DefaultLifecycleExecutor
verifyMojoPhase( task, session ); verifyMojoPhase( task, session );
} }
} }
}
private void verifyMojoPhase( String task, MavenSession session ) private void verifyMojoPhase( String task, MavenSession session )
throws Exception throws Exception