diff options
author | Matteo Mara <matteo.mara@sonarsource.com> | 2023-12-22 10:28:20 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-12-22 20:03:01 +0000 |
commit | 48705fd9366d3cfae6c4642084d0400ee73313ad (patch) | |
tree | 1932ef20c1ff00118d8b83a6879e16d62a788381 /sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/SpringProjectScanContainer.java | |
parent | b6367ef978efd8f342dd70c4427e7570320818a4 (diff) | |
download | sonarqube-48705fd9366d3cfae6c4642084d0400ee73313ad.tar.gz sonarqube-48705fd9366d3cfae6c4642084d0400ee73313ad.zip |
Revert "SONAR-21195 Refactor file indexing into two distinct steps"
This reverts commit 42d16dafde01b19bc7fcb99084e087fdc9b8e95e.
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/SpringProjectScanContainer.java')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/SpringProjectScanContainer.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/SpringProjectScanContainer.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/SpringProjectScanContainer.java index b70fde51660..351593e9404 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/SpringProjectScanContainer.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/SpringProjectScanContainer.java @@ -49,10 +49,7 @@ import org.sonar.scanner.qualitygate.QualityGateCheck; import org.sonar.scanner.report.ContextPropertiesPublisher; import org.sonar.scanner.report.ReportPublisher; import org.sonar.scanner.rule.QProfileVerifier; -import org.sonar.scanner.scan.filesystem.FileIndexer; -import org.sonar.scanner.scan.filesystem.InputFileFilterRepository; -import org.sonar.scanner.scan.filesystem.LanguageDetection; -import org.sonar.scanner.scan.filesystem.ProjectFileIndexer; +import org.sonar.scanner.scan.filesystem.InputComponentStore; import org.sonar.scanner.scm.ScmPublisher; import org.sonar.scanner.sensor.ProjectSensorExtensionDictionary; import org.sonar.scanner.sensor.ProjectSensorsExecutor; @@ -72,7 +69,7 @@ public class SpringProjectScanContainer extends SpringComponentContainer { @Override protected void doBeforeStart() { - Set<String> languages = getParentComponentByType(LanguageDetection.class).getDetectedLanguages(); + Set<String> languages = getParentComponentByType(InputComponentStore.class).languages(); installPluginsForLanguages(languages); addScannerComponents(); } @@ -117,12 +114,7 @@ public class SpringProjectScanContainer extends SpringComponentContainer { ProjectSensorExtensionDictionary.class, ProjectSensorsExecutor.class, - AnalysisObservers.class, - - // file system - InputFileFilterRepository.class, - FileIndexer.class, - ProjectFileIndexer.class); + AnalysisObservers.class); } static ExtensionMatcher getScannerProjectExtensionsFilter() { @@ -138,7 +130,6 @@ public class SpringProjectScanContainer extends SpringComponentContainer { protected void doAfterStart() { getParentComponentByType(ScannerMetrics.class).addPluginMetrics(getComponentsByType(Metrics.class)); getComponentByType(ProjectLock.class).tryLock(); - getComponentByType(ProjectFileIndexer.class).index(); GlobalAnalysisMode analysisMode = getComponentByType(GlobalAnalysisMode.class); InputModuleHierarchy tree = getComponentByType(InputModuleHierarchy.class); ScanProperties properties = getComponentByType(ScanProperties.class); |