Class FeatureRootfileArtifactRepository
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.equinox.p2.repository.spi.AbstractRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>
-
- org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
-
- org.eclipse.tycho.p2.impl.publisher.repo.TransientArtifactRepository
-
- org.eclipse.tycho.p2.impl.publisher.repo.FeatureRootfileArtifactRepository
-
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
,org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey>
,org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
,org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>
public class FeatureRootfileArtifactRepository extends TransientArtifactRepository
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
outputDirectory
private java.util.Map<java.lang.String,IP2Artifact>
publishedArtifacts
private org.eclipse.equinox.p2.publisher.PublisherInfo
publisherInfo
private static java.lang.String
ROOTFILE_CLASSIFIER
private static java.lang.String
ROOTFILE_EXTENSION
-
Fields inherited from class org.eclipse.tycho.p2.impl.publisher.repo.TransientArtifactRepository
descriptors
-
-
Constructor Summary
Constructors Constructor Description FeatureRootfileArtifactRepository(org.eclipse.equinox.p2.publisher.PublisherInfo publisherInfo, java.io.File outputDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.io.OutputStream
createRootfileOutputStream(org.eclipse.equinox.p2.metadata.IArtifactKey artifactKey)
java.io.OutputStream
getOutputStream(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
java.util.Map<java.lang.String,IP2Artifact>
getPublishedArtifacts()
(package private) java.lang.String
getRootFileArtifactClassifier(java.lang.String artifactId)
-
Methods inherited from class org.eclipse.tycho.p2.impl.publisher.repo.TransientArtifactRepository
addDescriptor, addDescriptor, addDescriptors, addDescriptors, contains, contains, createArtifactDescriptor, descriptorQueryable, getArtifact, getArtifactDescriptors, getArtifactDescriptors, getArtifacts, getRawArtifact, isModifiable, query
-
Methods inherited from class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
createArtifactKey, equals, executeBatch, hashCode, removeAll, removeAll, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptors, removeDescriptors, removeDescriptors, removeDescriptors
-
Methods inherited from class org.eclipse.equinox.p2.repository.spi.AbstractRepository
assertModifiable, getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, setDescription, setLocation, setName, setProperties, setProperty, setProperty, setProvider, setType, setVersion
-
-
-
-
Field Detail
-
ROOTFILE_CLASSIFIER
private static final java.lang.String ROOTFILE_CLASSIFIER
- See Also:
- Constant Field Values
-
ROOTFILE_EXTENSION
private static final java.lang.String ROOTFILE_EXTENSION
- See Also:
- Constant Field Values
-
outputDirectory
private final java.io.File outputDirectory
-
publisherInfo
private final org.eclipse.equinox.p2.publisher.PublisherInfo publisherInfo
-
publishedArtifacts
private java.util.Map<java.lang.String,IP2Artifact> publishedArtifacts
-
-
Method Detail
-
getOutputStream
public java.io.OutputStream getOutputStream(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) throws org.eclipse.equinox.p2.core.ProvisionException
- Specified by:
getOutputStream
in interfaceorg.eclipse.equinox.p2.repository.artifact.IArtifactRepository
- Overrides:
getOutputStream
in classTransientArtifactRepository
- Throws:
org.eclipse.equinox.p2.core.ProvisionException
-
createRootfileOutputStream
private java.io.OutputStream createRootfileOutputStream(org.eclipse.equinox.p2.metadata.IArtifactKey artifactKey) throws org.eclipse.equinox.p2.core.ProvisionException, java.io.IOException
- Throws:
org.eclipse.equinox.p2.core.ProvisionException
java.io.IOException
-
getRootFileArtifactClassifier
java.lang.String getRootFileArtifactClassifier(java.lang.String artifactId)
-
getPublishedArtifacts
public java.util.Map<java.lang.String,IP2Artifact> getPublishedArtifacts()
-
-