Search in sources :

Example 1 with AnalysisTempFolderProvider

use of org.sonar.scanner.analysis.AnalysisTempFolderProvider in project sonarqube by SonarSource.

the class ProjectScanContainer method addBatchComponents.

private void addBatchComponents() {
    add(props, DefaultAnalysisMode.class, ProjectReactorBuilder.class, WorkDirectoryCleaner.class, new MutableProjectReactorProvider(), new ImmutableProjectReactorProvider(), ProjectBuildersExecutor.class, ProjectLock.class, EventBus.class, PhasesTimeProfiler.class, ResourceTypes.class, ProjectReactorValidator.class, MetricProvider.class, ProjectAnalysisInfo.class, DefaultIndex.class, Storages.class, new RulesProvider(), new ProjectRepositoriesProvider(), // temp
    new AnalysisTempFolderProvider(), // file system
    ModuleIndexer.class, InputComponentStore.class, PathResolver.class, DefaultInputModuleHierarchy.class, DefaultComponentTree.class, BatchIdGenerator.class, // rules
    new ActiveRulesProvider(), new QualityProfileProvider(), // issues
    DefaultIssueCallback.class, IssueCache.class, DefaultProjectIssues.class, IssueTransition.class, // metrics
    DefaultMetricFinder.class, DeprecatedMetricFinder.class, // tests
    TestPlanBuilder.class, TestableBuilder.class, // lang
    Languages.class, DefaultLanguagesRepository.class, // Measures
    MeasureCache.class, // context
    ContextPropertiesCache.class, ContextPropertiesPublisher.class, ProjectSettings.class, // Report
    ScannerMetrics.class, ReportPublisher.class, AnalysisContextReportPublisher.class, MetadataPublisher.class, ActiveRulesPublisher.class, ComponentsPublisher.class, MeasuresPublisher.class, CoveragePublisher.class, SourcePublisher.class, TestExecutionAndCoveragePublisher.class, // Cpd
    CpdExecutor.class, SonarCpdBlockIndex.class, ScanTaskObservers.class, UserRepositoryLoader.class);
    addIfMissing(DefaultRulesLoader.class, RulesLoader.class);
    addIfMissing(DefaultActiveRulesLoader.class, ActiveRulesLoader.class);
    addIfMissing(DefaultQualityProfileLoader.class, QualityProfileLoader.class);
    addIfMissing(DefaultProjectRepositoriesLoader.class, ProjectRepositoriesLoader.class);
}
Also used : RulesProvider(org.sonar.scanner.rule.RulesProvider) ActiveRulesProvider(org.sonar.scanner.rule.ActiveRulesProvider) QualityProfileProvider(org.sonar.scanner.repository.QualityProfileProvider) ProjectRepositoriesProvider(org.sonar.scanner.repository.ProjectRepositoriesProvider) ActiveRulesProvider(org.sonar.scanner.rule.ActiveRulesProvider) AnalysisTempFolderProvider(org.sonar.scanner.analysis.AnalysisTempFolderProvider)

Example 2 with AnalysisTempFolderProvider

use of org.sonar.scanner.analysis.AnalysisTempFolderProvider in project sonarqube by SonarSource.

the class AnalysisTempFolderProviderTest method setUp.

@Before
public void setUp() {
    tempFolderProvider = new AnalysisTempFolderProvider();
    projectReactor = mock(ProjectReactor.class);
    ProjectDefinition projectDefinition = mock(ProjectDefinition.class);
    when(projectReactor.getRoot()).thenReturn(projectDefinition);
    when(projectDefinition.getWorkDir()).thenReturn(temp.getRoot());
}
Also used : AnalysisTempFolderProvider(org.sonar.scanner.analysis.AnalysisTempFolderProvider) ProjectReactor(org.sonar.api.batch.bootstrap.ProjectReactor) ProjectDefinition(org.sonar.api.batch.bootstrap.ProjectDefinition) Before(org.junit.Before)

Aggregations

AnalysisTempFolderProvider (org.sonar.scanner.analysis.AnalysisTempFolderProvider)2 Before (org.junit.Before)1 ProjectDefinition (org.sonar.api.batch.bootstrap.ProjectDefinition)1 ProjectReactor (org.sonar.api.batch.bootstrap.ProjectReactor)1 ProjectRepositoriesProvider (org.sonar.scanner.repository.ProjectRepositoriesProvider)1 QualityProfileProvider (org.sonar.scanner.repository.QualityProfileProvider)1 ActiveRulesProvider (org.sonar.scanner.rule.ActiveRulesProvider)1 RulesProvider (org.sonar.scanner.rule.RulesProvider)1