org.apache.maven
Class ProjectCycleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.BuildFailureException
              extended by org.apache.maven.ProjectCycleException
All Implemented Interfaces:
java.io.Serializable

public class ProjectCycleException
extends BuildFailureException

Exception which occurs when creating a new ReactorManager instance, due to failure to sort the current projects. The embedded CycleDetectedException is thrown by the ProjectSorter and context of this wrapped exception includes the list of projects that contain the cycle, along with a friendly rendering of the cycle message indicating that it comes from the current projects list.

Author:
jdcasey
See Also:
Serialized Form

Constructor Summary
ProjectCycleException(java.util.List projects, java.lang.String message, org.codehaus.plexus.util.dag.CycleDetectedException cause)
           
 
Method Summary
 java.util.List getProjects()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectCycleException

public ProjectCycleException(java.util.List projects,
                             java.lang.String message,
                             org.codehaus.plexus.util.dag.CycleDetectedException cause)
Method Detail

getProjects

public java.util.List getProjects()


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.