Package org.eclipse.tycho.p2.tools
Class RepositoryReferences
- java.lang.Object
-
- org.eclipse.tycho.p2.tools.RepositoryReferences
-
public final class RepositoryReferences extends Object
List of p2 repositories for a p2 operation. Instances of this class store a list of metadata and artifact repositories each, preserving the order in which the repositories were added.
-
-
Constructor Summary
Constructors Constructor Description RepositoryReferences()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArtifactRepository(File artifactRepositoryLocation)
Adds the artifact repository at the given location.void
addArtifactRepository(URI artifactRepository)
Adds the artifact repository at the given location.void
addArtifactRepository(RepositoryBlackboardKey blackboardKey)
Adds the artifact repository which is stored in memory under the given key.void
addMetadataRepository(File metadataRepositoryLocation)
Adds the metadata repository at the given location.void
addMetadataRepository(URI metadataRepository)
Adds the metadata repository at the given location.List<URI>
getArtifactRepositories()
Returns the list of artifact repositories in the order in which they were added.List<URI>
getMetadataRepositories()
Returns the list of metadata repositories in the order in which they were added.
-
-
-
Method Detail
-
addMetadataRepository
public void addMetadataRepository(File metadataRepositoryLocation)
Adds the metadata repository at the given location.- Parameters:
metadataRepositoryLocation
- The folder containing the metadata repository file (content.xml
orcontent.jar
)
-
addMetadataRepository
public void addMetadataRepository(URI metadataRepository)
Adds the metadata repository at the given location.- Parameters:
metadataRepositoryLocation
- A URL pointing to a p2 metadata repository
-
addArtifactRepository
public void addArtifactRepository(File artifactRepositoryLocation)
Adds the artifact repository at the given location.- Parameters:
artifactRepositoryLocation
- The folder containing the artifact repository file structure
-
addArtifactRepository
public void addArtifactRepository(URI artifactRepository)
Adds the artifact repository at the given location.- Parameters:
artifactRepositoryLocation
- A URL pointing to a p2 artifact repository
-
addArtifactRepository
public void addArtifactRepository(RepositoryBlackboardKey blackboardKey)
Adds the artifact repository which is stored in memory under the given key.- Parameters:
artifactRepositoryLocation
- A key identifying a repository registered on the artifact repository blackboard.
-
getMetadataRepositories
public List<URI> getMetadataRepositories()
Returns the list of metadata repositories in the order in which they were added.- Returns:
- the list metadata repositories.
-
-