private static class TargetPlatformBundlePublisher.PublishedBundlesArtifactRepository extends ArtifactRepositoryBaseImpl<GAVArtifactDescriptor>
Although the provided artifacts are also stored in the local Maven repository, they cannot be made available via the LocalArtifactRepository artifact repository implementation. The reason is that there are differences is how the artifacts provided by the respective implementations may be updated:
| Modifier and Type | Field and Description |
|---|---|
private MavenRepositorySystem |
repositorySystem |
descriptors, descriptorsMap| Constructor and Description |
|---|
PublishedBundlesArtifactRepository(java.io.File localMavenRepositoryRoot,
MavenRepositorySystem repositorySystem) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addPublishedArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor baseDescriptor,
IArtifactFacade mavenArtifact) |
private boolean |
equivalentPaths(java.io.File path,
java.io.File otherPath) |
private java.io.File |
getBaseDir() |
protected org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor |
getComparableDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Returns an
IArtifactDescriptor instance which is comparable to the artifact
descriptors stored in the index (i.e. |
protected GAVArtifactDescriptor |
getInternalDescriptorForAdding(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Returns an artifact descriptor of the internal descriptor type
ArtifactDescriptorT which may be added to the index. |
protected java.io.File |
internalGetArtifactStorageLocation(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Returns the file system location where the given artifact is or would be stored.
|
private GAVArtifactDescriptor |
toInternalDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) |
contains, contains, descriptorQueryable, getArtifact, getArtifact, getArtifactDescriptors, getArtifactFile, getArtifactFile, getRawArtifact, internalAddDescriptor, internalAddInternalDescriptor, internalNewAddingArtifactSink, internalRemoveAllDescriptors, internalRemoveDescriptor, internalRemoveDescriptors, internalRemoveDescriptors, internalRemoveDescriptors, internalStore, newAddingArtifactSink, newAddingRawArtifactSink, queryaddDescriptor, addDescriptor, addDescriptors, addDescriptors, getArtifacts, getOutputStream, getRawArtifact, isFatal, removeAll, removeAll, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptors, removeDescriptors, removeDescriptors, removeDescriptors, setStatusOnStreamIfPossiblecreateArtifactDescriptor, createArtifactKey, equals, executeBatch, hashCodeassertModifiable, getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, isModifiable, setDescription, setLocation, setName, setProperties, setProperty, setProperty, setProvider, setType, setVersionclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddDescriptor, addDescriptor, addDescriptors, addDescriptors, createArtifactDescriptor, createArtifactKey, executeBatch, getArtifacts, getOutputStream, getRawArtifact, removeAll, removeAll, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptors, removeDescriptors, removeDescriptors, removeDescriptorsprivate MavenRepositorySystem repositorySystem
PublishedBundlesArtifactRepository(java.io.File localMavenRepositoryRoot,
MavenRepositorySystem repositorySystem)
void addPublishedArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor baseDescriptor,
IArtifactFacade mavenArtifact)
private boolean equivalentPaths(java.io.File path,
java.io.File otherPath)
protected GAVArtifactDescriptor getInternalDescriptorForAdding(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
ArtifactRepositoryBaseImplArtifactDescriptorT which may be added to the index. Implementations may require
that the descriptor argument is a descriptor instance created by this repository – see
AbstractArtifactRepository.createArtifactDescriptor(IArtifactKey).
This method is called by methods that add entries to the index, i.e. from
ArtifactRepositoryBaseImpl.newAddingArtifactSink(IArtifactKey).
getInternalDescriptorForAdding in class ArtifactRepositoryBaseImpl<GAVArtifactDescriptor>descriptor - An IArtifactDescriptor instanceprotected org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor getComparableDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
ArtifactRepositoryBaseImplIArtifactDescriptor instance which is comparable to the artifact
descriptors stored in the index (i.e. the ArtifactRepositoryBaseImpl.descriptors member). A valid
implementation is to convert the argument to the internal descriptor type
ArtifactDescriptorT, but this is not a requirement. This method should be
implemented in a way so that calling
descriptors.contains(getComparableDescriptor(foreignDescriptor)) with a
descriptor from a foreign artifact repository returns true if and only if
copying that foreign artifact to this repository with
AbstractArtifactRepository2.getOutputStream(IArtifactDescriptor) would not add a new artifact to this
repository.
This method may be called by any API method with an IArtifactDescriptor argument.
getComparableDescriptor in class ArtifactRepositoryBaseImpl<GAVArtifactDescriptor>descriptor - An IArtifactDescriptor from any artifact repository.private GAVArtifactDescriptor toInternalDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
protected java.io.File internalGetArtifactStorageLocation(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
ArtifactRepositoryBaseImplArtifactRepositoryBaseImpl.getArtifactFile(IArtifactDescriptor), this method does not check if the given
artifact exists in the repository and never returns null.
This method may be called by any API method for reading or writing artifacts.
internalGetArtifactStorageLocation in class ArtifactRepositoryBaseImpl<GAVArtifactDescriptor>private java.io.File getBaseDir()