*** empty log message ***

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163276 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2004-12-28 19:43:20 +00:00
parent a6a0eab73d
commit 107aa56cc5
2 changed files with 6 additions and 16 deletions

View File

@ -40,7 +40,7 @@ public class GoalMappingPhase
public void execute( MavenGoalExecutionContext context ) public void execute( MavenGoalExecutionContext context )
throws GoalExecutionException throws GoalExecutionException
{ {
GoalMappingVisitor visitor = new GoalMappingVisitor( context.getSession().getPluginManager() ); GoalMappingVisitor visitor = new GoalMappingVisitor();
try try
{ {
@ -56,15 +56,8 @@ public class GoalMappingPhase
public static final class GoalMappingVisitor public static final class GoalMappingVisitor
extends AbstractGoalVisitor extends AbstractGoalVisitor
{ {
private PluginManager pluginManager;
private Set visited = new HashSet(); private Set visited = new HashSet();
GoalMappingVisitor( PluginManager pluginManager )
{
this.pluginManager = pluginManager;
}
public void visitPrereq( String goal, String prereq, MavenSession session ) public void visitPrereq( String goal, String prereq, MavenSession session )
throws GraphTraversalException throws GraphTraversalException
{ {
@ -103,9 +96,7 @@ public class GoalMappingPhase
public boolean shouldVisit( String goal, MavenSession session ) public boolean shouldVisit( String goal, MavenSession session )
{ {
boolean result = !visited.contains( goal ); return !visited.contains( goal );
return result;
} }
} }
} }

View File

@ -62,7 +62,8 @@ public class PluginResolutionPhase
this.pluginManager = pluginManager; this.pluginManager = pluginManager;
} }
public void preVisit( String goal, MavenSession session ) throws GraphTraversalException public void preVisit( String goal, MavenSession session )
throws GraphTraversalException
{ {
try try
{ {
@ -78,11 +79,9 @@ public class PluginResolutionPhase
} }
} }
public boolean shouldVisit( String goal, MavenSession session ) throws GraphTraversalException public boolean shouldVisit( String goal, MavenSession session )
{ {
boolean result = !resolved.contains( goal ); return !resolved.contains( goal );
return result;
} }
public void visitPostGoal( String goal, String postGoal, MavenSession session ) public void visitPostGoal( String goal, String postGoal, MavenSession session )