public class ModuleArtifactRepository extends AbstractMavenArtifactRepository
local-artifacts.properties
file, which maps classifiers to the file system
locations of the artifacts before they are uploaded into a Maven repository. (Unlike in a
Maven repository, there are no predefined locations for the artifacts in the build output
directory.)Modifier and Type | Field and Description |
---|---|
static String |
REPOSITORY_TYPE
Type string for this repository type.
|
contentLocator, descriptors, descriptorsMap, VERSION
Modifier and Type | Method and Description |
---|---|
org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor |
createArtifactDescriptor(org.eclipse.equinox.p2.metadata.IArtifactKey key) |
static ModuleArtifactRepository |
createInstance(org.eclipse.equinox.p2.core.IProvisioningAgent agent,
File repositoryDir) |
OutputStream |
getOutputStream(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) |
static ModuleArtifactRepository |
restoreInstance(org.eclipse.equinox.p2.core.IProvisioningAgent agent,
File repositoryDir) |
protected void |
store()
Called whenever the list of descriptors needs to be persisted.
|
addDescriptor, addDescriptors, contains, contains, descriptorQueryable, descriptorsChanged, getArtifact, getArtifactDescriptors, getArtifactFile, getArtifactFile, getArtifacts, getContentLocator, getP2GAV, getRawArtifact, internalAddDescriptor, query, resolve
addDescriptor, addDescriptors, createArtifactKey, equals, executeBatch, hashCode, removeAll, removeAll, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptors, removeDescriptors, removeDescriptors, removeDescriptors
assertModifiable, getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, isModifiable, setDescription, setLocation, setName, setProperties, setProperty, setProperty, setProvider, setType, setVersion
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addDescriptor, addDescriptors, createArtifactKey, executeBatch, removeAll, removeAll, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptors, removeDescriptors, removeDescriptors, removeDescriptors
public static final String REPOSITORY_TYPE
IArtifactRepositoryManager.createRepository(URI, String, String, Map)
in order to
create a repository of type ModuleArtifactRepository
.public static ModuleArtifactRepository restoreInstance(org.eclipse.equinox.p2.core.IProvisioningAgent agent, File repositoryDir) throws org.eclipse.equinox.p2.core.ProvisionException
org.eclipse.equinox.p2.core.ProvisionException
public static ModuleArtifactRepository createInstance(org.eclipse.equinox.p2.core.IProvisioningAgent agent, File repositoryDir) throws org.eclipse.equinox.p2.core.ProvisionException
org.eclipse.equinox.p2.core.ProvisionException
public org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor createArtifactDescriptor(org.eclipse.equinox.p2.metadata.IArtifactKey key)
createArtifactDescriptor
in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
createArtifactDescriptor
in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
public OutputStream getOutputStream(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) throws org.eclipse.equinox.p2.core.ProvisionException
getOutputStream
in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
getOutputStream
in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
org.eclipse.equinox.p2.core.ProvisionException
protected void store()
AbstractMavenArtifactRepository
store
in class AbstractMavenArtifactRepository
Copyright © 2008-2012 Eclipse Foundation. All Rights Reserved.