diff options
author | Matteo Mara <matteo.mara@sonarsource.com> | 2023-12-22 10:28:18 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-12-22 20:03:00 +0000 |
commit | 565a389c07036f7e55496ff0b2002d9a75e450cf (patch) | |
tree | 99926d86cc18fa5ad3bef64b016d6caf1d076b8c /sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/SpringProjectScanContainer.java | |
parent | 007ef6cf95685696b373ca2a13060278ce2b4263 (diff) | |
download | sonarqube-565a389c07036f7e55496ff0b2002d9a75e450cf.tar.gz sonarqube-565a389c07036f7e55496ff0b2002d9a75e450cf.zip |
Revert "SONAR-21195 Support ProjectBuilders for on-demand plugins"
This reverts commit 4dbc95a3c4aa4b4705bc676efc07b5c2a8b68f37.
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 | 8 |
1 files changed, 0 insertions, 8 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 6ec3d025c8d..b70fde51660 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 @@ -25,8 +25,6 @@ import javax.annotation.Priority; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sonar.api.Plugin; -import org.sonar.api.batch.bootstrap.ProjectBuilder; -import org.sonar.api.batch.bootstrap.ProjectReactor; import org.sonar.api.batch.fs.internal.DefaultInputModule; import org.sonar.api.measures.Metrics; import org.sonar.api.resources.Languages; @@ -140,12 +138,6 @@ public class SpringProjectScanContainer extends SpringComponentContainer { protected void doAfterStart() { getParentComponentByType(ScannerMetrics.class).addPluginMetrics(getComponentsByType(Metrics.class)); getComponentByType(ProjectLock.class).tryLock(); - - // NOTE: ProjectBuilders executed here will have any changes they make to the ProjectReactor discarded. - ProjectBuilder[] phase2ProjectBuilders = getComponentsByType(ProjectBuilder.class).toArray(new ProjectBuilder[0]); - getComponentByType(ProjectBuildersExecutor.class).executeProjectBuilders(phase2ProjectBuilders, getComponentByType(ProjectReactor.class), - "Executing phase 2 project builders"); - getComponentByType(ProjectFileIndexer.class).index(); GlobalAnalysisMode analysisMode = getComponentByType(GlobalAnalysisMode.class); InputModuleHierarchy tree = getComponentByType(InputModuleHierarchy.class); |