From: Simon Brandhof Date: Tue, 2 Oct 2012 10:29:03 +0000 (+0200) Subject: Fix lifecycle of ProjectFileSystem X-Git-Tag: 3.3~145 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=83b8f824fbd2f40c05827cea264cc01a48a6854d;p=sonarqube.git Fix lifecycle of ProjectFileSystem --- diff --git a/sonar-batch/src/main/java/org/sonar/batch/DefaultProjectFileSystem2.java b/sonar-batch/src/main/java/org/sonar/batch/DefaultProjectFileSystem2.java index 0ee2dbfe033..2dfe6dbe3fc 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/DefaultProjectFileSystem2.java +++ b/sonar-batch/src/main/java/org/sonar/batch/DefaultProjectFileSystem2.java @@ -173,4 +173,10 @@ public class DefaultProjectFileSystem2 extends DefaultProjectFileSystem { protected List getInitialTestFiles() { return resolvePaths(def.getTestFiles()); } + + // Hack to instantiate DefaultProjectFileSystem2 before executing Phases. + // TODO all the project bootstrapping must be refactored. It's overcomplicated. + public void start() { + + } }