Search in sources :

Example 11 with P2TargetPlatform

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();
}
Also used : TargetPlatformConfigurationStub(org.eclipse.tycho.p2.target.facade.TargetPlatformConfigurationStub)

Example 12 with P2TargetPlatform

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);
}
Also used : P2TargetPlatform(org.eclipse.tycho.p2.target.P2TargetPlatform) PreliminaryTargetPlatformImpl(org.eclipse.tycho.p2.target.PreliminaryTargetPlatformImpl) PublishingRepository(org.eclipse.tycho.repository.publishing.PublishingRepository) TargetPlatformFactoryImpl(org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl)

Aggregations

P2TargetPlatform (org.eclipse.tycho.p2.target.P2TargetPlatform)7 IInstallableUnit (org.eclipse.equinox.p2.metadata.IInstallableUnit)6 ExecutionEnvironmentConfigurationStub (org.eclipse.tycho.core.ee.shared.ExecutionEnvironmentConfigurationStub)3 PublishingRepository (org.eclipse.tycho.repository.publishing.PublishingRepository)3 Test (org.junit.Test)3 ReactorProjectIdentities (org.eclipse.tycho.ReactorProjectIdentities)2 TargetPlatformFilter (org.eclipse.tycho.artifacts.TargetPlatformFilter)2 MavenRepositoryLocation (org.eclipse.tycho.core.resolver.shared.MavenRepositoryLocation)2 PomDependencyCollector (org.eclipse.tycho.p2.target.facade.PomDependencyCollector)2 TargetPlatformConfigurationStub (org.eclipse.tycho.p2.target.facade.TargetPlatformConfigurationStub)2 TargetPlatformFilterEvaluator (org.eclipse.tycho.p2.target.filters.TargetPlatformFilterEvaluator)2 IRawArtifactFileProvider (org.eclipse.tycho.repository.p2base.artifact.provider.IRawArtifactFileProvider)2 LinkedHashSet (java.util.LinkedHashSet)1 LinkedList (java.util.LinkedList)1 ReactorProject (org.eclipse.tycho.ReactorProject)1 MultiLineLogger (org.eclipse.tycho.core.shared.MultiLineLogger)1 ReactorProjectStub (org.eclipse.tycho.p2.impl.test.ReactorProjectStub)1 FinalTargetPlatformImpl (org.eclipse.tycho.p2.target.FinalTargetPlatformImpl)1 PreliminaryTargetPlatformImpl (org.eclipse.tycho.p2.target.PreliminaryTargetPlatformImpl)1 TargetPlatformFactoryImpl (org.eclipse.tycho.p2.target.TargetPlatformFactoryImpl)1