Package org.eclipse.tycho.p2maven
Class InstallableUnitGenerator
java.lang.Object
org.eclipse.tycho.p2maven.InstallableUnitGenerator
@Component(role=InstallableUnitGenerator.class)
public class InstallableUnitGenerator
extends Object
Component used to generate
IInstallableUnits from other artifacts-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMap<org.apache.maven.project.MavenProject,Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>> getInstallableUnits(Collection<org.apache.maven.project.MavenProject> projects, org.apache.maven.execution.MavenSession session) Computes theIInstallableUnits for a collection of projects.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>getInstallableUnits(Manifest manifest) Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>getInstallableUnits(org.apache.maven.artifact.Artifact artifact) Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>getInstallableUnits(org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession session, boolean forceUpdate) Computes theIInstallableUnits for the given project, the computation is cached unless forceUpdate istruemeaning data is always regenerated from scratch.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>getProvidedInstallableUnits(org.eclipse.tycho.ReactorProject reactorProject) Compute the additional provided units for a ReactorProject
-
Constructor Details
-
InstallableUnitGenerator
public InstallableUnitGenerator()
-
-
Method Details
-
getInstallableUnits
public Map<org.apache.maven.project.MavenProject,Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>> getInstallableUnits(Collection<org.apache.maven.project.MavenProject> projects, org.apache.maven.execution.MavenSession session) throws org.eclipse.core.runtime.CoreException Computes theIInstallableUnits for a collection of projects.- Parameters:
projects- the projects to compute InstallableUnits for- Returns:
- a map from the passed project to the InstallebalUnits
- Throws:
org.eclipse.core.runtime.CoreException- if computation for any project failed
-
getInstallableUnits
public Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getInstallableUnits(org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession session, boolean forceUpdate) throws org.eclipse.core.runtime.CoreException Computes theIInstallableUnits for the given project, the computation is cached unless forceUpdate istruemeaning data is always regenerated from scratch.- Parameters:
project- the project to examinesession-forceUpdate- if cached data is fine- Returns:
- a (possibly empty) collection of
IInstallableUnits for the givenMavenProject - Throws:
org.eclipse.core.runtime.CoreException- if anything goes wrong
-
getInstallableUnits
public Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getInstallableUnits(Manifest manifest) -
getInstallableUnits
public Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getInstallableUnits(org.apache.maven.artifact.Artifact artifact) -
getProvidedInstallableUnits
public Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getProvidedInstallableUnits(org.eclipse.tycho.ReactorProject reactorProject) Compute the additional provided units for a ReactorProject- Parameters:
reactorProject-- Returns:
- a collection of units for the given reactor project
-