Package com.diffplug.gradle.p2
Class P2Model
java.lang.Object
com.diffplug.gradle.p2.P2Model
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn extension of EclipseApp with typed methods appropriate for p2 director. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArtifactRepo(File repo) voidaddArtifactRepo(String repo) voidvoidaddFeature(String feature) voidaddFeature(String feature, String version) voidvoidvoidaddMetadataRepo(File repo) voidaddMetadataRepo(String repo) voidvoidvoidaddRepoEclipse(String release) voidaddSlicingOption(String option, String value) https://wiki.eclipse.org/Equinox/p2/Ant_Tasks#SlicingOptionscopy()Returns a deep copy of this model.voidCopies everything from the other model into this one.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.booleanTwo models are equal if all their fields are equal.getRepos()inthashCode()Hash of the models current content.Creates a p2.mirror ant task file which will mirror the model's described IU's and repos into the given destination folder.voidsetAppend(boolean append) https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_repositorytasks.htmtoString()
-
Constructor Details
-
P2Model
public P2Model()
-
-
Method Details
-
copy
Returns a deep copy of this model. -
copyFrom
Copies everything from the other model into this one. -
hashCode
public int hashCode()Hash of the models current content. -
equals
Two models are equal if all their fields are equal. -
toString
-
addIU
-
addIU
-
addFeature
-
addFeature
-
getRepos
-
addRepoEclipse
-
addRepo
-
addRepo
-
addMetadataRepo
-
addMetadataRepo
-
addArtifactRepo
-
addArtifactRepo
-
addArtifactRepoBundlePool
public void addArtifactRepoBundlePool() -
addSlicingOption
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
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
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.
-