public class ReactorRepositoryManagerImpl extends java.lang.Object implements ReactorRepositoryManager
| Modifier and Type | Field and Description |
|---|---|
private org.eclipse.equinox.p2.core.IProvisioningAgent |
agent |
private java.io.File |
agentDir |
private org.eclipse.equinox.p2.core.IProvisioningAgentProvider |
agentFactory |
private static java.lang.String |
FINAL_TARGET_PLATFORM_KEY |
private static java.lang.String |
PRELIMINARY_TARGET_PLATFORM_KEY |
private TargetPlatformFactory |
tpFactory |
| Constructor and Description |
|---|
ReactorRepositoryManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateManager() |
void |
bindP2ResolverFactory(P2ResolverFactory p2ResolverFactory) |
void |
bindProvisioningAgentFactory(org.eclipse.equinox.p2.core.IProvisioningAgentProvider agentFactory) |
void |
computeFinalTargetPlatform(ReactorProject project,
java.util.List<? extends ReactorProjectIdentities> upstreamProjects)
Computes the (immutable) target platform with final p2 metadata and attaches it to the given
project.
|
TargetPlatform |
computePreliminaryTargetPlatform(ReactorProject project,
TargetPlatformConfigurationStub tpConfiguration,
ExecutionEnvironmentConfiguration eeConfiguration,
java.util.List<ReactorProject> reactorProjects,
PomDependencyCollector pomDependencies)
Computes the target platform with dependency-only p2 metadata and attaches it to the given
project.
|
private static java.io.File |
createTempDir(java.lang.String prefix) |
void |
deactivateManager() |
org.eclipse.equinox.p2.core.IProvisioningAgent |
getAgent() |
private java.util.List<PublishingRepository> |
getBuildResults(java.util.List<? extends ReactorProjectIdentities> projects) |
TargetPlatform |
getFinalTargetPlatform(ReactorProject project)
Returns the target platform with final p2 metadata for the given project.
|
PublishingRepository |
getPublishingRepository(ReactorProjectIdentities project)
Returns the project's publishing repository.
|
private PreliminaryTargetPlatformImpl |
getRegisteredPreliminaryTargetPlatform(ReactorProject project) |
private static final java.lang.String PRELIMINARY_TARGET_PLATFORM_KEY
private static final java.lang.String FINAL_TARGET_PLATFORM_KEY
private org.eclipse.equinox.p2.core.IProvisioningAgentProvider agentFactory
private java.io.File agentDir
private org.eclipse.equinox.p2.core.IProvisioningAgent agent
private TargetPlatformFactory tpFactory
public void bindProvisioningAgentFactory(org.eclipse.equinox.p2.core.IProvisioningAgentProvider agentFactory)
public void bindP2ResolverFactory(P2ResolverFactory p2ResolverFactory)
public void activateManager()
throws java.io.IOException,
org.eclipse.equinox.p2.core.ProvisionException
java.io.IOExceptionorg.eclipse.equinox.p2.core.ProvisionExceptionpublic void deactivateManager()
public org.eclipse.equinox.p2.core.IProvisioningAgent getAgent()
getAgent in interface ReactorRepositoryManagerpublic PublishingRepository getPublishingRepository(ReactorProjectIdentities project)
ReactorRepositoryManagergetPublishingRepository in interface ReactorRepositoryManagerFacadegetPublishingRepository in interface ReactorRepositoryManagerproject - a reference to a project in the reactor.public TargetPlatform computePreliminaryTargetPlatform(ReactorProject project, TargetPlatformConfigurationStub tpConfiguration, ExecutionEnvironmentConfiguration eeConfiguration, java.util.List<ReactorProject> reactorProjects, PomDependencyCollector pomDependencies)
ReactorRepositoryManagerFacadecomputePreliminaryTargetPlatform in interface ReactorRepositoryManagerFacadeproject - the reactor project to compute the target platform for.public void computeFinalTargetPlatform(ReactorProject project, java.util.List<? extends ReactorProjectIdentities> upstreamProjects)
ReactorRepositoryManagerFacadecomputeFinalTargetPlatform in interface ReactorRepositoryManagerFacadeproject - the reactor project to compute the target platform for.upstreamProjects - Other projects in the reactor which have already been built and may be referenced
by the given project.private PreliminaryTargetPlatformImpl getRegisteredPreliminaryTargetPlatform(ReactorProject project)
private java.util.List<PublishingRepository> getBuildResults(java.util.List<? extends ReactorProjectIdentities> projects)
public TargetPlatform getFinalTargetPlatform(ReactorProject project)
ReactorRepositoryManagerFacadegetFinalTargetPlatform in interface ReactorRepositoryManagerFacadeprivate static java.io.File createTempDir(java.lang.String prefix)
throws java.io.IOException
java.io.IOException