use of org.sonar.ce.task.projectexport.ProjectExportContainerPopulator in project sonarqube by SonarSource.
the class ProjectExportTaskProcessor method processProjectExport.
private void processProjectExport(CeTask task) {
CeTask.Component exportComponent = mandatoryComponent(task, PROJECT_EXPORT);
failIfNotMain(exportComponent, task);
ProjectDescriptor projectExportDescriptor = new ProjectDescriptor(exportComponent.getUuid(), mandatoryKey(exportComponent), mandatoryName(exportComponent));
try (TaskContainer taskContainer = new TaskContainerImpl(componentContainer, new ProjectExportContainerPopulator(projectExportDescriptor))) {
taskContainer.bootup();
taskContainer.getComponentByType(ProjectExportProcessor.class).process();
}
}
Aggregations