Interface PublishingRepository
-
- All Superinterfaces:
PublishingRepositoryFacade
- All Known Implementing Classes:
PublishingRepositoryImpl
public interface PublishingRepository extends PublishingRepositoryFacade
Representation of the p2 repositories that receive the artifacts produced by a project.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addArtifactLocation(java.lang.String classifier, java.io.File artifactLocation)
Adds the location of an existing artifact.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()
org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
getMetadataRepository()
ReactorProjectIdentities
getProjectIdentities()
Returns the project for which this instance contains the publishing results.-
Methods inherited from interface org.eclipse.tycho.repository.registry.facade.PublishingRepositoryFacade
getArtifactLocations, getInstallableUnits
-
-
-
-
Method Detail
-
getProjectIdentities
ReactorProjectIdentities getProjectIdentities()
Returns the project for which this instance contains the publishing results.
-
getMetadataRepository
org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getMetadataRepository()
-
getArtifacts
IRawArtifactFileProvider getArtifacts()
-
getArtifactRepository
org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository getArtifactRepository()
-
getArtifactRepositoryForWriting
org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getArtifactRepositoryForWriting(WriteSessionContext writeSession)
Returns a view onto the project's artifact repository which allows writing new artifacts.- Parameters:
writeSession
- a callback used to assign (Maven) classifiers to the new (p2) artifacts.
-
addArtifactLocation
void addArtifactLocation(java.lang.String classifier, java.io.File artifactLocation) throws org.eclipse.equinox.p2.core.ProvisionException
Adds the location of an existing artifact. This method should be called for artifacts which are not packed by a publisher action.- 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
-
-