From: Simon Brandhof Date: Wed, 5 Feb 2014 09:58:00 +0000 (+0100) Subject: SONAR-926 fix support of non-fs projects X-Git-Tag: 4.2~251 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=137116eb124a9e271d56d19c48a7bd99d8413098;p=sonarqube.git SONAR-926 fix support of non-fs projects --- diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java index 3ec7284ae18..07e0e8a82cd 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java +++ b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java @@ -113,7 +113,7 @@ public class FileIndex implements BatchComponent { // Index only provided files indexFiles(fileSystem, progress, fileSystem.sourceFiles(), InputFile.TYPE_MAIN); indexFiles(fileSystem, progress, fileSystem.testFiles(), InputFile.TYPE_TEST); - } else { + } else if (fileSystem.baseDir() != null) { // index from basedir indexDirectory(fileSystem, progress, fileSystem.baseDir(), InputFile.TYPE_MAIN); indexDirectory(fileSystem, progress, fileSystem.baseDir(), InputFile.TYPE_TEST);