public class FileRepositoryArtifactProvider extends RepositoryArtifactProvider implements IRawArtifactFileProvider
RepositoryArtifactProvider
implementation which adds file capabilities. Currently only
needed in tests.Constructor and Description |
---|
FileRepositoryArtifactProvider(List<URI> artifactRepositories,
ArtifactTransferPolicy transferPolicy,
org.eclipse.equinox.p2.core.IProvisioningAgent agent) |
Modifier and Type | Method and Description |
---|---|
File |
getArtifactFile(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Returns the file system location of the given artifact in the given format.
|
File |
getArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key)
Returns the file system location of the given artifact.
|
contains, contains, getArtifactDescriptorsOfAllSources, getArtifactFromAnySource, getArtifactNotFoundError, getRawArtifactFromAnySource, query
getArtifact, getArtifactDescriptors, getRawArtifact, isFatal, nonNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, getArtifactDescriptors, getRawArtifact
contains, getArtifact
public FileRepositoryArtifactProvider(List<URI> artifactRepositories, ArtifactTransferPolicy transferPolicy, org.eclipse.equinox.p2.core.IProvisioningAgent agent)
public File getArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key)
IArtifactFileProvider
getArtifactFile
in interface IArtifactFileProvider
key
- An artifact keynull
the given artifact does
not exist.public File getArtifactFile(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
IRawArtifactFileProvider
getArtifactFile
in interface IRawArtifactFileProvider
descriptor
- The key and format of an artifactnull
the that artifact
does not exist in the given format.Copyright © 2008–2013 Eclipse Foundation. All rights reserved.