Expose the DAG and project map for reactor plugin

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@833427 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Fabulich 2009-11-06 15:00:44 +00:00
parent ed43cef785
commit b8874319f4
1 changed files with 14 additions and 2 deletions

View File

@ -42,6 +42,8 @@ public class ProjectSorter
private DAG dag;
private List<MavenProject> sortedProjects;
private Map<String, MavenProject> projectMap;
private MavenProject topLevelProject;
@ -74,7 +76,7 @@ public class ProjectSorter
dag = new DAG();
// groupId:artifactId:version -> project
Map<String, MavenProject> projectMap = new HashMap<String, MavenProject>( projects.size() * 2 );
projectMap = new HashMap<String, MavenProject>( projects.size() * 2 );
// groupId:artifactId -> (version -> vertex)
Map<String, Map<String, Vertex>> vertexMap = new HashMap<String, Map<String, Vertex>>( projects.size() * 2 );
@ -271,5 +273,15 @@ public class ProjectSorter
{
return ArtifactUtils.key( project.getGroupId(), project.getArtifactId(), project.getVersion() );
}
public DAG getDAG()
{
return dag;
}
public Map<String, MavenProject> getProjectMap()
{
return projectMap;
}
}