public class PublishingRepositoryImpl extends Object implements PublishingRepository
Constructor and Description |
---|
PublishingRepositoryImpl(org.eclipse.equinox.p2.core.IProvisioningAgent agent,
ReactorProjectCoordinates project) |
Modifier and Type | Method and Description |
---|---|
void |
addArtifactLocation(String classifier,
File artifactLocation)
Adds the location of an existing artifact.
|
Map<String,File> |
getArtifactLocations()
The file system locations of the build artifacts, indexed by classifier.
|
org.eclipse.equinox.p2.repository.artifact.IArtifactRepository |
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.
|
Set<Object> |
getInstallableUnits()
Returns the
IInstallableUnit s in the publishing repository. |
org.eclipse.equinox.p2.repository.metadata.IMetadataRepository |
getMetadataRepository() |
public PublishingRepositoryImpl(org.eclipse.equinox.p2.core.IProvisioningAgent agent, ReactorProjectCoordinates project)
public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getMetadataRepository()
getMetadataRepository
in interface PublishingRepository
public Set<Object> getInstallableUnits()
PublishingRepositoryFacade
IInstallableUnit
s in the publishing repository.getInstallableUnits
in interface PublishingRepositoryFacade
public org.eclipse.equinox.p2.repository.artifact.IArtifactRepository 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(String classifier, 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 Map<String,File> getArtifactLocations()
PublishingRepositoryFacade
getArtifactLocations
in interface PublishingRepositoryFacade
null
for main artifact) to artifact file
locations in the target directoryCopyright © 2008-2013 Eclipse Foundation. All Rights Reserved.