use of org.sonar.ce.task.container.TaskContainer 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();
}
}
use of org.sonar.ce.task.container.TaskContainer in project sonarqube by SonarSource.
the class IssueSyncTaskProcessor method process.
@CheckForNull
@Override
public CeTaskResult process(CeTask task) {
try (TaskContainer container = new TaskContainerImpl(ceEngineContainer, newContainerPopulator(task))) {
container.bootup();
container.getComponentByType(ComputationStepExecutor.class).execute();
}
return null;
}
use of org.sonar.ce.task.container.TaskContainer in project sonarqube by SonarSource.
the class AuditPurgeTaskProcessor method process.
@CheckForNull
@Override
public CeTaskResult process(CeTask task) {
try (TaskContainer container = new TaskContainerImpl(ceEngineContainer, newContainerPopulator(task))) {
container.bootup();
container.getComponentByType(ComputationStepExecutor.class).execute();
}
return null;
}
use of org.sonar.ce.task.container.TaskContainer in project sonarqube by SonarSource.
the class ReportTaskProcessor method process.
@Override
public CeTaskResult process(CeTask task) {
try (TaskContainer ceContainer = containerFactory.create(serverContainer, task, componentProviders)) {
ceContainer.bootup();
ceContainer.getComponentByType(ComputationStepExecutor.class).execute();
return ceContainer.getComponentByType(TaskResultHolder.class).getResult();
}
}
Aggregations