]> source.dussan.org Git - sonarqube.git/commitdiff
Fix Project missing in container
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Tue, 31 Jan 2017 16:02:58 +0000 (17:02 +0100)
committerdbmeneses <duarte.meneses@sonarsource.com>
Fri, 3 Feb 2017 16:32:57 +0000 (17:32 +0100)
sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ModuleScanContainer.java

index b62ad60e1a866c568212a6be1191d96f2fd51972..767d66e60751ab647c2045faa735f587d3ecc043 100644 (file)
@@ -26,6 +26,7 @@ import org.sonar.api.batch.InstantiationStrategy;
 import org.sonar.api.batch.fs.internal.DefaultInputModule;
 import org.sonar.api.batch.fs.internal.FileMetadata;
 import org.sonar.api.batch.rule.CheckFactory;
+import org.sonar.api.resources.Project;
 import org.sonar.api.scan.filesystem.FileExclusions;
 import org.sonar.core.platform.ComponentContainer;
 import org.sonar.scanner.DefaultFileLinesContextFactory;
@@ -92,6 +93,8 @@ public class ModuleScanContainer extends ComponentContainer {
   private void addCoreComponents() {
     add(
       module.definition(),
+      // still injected by some plugins
+      new Project(module.definition()),
       module,
       ModuleSettings.class);