Class PublishingRepositoryImpl
- java.lang.Object
-
- org.eclipse.tycho.repository.module.PublishingRepositoryImpl
-
- All Implemented Interfaces:
PublishingRepository
,PublishingRepositoryFacade
public class PublishingRepositoryImpl extends java.lang.Object implements PublishingRepository
-
-
Field Summary
Fields Modifier and Type Field Description private ModuleArtifactRepository
artifactRepository
private ModuleMetadataRepository
metadataRepository
private ReactorProjectIdentities
project
-
Constructor Summary
Constructors Constructor Description PublishingRepositoryImpl(org.eclipse.equinox.p2.core.IProvisioningAgent agent, ReactorProjectIdentities project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 theIInstallableUnit
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.
-
-
-
Field Detail
-
project
private final ReactorProjectIdentities project
-
metadataRepository
private final ModuleMetadataRepository metadataRepository
-
artifactRepository
private final ModuleArtifactRepository artifactRepository
-
-
Constructor Detail
-
PublishingRepositoryImpl
public PublishingRepositoryImpl(org.eclipse.equinox.p2.core.IProvisioningAgent agent, ReactorProjectIdentities project)
-
-
Method Detail
-
getProjectIdentities
public ReactorProjectIdentities getProjectIdentities()
Description copied from interface:PublishingRepository
Returns the project for which this instance contains the publishing results.- Specified by:
getProjectIdentities
in interfacePublishingRepository
-
getMetadataRepository
public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getMetadataRepository()
- Specified by:
getMetadataRepository
in interfacePublishingRepository
-
getInstallableUnits
public java.util.Set<java.lang.Object> getInstallableUnits()
Description copied from interface:PublishingRepositoryFacade
Returns theIInstallableUnit
s in the publishing repository.- Specified by:
getInstallableUnits
in interfacePublishingRepositoryFacade
-
getArtifacts
public IRawArtifactFileProvider getArtifacts()
- Specified by:
getArtifacts
in interfacePublishingRepository
-
getArtifactRepository
public org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository getArtifactRepository()
- Specified by:
getArtifactRepository
in interfacePublishingRepository
-
getArtifactRepositoryForWriting
public org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getArtifactRepositoryForWriting(WriteSessionContext writeSession)
Description copied from interface:PublishingRepository
Returns a view onto the project's artifact repository which allows writing new artifacts.- Specified by:
getArtifactRepositoryForWriting
in interfacePublishingRepository
- Parameters:
writeSession
- a callback used to assign (Maven) classifiers to the new (p2) artifacts.
-
addArtifactLocation
public void addArtifactLocation(java.lang.String classifier, java.io.File artifactLocation) throws org.eclipse.equinox.p2.core.ProvisionException
Description copied from interface:PublishingRepository
Adds the location of an existing artifact. This method should be called for artifacts which are not packed by a publisher action.- Specified by:
addArtifactLocation
in interfacePublishingRepository
- Parameters:
classifier
- the classifier of the artifact, ornull
for the main artifact.artifactLocation
- the location of the artifact- Throws:
org.eclipse.equinox.p2.core.ProvisionException
-
getArtifactLocations
public java.util.Map<java.lang.String,java.io.File> getArtifactLocations()
Description copied from interface:PublishingRepositoryFacade
The file system locations of the build artifacts, indexed by classifier.- Specified by:
getArtifactLocations
in interfacePublishingRepositoryFacade
- Returns:
- a map from classifier (
null
for main artifact) to artifact file locations in the target directory
-
-