public class P2RepositoryTool extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
P2RepositoryTool.IdAndVersion |
class |
P2RepositoryTool.IU |
| Modifier and Type | Method and Description |
|---|---|
File |
findBinaryArtifact(String artifactId) |
File |
findFeatureArtifact(String featureId) |
static P2RepositoryTool |
forEclipseRepositoryModule(File projectRootFolder) |
List<String> |
getAllProvidedPackages() |
List<String> |
getAllUnitIds() |
List<P2RepositoryTool.IdAndVersion> |
getAllUnits() |
File |
getBinaryArtifact(String artifactId,
String version) |
File |
getBundleArtifact(String bundleId,
String version) |
File |
getFeatureArtifact(String featureId,
String version) |
P2RepositoryTool.IU |
getIU(String unitId,
String version)
Returns the IU with the given ID and version.
|
P2RepositoryTool.IU |
getUniqueIU(String unitId)
Returns the unique IU with the given ID.
|
List<String> |
getUnitVersions(String unitId) |
static P2RepositoryTool.IdAndVersion |
withIdAndVersion(String id,
String version) |
public static P2RepositoryTool forEclipseRepositoryModule(File projectRootFolder)
public List<P2RepositoryTool.IdAndVersion> getAllUnits() throws Exception
Exceptionpublic List<String> getUnitVersions(String unitId) throws Exception
Exceptionpublic P2RepositoryTool.IU getUniqueIU(String unitId) throws Exception
AssertionError - unless there is exactly one IU with the given unitId.Exceptionpublic P2RepositoryTool.IU getIU(String unitId, String version) throws Exception
AssertionError - if there is no IU with the given attributes.Exceptionpublic List<String> getAllProvidedPackages() throws Exception
Exceptionpublic static P2RepositoryTool.IdAndVersion withIdAndVersion(String id, String version)
Copyright © 2008-2018 Eclipse Foundation. All Rights Reserved.