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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    Computes the IInstallableUnits for a collection of projects.
    Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>
     
    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 the IInstallableUnits for the given project, the computation is cached unless forceUpdate is true meaning data is always regenerated from scratch.
    Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>
    getInstallableUnits(org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptor productDescriptor)
     
    Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>
    getProvidedInstallableUnits(org.eclipse.tycho.ReactorProject reactorProject)
    Compute the additional provided units for a ReactorProject

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 the IInstallableUnits 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 the IInstallableUnits for the given project, the computation is cached unless forceUpdate is true meaning data is always regenerated from scratch.
      Parameters:
      project - the project to examine
      session -
      forceUpdate - if cached data is fine
      Returns:
      a (possibly empty) collection of IInstallableUnits for the given MavenProject
      Throws:
      org.eclipse.core.runtime.CoreException - if anything goes wrong
    • getInstallableUnits

      public Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getInstallableUnits(org.eclipse.equinox.internal.p2.publisher.eclipse.IProductDescriptor productDescriptor) throws org.eclipse.core.runtime.CoreException
      Throws:
      org.eclipse.core.runtime.CoreException
    • 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