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
IInstallableUnits 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()
PublishingRepositorygetProjectIdentities in interface PublishingRepositorypublic org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getMetadataRepository()
getMetadataRepository in interface PublishingRepositorypublic java.util.Set<java.lang.Object> getInstallableUnits()
PublishingRepositoryFacadeIInstallableUnits in the publishing repository.getInstallableUnits in interface PublishingRepositoryFacadepublic IRawArtifactFileProvider getArtifacts()
getArtifacts in interface PublishingRepositorypublic org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository getArtifactRepository()
getArtifactRepository in interface PublishingRepositorypublic org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getArtifactRepositoryForWriting(WriteSessionContext writeSession)
PublishingRepositorygetArtifactRepositoryForWriting in interface PublishingRepositorywriteSession - 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
PublishingRepositoryaddArtifactLocation in interface PublishingRepositoryclassifier - the classifier of the artifact, or null for the main artifact.artifactLocation - the location of the artifactorg.eclipse.equinox.p2.core.ProvisionExceptionpublic java.util.Map<java.lang.String,java.io.File> getArtifactLocations()
PublishingRepositoryFacadegetArtifactLocations in interface PublishingRepositoryFacadenull for main artifact) to artifact file
locations in the target directory