Search in sources :

Example 6 with TaskContainerImpl

use of org.sonar.ce.task.container.TaskContainerImpl 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;
}
Also used : TaskContainerImpl(org.sonar.ce.task.container.TaskContainerImpl) TaskContainer(org.sonar.ce.task.container.TaskContainer) ComputationStepExecutor(org.sonar.ce.task.step.ComputationStepExecutor) CheckForNull(javax.annotation.CheckForNull)

Aggregations

TaskContainerImpl (org.sonar.ce.task.container.TaskContainerImpl)6 Test (org.junit.Test)3 TaskContainer (org.sonar.ce.task.container.TaskContainer)3 ComputationStep (org.sonar.ce.task.step.ComputationStep)3 SpringComponentContainer (org.sonar.core.platform.SpringComponentContainer)3 CheckForNull (javax.annotation.CheckForNull)2 ComputationStepExecutor (org.sonar.ce.task.step.ComputationStepExecutor)2 CeTask (org.sonar.ce.task.CeTask)1 ComplexityMeasuresStep (org.sonar.ce.task.projectanalysis.step.ComplexityMeasuresStep)1 ProjectExportContainerPopulator (org.sonar.ce.task.projectexport.ProjectExportContainerPopulator)1 ProjectExportProcessor (org.sonar.ce.task.projectexport.ProjectExportProcessor)1