Package com.diffplug.gradle.p2
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 usingdirectorApp(File, String). - Mirror with the ant p2 mirror task usingmirrorApp(File).- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classP2Model.DirectorAppAn extension of EclipseApp with typed methods appropriate for p2 director.
-
Constructor Summary
Constructors Constructor Description P2Model()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArtifactRepo(File repo)voidaddArtifactRepo(String repo)voidaddArtifactRepoBundlePool()voidaddFeature(String feature)voidaddFeature(String feature, String version)voidaddIU(String iu)voidaddIU(String iu, String version)voidaddMetadataRepo(File repo)voidaddMetadataRepo(String repo)voidaddRepo(File repo)voidaddRepo(String repo)voidaddRepoEclipse(String release)voidaddSlicingOption(String option, String value)https://wiki.eclipse.org/Equinox/p2/Ant_Tasks#SlicingOptionsP2Modelcopy()Returns a deep copy of this model.voidcopyFrom(P2Model other)Copies everything from the other model into this one.P2Model.DirectorAppdirectorApp(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.booleanequals(Object otherObj)Two models are equal if all their fields are equal.Set<String>getRepos()inthashCode()Hash of the models current content.P2AntRunnermirrorApp(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.voidsetAppend(boolean append)https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_repositorytasks.htmStringtoString()
-
-
-
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.
-
equals
public boolean equals(Object otherObj)
Two models are equal if all their fields are equal.
-
addIU
public void addIU(String iu)
-
addFeature
public void addFeature(String feature)
-
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.
-
-