From 83b8f824fbd2f40c05827cea264cc01a48a6854d Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 2 Oct 2012 12:29:03 +0200 Subject: [PATCH] Fix lifecycle of ProjectFileSystem --- .../java/org/sonar/batch/DefaultProjectFileSystem2.java | 6 ++++++ 1 file changed, 6 insertions(+) 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() { + + } } -- 2.39.5