]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-926 fix support of non-fs projects
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 5 Feb 2014 09:58:00 +0000 (10:58 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 5 Feb 2014 09:58:17 +0000 (10:58 +0100)
sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java

index 3ec7284ae1800eabd0a492430a2a0ace859a2ac0..07e0e8a82cd70a0055d4245310ccc0f24fcdad74 100644 (file)
@@ -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);