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 ModuleArtifactRepositoryartifactRepositoryprivate ModuleMetadataRepositorymetadataRepositoryprivate ReactorProjectIdentitiesproject
-
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 voidaddArtifactLocation(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.IFileArtifactRepositorygetArtifactRepository()org.eclipse.equinox.p2.repository.artifact.IArtifactRepositorygetArtifactRepositoryForWriting(WriteSessionContext writeSession)Returns a view onto the project's artifact repository which allows writing new artifacts.IRawArtifactFileProvidergetArtifacts()java.util.Set<java.lang.Object>getInstallableUnits()Returns theIInstallableUnits in the publishing repository.org.eclipse.equinox.p2.repository.metadata.IMetadataRepositorygetMetadataRepository()ReactorProjectIdentitiesgetProjectIdentities()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:PublishingRepositoryReturns the project for which this instance contains the publishing results.- Specified by:
getProjectIdentitiesin interfacePublishingRepository
-
getMetadataRepository
public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getMetadataRepository()
- Specified by:
getMetadataRepositoryin interfacePublishingRepository
-
getInstallableUnits
public java.util.Set<java.lang.Object> getInstallableUnits()
Description copied from interface:PublishingRepositoryFacadeReturns theIInstallableUnits in the publishing repository.- Specified by:
getInstallableUnitsin interfacePublishingRepositoryFacade
-
getArtifacts
public IRawArtifactFileProvider getArtifacts()
- Specified by:
getArtifactsin interfacePublishingRepository
-
getArtifactRepository
public org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository getArtifactRepository()
- Specified by:
getArtifactRepositoryin interfacePublishingRepository
-
getArtifactRepositoryForWriting
public org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getArtifactRepositoryForWriting(WriteSessionContext writeSession)
Description copied from interface:PublishingRepositoryReturns a view onto the project's artifact repository which allows writing new artifacts.- Specified by:
getArtifactRepositoryForWritingin 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.ProvisionExceptionDescription copied from interface:PublishingRepositoryAdds the location of an existing artifact. This method should be called for artifacts which are not packed by a publisher action.- Specified by:
addArtifactLocationin interfacePublishingRepository- Parameters:
classifier- the classifier of the artifact, ornullfor 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:PublishingRepositoryFacadeThe file system locations of the build artifacts, indexed by classifier.- Specified by:
getArtifactLocationsin interfacePublishingRepositoryFacade- Returns:
- a map from classifier (
nullfor main artifact) to artifact file locations in the target directory
-
-