Class ProjectBuildList
- java.lang.Object
-
- org.apache.maven.lifecycle.internal.ProjectBuildList
-
- All Implemented Interfaces:
java.lang.Iterable<ProjectSegment>
public class ProjectBuildList extends java.lang.Object implements java.lang.Iterable<ProjectSegment>
A list of project segments, ordered so that all ProjectSegments from first TaskSegment come before any subsequent TaskSegments.
Note: This interface is part of work in progress and can be changed or removed without notice.- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ProjectSegment>items
-
Constructor Summary
Constructors Constructor Description ProjectBuildList(java.util.List<ProjectSegment> items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseAll()ProjectSegmentfindByMavenProject(MavenProject mavenProject)Finds the first ProjectSegment matching the supplied projectProjectSegmentget(int index)ProjectBuildListgetByTaskSegment(TaskSegment taskSegment)Returns aProjectBuildList that contains only items for the specified taskSegmentjava.util.Set<MavenProject>getProjects()java.util.Set<java.lang.String>getReactorProjectKeys()booleanisEmpty()java.util.Iterator<ProjectSegment>iterator()java.util.Map<MavenProject,ProjectSegment>selectSegment(TaskSegment taskSegment)intsize()
-
-
-
Field Detail
-
items
private final java.util.List<ProjectSegment> items
-
-
Constructor Detail
-
ProjectBuildList
public ProjectBuildList(java.util.List<ProjectSegment> items)
-
-
Method Detail
-
getByTaskSegment
public ProjectBuildList getByTaskSegment(TaskSegment taskSegment)
Returns aProjectBuildList that contains only items for the specified taskSegment- Parameters:
taskSegment- the requested tasksegment- Returns:
- a project build list for the supplied task segment
-
selectSegment
public java.util.Map<MavenProject,ProjectSegment> selectSegment(TaskSegment taskSegment)
-
findByMavenProject
public ProjectSegment findByMavenProject(MavenProject mavenProject)
Finds the first ProjectSegment matching the supplied project- Parameters:
mavenProject- the requested project- Returns:
- The projectSegment or null.
-
iterator
public java.util.Iterator<ProjectSegment> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<ProjectSegment>
-
closeAll
public void closeAll()
-
size
public int size()
-
get
public ProjectSegment get(int index)
-
getReactorProjectKeys
public java.util.Set<java.lang.String> getReactorProjectKeys()
-
isEmpty
public boolean isEmpty()
-
getProjects
public java.util.Set<MavenProject> getProjects()
- Returns:
- a set of all the projects managed by the build
-
-