Package org.eclipse.tycho.p2.tools
Class RepositoryReferences
- java.lang.Object
-
- org.eclipse.tycho.p2.tools.RepositoryReferences
-
public final class RepositoryReferences extends java.lang.ObjectList 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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.net.URI>artifactReposprivate java.util.List<java.net.URI>metadataRepos
-
Constructor Summary
Constructors Constructor Description RepositoryReferences()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArtifactRepository(java.io.File artifactRepositoryLocation)Adds the artifact repository at the given location.voidaddArtifactRepository(java.net.URI artifactRepository)Adds the artifact repository at the given location.voidaddArtifactRepository(RepositoryBlackboardKey blackboardKey)Adds the artifact repository which is stored in memory under the given key.voidaddMetadataRepository(java.io.File metadataRepositoryLocation)Adds the metadata repository at the given location.voidaddMetadataRepository(java.net.URI metadataRepository)Adds the metadata repository at the given location.java.util.List<java.net.URI>getArtifactRepositories()Returns the list of artifact repositories in the order in which they were added.java.util.List<java.net.URI>getMetadataRepositories()Returns the list of metadata repositories in the order in which they were added.
-
-
-
Method Detail
-
addMetadataRepository
public void addMetadataRepository(java.io.File metadataRepositoryLocation)
Adds the metadata repository at the given location.- Parameters:
metadataRepositoryLocation- The folder containing the metadata repository file (content.xmlorcontent.jar)
-
addMetadataRepository
public void addMetadataRepository(java.net.URI metadataRepository)
Adds the metadata repository at the given location.- Parameters:
metadataRepositoryLocation- A URL pointing to a p2 metadata repository
-
addArtifactRepository
public void addArtifactRepository(java.io.File artifactRepositoryLocation)
Adds the artifact repository at the given location.- Parameters:
artifactRepositoryLocation- The folder containing the artifact repository file structure
-
addArtifactRepository
public void addArtifactRepository(java.net.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 java.util.List<java.net.URI> getMetadataRepositories()
Returns the list of metadata repositories in the order in which they were added.- Returns:
- the list metadata repositories.
-
getArtifactRepositories
public java.util.List<java.net.URI> getArtifactRepositories()
Returns the list of artifact repositories in the order in which they were added.- Returns:
- the list of artifact repositories.
-
-