public class PublishingRepositoryImpl extends java.lang.Object implements PublishingRepository
Modifier and Type | Field and Description |
---|---|
private ModuleArtifactRepository |
artifactRepository |
private ModuleMetadataRepository |
metadataRepository |
private ReactorProjectIdentities |
project |
Constructor and Description |
---|
PublishingRepositoryImpl(org.eclipse.equinox.p2.core.IProvisioningAgent agent,
ReactorProjectIdentities project) |
Modifier and Type | Method and Description |
---|---|
void |
addArtifactLocation(java.lang.String classifier,
java.io.File artifactLocation)
Adds the location of an existing artifact.
|
java.util.Map<java.lang.String,java.io.File> |
getArtifactLocations()
The file system locations of the build artifacts, indexed by classifier.
|
org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository |
getArtifactRepository() |
org.eclipse.equinox.p2.repository.artifact.IArtifactRepository |
getArtifactRepositoryForWriting(WriteSessionContext writeSession)
Returns a view onto the project's artifact repository which allows writing new artifacts.
|
IRawArtifactFileProvider |
getArtifacts() |
java.util.Set<java.lang.Object> |
getInstallableUnits()
Returns the
IInstallableUnit s in the publishing repository. |
org.eclipse.equinox.p2.repository.metadata.IMetadataRepository |
getMetadataRepository() |
ReactorProjectIdentities |
getProjectIdentities()
Returns the project for which this instance contains the publishing results.
|
private final ReactorProjectIdentities project
private final ModuleMetadataRepository metadataRepository
private final ModuleArtifactRepository artifactRepository
public PublishingRepositoryImpl(org.eclipse.equinox.p2.core.IProvisioningAgent agent, ReactorProjectIdentities project)
public ReactorProjectIdentities getProjectIdentities()
PublishingRepository
getProjectIdentities
in interface PublishingRepository
public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getMetadataRepository()
getMetadataRepository
in interface PublishingRepository
public java.util.Set<java.lang.Object> getInstallableUnits()
PublishingRepositoryFacade
IInstallableUnit
s in the publishing repository.getInstallableUnits
in interface PublishingRepositoryFacade
public IRawArtifactFileProvider getArtifacts()
getArtifacts
in interface PublishingRepository
public org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository getArtifactRepository()
getArtifactRepository
in interface PublishingRepository
public org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getArtifactRepositoryForWriting(WriteSessionContext writeSession)
PublishingRepository
getArtifactRepositoryForWriting
in interface PublishingRepository
writeSession
- a callback used to assign (Maven) classifiers to the new (p2) artifacts.public void addArtifactLocation(java.lang.String classifier, java.io.File artifactLocation) throws org.eclipse.equinox.p2.core.ProvisionException
PublishingRepository
addArtifactLocation
in interface PublishingRepository
classifier
- the classifier of the artifact, or null
for the main artifact.artifactLocation
- the location of the artifactorg.eclipse.equinox.p2.core.ProvisionException
public java.util.Map<java.lang.String,java.io.File> getArtifactLocations()
PublishingRepositoryFacade
getArtifactLocations
in interface PublishingRepositoryFacade
null
for main artifact) to artifact file
locations in the target directory