public class P2Model extends Object implements Serializable
Models a request for some artifacts from some p2 repositories.
directorApp(File, String)
.mirrorApp(File)
.Modifier and Type | Class and Description |
---|---|
static class |
P2Model.DirectorApp
An extension of EclipseApp with typed methods appropriate for p2 director.
|
Constructor and Description |
---|
P2Model() |
Modifier and Type | Method and 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) |
P2Model |
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.
|
String |
toString() |
public P2Model copy()
Returns a deep copy of this model.
public void copyFrom(P2Model other)
Copies everything from the other model into this one.
public int hashCode()
Hash of the models current content.
public boolean equals(Object otherObj)
Two models are equal if all their fields are equal.
public void addIU(String iu)
public void addFeature(String feature)
public void addRepoEclipse(String release)
public void addRepo(String repo)
public void addRepo(File repo)
public void addMetadataRepo(String repo)
public void addMetadataRepo(File repo)
public void addArtifactRepo(String repo)
public void addArtifactRepo(File repo)
public void addArtifactRepoBundlePool()
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.
P2AntRunner
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.