use of org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl in project tycho by eclipse.
the class P2ResolverFactoryImpl method getTargetPlatformFactory.
@Override
public TargetPlatformFactoryImpl getTargetPlatformFactory() {
try {
// TODO don't synchronize twice
LocalMetadataRepository localMetadataRepo = getLocalMetadataRepository(mavenContext, localRepoIndices);
LocalArtifactRepository localArtifactRepo = getLocalArtifactRepository(mavenContext, localRepoIndices);
return new TargetPlatformFactoryImpl(mavenContext, remoteAgentManager.getProvisioningAgent(), localArtifactRepo, localMetadataRepo, targetDefinitionResolverService);
} catch (ProvisionException e) {
throw new RuntimeException(e);
}
}
use of org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl in project tycho by eclipse.
the class ReactorRepositoryManagerImpl method computeFinalTargetPlatform.
@Override
public void computeFinalTargetPlatform(ReactorProject project, List<? extends ReactorProjectIdentities> upstreamProjects) {
PreliminaryTargetPlatformImpl preliminaryTargetPlatform = getRegisteredPreliminaryTargetPlatform(project);
if (preliminaryTargetPlatform == null) {
// project doesn't seem to use resolver=p2
return;
}
List<PublishingRepository> upstreamProjectResults = getBuildResults(upstreamProjects);
P2TargetPlatform result = ((TargetPlatformFactoryImpl) tpFactory).createTargetPlatformWithUpdatedReactorContent(preliminaryTargetPlatform, upstreamProjectResults);
project.setContextValue(FINAL_TARGET_PLATFORM_KEY, result);
}
Aggregations