You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by jd...@apache.org on 2004/09/22 01:33:02 UTC

cvs commit: maven-components/maven-core/src/main/java/org/apache/maven/lifecycle/goal/phase GoalMappingPhase.java

jdcasey     2004/09/21 16:33:02

  Modified:    maven-core/src/main/java/org/apache/maven/lifecycle/goal/phase
                        GoalMappingPhase.java
  Log:
  o Added code to populate the visited set for the goal mapping phase.
  
  Revision  Changes    Path
  1.2       +2 -0      maven-components/maven-core/src/main/java/org/apache/maven/lifecycle/goal/phase/GoalMappingPhase.java
  
  Index: GoalMappingPhase.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/lifecycle/goal/phase/GoalMappingPhase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- GoalMappingPhase.java	21 Sep 2004 23:11:16 -0000	1.1
  +++ GoalMappingPhase.java	21 Sep 2004 23:33:02 -0000	1.2
  @@ -59,6 +59,7 @@
               try
               {
                   session.addImpliedExecution( goal, prereq );
  +                visited.add( prereq );
               }
               catch ( CycleDetectedException e )
               {
  @@ -79,6 +80,7 @@
           public void visitGoal( String goal, MavenSession session ) throws GraphTraversalException
           {
               session.addSingleExecution( goal );
  +            visited.add( goal );
           }
   
           public boolean shouldVisit( String goal, MavenSession session ) throws GraphTraversalException