mirror of https://github.com/apache/maven.git
PR: MNG-187
add getCollectedProjects to MavenProject for post processing git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163564 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e5ab9191bd
commit
88b5c0ee66
|
@ -190,7 +190,9 @@ public class DefaultMaven
|
|||
}
|
||||
|
||||
List moduleFiles = FileUtils.getFiles( project.getFile().getParentFile(), includes, null );
|
||||
projects.addAll( collectProjects( moduleFiles, localRepository ) );
|
||||
List collectedProjects = collectProjects( moduleFiles, localRepository );
|
||||
projects.addAll( collectedProjects );
|
||||
project.setCollectedProjects( collectedProjects );
|
||||
}
|
||||
projects.add( project );
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ import org.apache.maven.model.Scm;
|
|||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
@ -63,6 +64,8 @@ public class MavenProject
|
|||
|
||||
private Set artifacts;
|
||||
|
||||
private List collectedProjects = Collections.EMPTY_LIST;
|
||||
|
||||
public MavenProject( Model model )
|
||||
{
|
||||
this.model = model;
|
||||
|
@ -556,5 +559,15 @@ public class MavenProject
|
|||
|
||||
build.addPlugin( plugin );
|
||||
}
|
||||
|
||||
public List getCollectedProjects()
|
||||
{
|
||||
return collectedProjects;
|
||||
}
|
||||
|
||||
public void setCollectedProjects( List collectedProjects )
|
||||
{
|
||||
this.collectedProjects = collectedProjects;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue