Class P2Model

java.lang.Object
com.diffplug.gradle.p2.P2Model
All Implemented Interfaces:
Serializable

public class P2Model extends Object implements Serializable
Models a request for some artifacts from some p2 repositories. - Install with p2 director using directorApp(File, String). - Mirror with the ant p2 mirror task using mirrorApp(File).
See Also:
  • Constructor Details

    • P2Model

      public P2Model()
  • Method Details

    • copy

      public P2Model copy()
      Returns a deep copy of this model.
    • copyFrom

      public void copyFrom(P2Model other)
      Copies everything from the other model into this one.
    • hashCode

      public int hashCode()
      Hash of the models current content.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object otherObj)
      Two models are equal if all their fields are equal.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addIU

      public void addIU(String iu)
    • addIU

      public void addIU(String iu, String version)
    • addFeature

      public void addFeature(String feature)
    • addFeature

      public void addFeature(String feature, String version)
    • getRepos

      public Set<String> getRepos()
    • addRepoEclipse

      public void addRepoEclipse(String release)
    • addRepo

      public void addRepo(String repo)
    • addRepo

      public void addRepo(File repo)
    • addMetadataRepo

      public void addMetadataRepo(String repo)
    • addMetadataRepo

      public void addMetadataRepo(File repo)
    • addArtifactRepo

      public void addArtifactRepo(String repo)
    • addArtifactRepo

      public void addArtifactRepo(File repo)
    • addArtifactRepoBundlePool

      public void addArtifactRepoBundlePool()
    • addSlicingOption

      public void addSlicingOption(String option, String value)
      https://wiki.eclipse.org/Equinox/p2/Ant_Tasks#SlicingOptions
    • setAppend

      public void setAppend(boolean append)
      https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_repositorytasks.htm
    • mirrorApp

      public P2AntRunner mirrorApp(File dstFolder)
      Creates a p2.mirror ant task file which will mirror the model's described IU's and repos into the given destination folder.
      See Also:
    • directorApp

      public P2Model.DirectorApp directorApp(File dstFolder, String profile)
      Returns the arguments required to call "eclipsec" and run the p2 director application to install the artifacts from the repos in this model into the given directory and profile.