Package org.eclipse.tycho.p2maven
Interface MavenProjectDependencyProcessor.ProjectDependencyClosure
- Enclosing class:
- MavenProjectDependencyProcessor
public static interface MavenProjectDependencyProcessor.ProjectDependencyClosure
-
Method Summary
Modifier and TypeMethodDescriptionStream<Map.Entry<org.apache.maven.project.MavenProject,Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>>> default Collection<org.apache.maven.project.MavenProject>getDependencyProjects(org.apache.maven.project.MavenProject mavenProject) Given a maven project returns all other maven projects this one (directly) depends onOptional<org.apache.maven.project.MavenProject>getProject(org.eclipse.equinox.p2.metadata.IInstallableUnit dependency) getProjectDependecies(org.apache.maven.project.MavenProject mavenProject) Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>getProjectUnits(org.apache.maven.project.MavenProject mavenProject) booleanisFragment(org.apache.maven.project.MavenProject mavenProject) Check if the given unit is a fragment
-
Method Details
-
getProject
Optional<org.apache.maven.project.MavenProject> getProject(org.eclipse.equinox.p2.metadata.IInstallableUnit dependency) - Parameters:
dependency-- Returns:
- the project that provides the given
IInstallableUnitor an empty Optional if no project in this closure provides this unit.
-
getProjectDependecies
MavenProjectDependencyProcessor.ProjectDependencies getProjectDependecies(org.apache.maven.project.MavenProject mavenProject) - Parameters:
mavenProject-- Returns:
- the dependencies of this project inside the closure
-
getProjectUnits
Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getProjectUnits(org.apache.maven.project.MavenProject mavenProject) -
dependencies
Stream<Map.Entry<org.apache.maven.project.MavenProject,Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>>> dependencies()- Returns:
- a stream of all contained maven projects with dependecies
-
getDependencyProjects
default Collection<org.apache.maven.project.MavenProject> getDependencyProjects(org.apache.maven.project.MavenProject mavenProject) Given a maven project returns all other maven projects this one (directly) depends on- Parameters:
mavenProject-- Returns:
- the collection of projects this maven project depend on in this closure
-
isFragment
boolean isFragment(org.apache.maven.project.MavenProject mavenProject) Check if the given unit is a fragment- Parameters:
installableUnit- the unit to check- Returns:
trueif this is a fragment,falseotherwise
-