Search in sources :

Example 1 with ProjectExportContainerPopulator

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();
    }
}
Also used : TaskContainerImpl(org.sonar.ce.task.container.TaskContainerImpl) TaskContainer(org.sonar.ce.task.container.TaskContainer) ProjectExportContainerPopulator(org.sonar.ce.task.projectexport.ProjectExportContainerPopulator) CeTask(org.sonar.ce.task.CeTask) ProjectExportProcessor(org.sonar.ce.task.projectexport.ProjectExportProcessor)

Aggregations

CeTask (org.sonar.ce.task.CeTask)1 TaskContainer (org.sonar.ce.task.container.TaskContainer)1 TaskContainerImpl (org.sonar.ce.task.container.TaskContainerImpl)1 ProjectExportContainerPopulator (org.sonar.ce.task.projectexport.ProjectExportContainerPopulator)1 ProjectExportProcessor (org.sonar.ce.task.projectexport.ProjectExportProcessor)1