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 class
P2Model.DirectorApp
An 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 void
addArtifactRepo(File repo)
void
addArtifactRepo(String repo)
void
addArtifactRepoBundlePool()
void
addFeature(String feature)
void
addFeature(String feature, String version)
void
addIU(String iu)
void
addIU(String iu, String version)
void
addMetadataRepo(File repo)
void
addMetadataRepo(String repo)
void
addRepo(File repo)
void
addRepo(String repo)
void
addRepoEclipse(String release)
void
addSlicingOption(String option, String value)
https://wiki.eclipse.org/Equinox/p2/Ant_Tasks#SlicingOptionsP2Model
copy()
Returns a deep copy of this model.void
copyFrom(P2Model other)
Copies everything from the other model into this one.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.boolean
equals(Object otherObj)
Two models are equal if all their fields are equal.Set<String>
getRepos()
int
hashCode()
Hash of the models current content.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.void
setAppend(boolean append)
https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_repositorytasks.htmString
toString()
-
-
-
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.
-
-