Class P2Model

    • Constructor Detail

      • P2Model

        public P2Model()
    • Method Detail

      • 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
      • addIU

        public void addIU​(String iu)
      • addFeature

        public void addFeature​(String feature)
      • addFeature

        public void addFeature​(String feature,
                               String version)
      • 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:
        P2AntRunner
      • 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.