diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-06-14 15:43:18 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-06-21 20:21:30 +0200 |
commit | 81a06e86f6aab48131591675ccc0dd54261c0e4f (patch) | |
tree | b59863f09c68a2753609b46f34e6379f8c9868ff /sonar-scanner-engine | |
parent | c0487171c393547539f458b0d1b9ca7904112fdb (diff) | |
download | sonarqube-81a06e86f6aab48131591675ccc0dd54261c0e4f.tar.gz sonarqube-81a06e86f6aab48131591675ccc0dd54261c0e4f.zip |
SONAR-10690 install Core Extensions before plugins
Diffstat (limited to 'sonar-scanner-engine')
3 files changed, 6 insertions, 6 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleScanContainer.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleScanContainer.java index af03f0ae932..2d55e97cd1a 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleScanContainer.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleScanContainer.java @@ -168,10 +168,10 @@ public class ModuleScanContainer extends ComponentContainer { } private void addExtensions() { - ExtensionInstaller pluginInstaller = getComponentByType(ExtensionInstaller.class); - pluginInstaller.install(this, e -> isScannerSide(e) && isInstantiationStrategy(e, PER_PROJECT)); CoreExtensionsInstaller coreExtensionsInstaller = getComponentByType(CoreExtensionsInstaller.class); coreExtensionsInstaller.install(this, t -> isInstantiationStrategy(t, PER_PROJECT)); + ExtensionInstaller pluginInstaller = getComponentByType(ExtensionInstaller.class); + pluginInstaller.install(this, e -> isScannerSide(e) && isInstantiationStrategy(e, PER_PROJECT)); } @Override diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ProjectScanContainer.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ProjectScanContainer.java index c0ab266b34f..1ed39274eba 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ProjectScanContainer.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ProjectScanContainer.java @@ -241,10 +241,10 @@ public class ProjectScanContainer extends ComponentContainer { } private void addBatchExtensions() { - getComponentByType(ExtensionInstaller.class) - .install(this, getBatchPluginExtensionsFilter()); getComponentByType(CoreExtensionsInstaller.class) .install(this, extension -> isInstantiationStrategy(extension, PER_BATCH)); + getComponentByType(ExtensionInstaller.class) + .install(this, getBatchPluginExtensionsFilter()); } @VisibleForTesting diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/task/TaskContainer.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/task/TaskContainer.java index 4d81fa18127..1d0c943aef1 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/task/TaskContainer.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/task/TaskContainer.java @@ -59,10 +59,10 @@ public class TaskContainer extends ComponentContainer { } private void addTaskExtensions() { - getComponentByType(ExtensionInstaller.class) - .install(this, extension -> isScannerSide(extension) && isInstantiationStrategy(extension, PER_TASK)); getComponentByType(CoreExtensionsInstaller.class) .install(this, t -> isInstantiationStrategy(t, PER_TASK)); + getComponentByType(ExtensionInstaller.class) + .install(this, extension -> isScannerSide(extension) && isInstantiationStrategy(extension, PER_TASK)); } @Override |