use of org.eclipse.tycho.repository.publishing.PublishingRepository in project tycho by eclipse.
the class PublisherServiceFactoryImpl method createProductPublisher.
@Override
public PublishProductTool createProductPublisher(ReactorProject project, List<TargetEnvironment> environments, String buildQualifier, Interpolator interpolator) {
P2TargetPlatform targetPlatform = (P2TargetPlatform) reactorRepoManager.getFinalTargetPlatform(project);
PublisherActionRunner publisherRunner = getPublisherRunnerForProject(targetPlatform, environments);
PublishingRepository publishingRepository = reactorRepoManager.getPublishingRepository(project.getIdentities());
return new PublishProductToolImpl(publisherRunner, publishingRepository, targetPlatform, buildQualifier, interpolator, mavenContext.getLogger());
}
use of org.eclipse.tycho.repository.publishing.PublishingRepository in project tycho by eclipse.
the class PublisherServiceFactoryImpl method createPublisher.
@Override
public PublisherService createPublisher(ReactorProject project, List<TargetEnvironment> environments) {
P2TargetPlatform targetPlatform = (P2TargetPlatform) reactorRepoManager.getFinalTargetPlatform(project);
PublisherActionRunner publisherRunner = getPublisherRunnerForProject(targetPlatform, environments);
PublishingRepository publishingRepository = reactorRepoManager.getPublishingRepository(project.getIdentities());
return new PublisherServiceImpl(publisherRunner, project.getBuildQualifier(), publishingRepository);
}
use of org.eclipse.tycho.repository.publishing.PublishingRepository 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);
}
use of org.eclipse.tycho.repository.publishing.PublishingRepository in project tycho by eclipse.
the class TargetPlatformFactoryImpl method extractProjectResultIUs.
private static Map<IInstallableUnit, ReactorProjectIdentities> extractProjectResultIUs(List<PublishingRepository> projectResults) {
Map<IInstallableUnit, ReactorProjectIdentities> reactorUnits = new LinkedHashMap<>();
for (PublishingRepository projectResult : projectResults) {
Set<IInstallableUnit> projectUnits = projectResult.getMetadataRepository().query(QueryUtil.ALL_UNITS, null).toUnmodifiableSet();
ReactorProjectIdentities project = projectResult.getProjectIdentities();
for (IInstallableUnit projectUnit : projectUnits) {
reactorUnits.put(projectUnit, project);
}
}
return reactorUnits;
}
Aggregations