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>
    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.

    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