use of org.eclipse.tycho.p2.target.P2TargetPlatform in project tycho by eclipse.
the class PomDependencyCollectorTest method getTargetPlatformUnits.
private Collection<IInstallableUnit> getTargetPlatformUnits() {
TestResolverFactory resolverFactory = new TestResolverFactory(logVerifier.getLogger());
P2TargetPlatform platform = resolverFactory.getTargetPlatformFactoryImpl().createTargetPlatform(new TargetPlatformConfigurationStub(), NOOP_EE_RESOLUTION_HANDLER, null, subject);
return platform.getInstallableUnits();
}
use of org.eclipse.tycho.p2.target.P2TargetPlatform 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