From bc75bfaad86e30160c40d0002d15de4360a31dc2 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 20 Feb 2014 17:40:33 +0100 Subject: [PATCH] SONAR-926 Do not fail if basedir is not dir in a sonar-runner task --- .../sonar/batch/scan/filesystem/DefaultModuleFileSystem.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystem.java b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystem.java index 0ae6deac815..b537de96bf4 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystem.java +++ b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystem.java @@ -69,7 +69,9 @@ public class DefaultModuleFileSystem extends DefaultFileSystem implements Module this.moduleKey = module.getKey(); this.settings = settings; this.index = index; - setBaseDir(initializer.baseDir()); + if (initializer.baseDir() != null) { + setBaseDir(initializer.baseDir()); + } setWorkDir(initializer.workingDir()); this.buildDir = initializer.buildDir(); this.sourceDirs = initializer.sourceDirs(); -- 2.39.5