diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-04-15 14:52:47 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-04-15 14:53:21 +0200 |
commit | 5a707bfaece70e2c4690637d05266368aaa61ad9 (patch) | |
tree | 09200a0d01edd6bcfe0968ca98d53beeacf0d618 /sonar-batch/src | |
parent | 86a26e1a2721c1804556b4928dee3ea23f020339 (diff) | |
download | sonarqube-5a707bfaece70e2c4690637d05266368aaa61ad9.tar.gz sonarqube-5a707bfaece70e2c4690637d05266368aaa61ad9.zip |
SONAR-6253 Fix missing metadata on test files
Diffstat (limited to 'sonar-batch/src')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/report/ComponentsPublisher.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/report/ComponentsPublisher.java b/sonar-batch/src/main/java/org/sonar/batch/report/ComponentsPublisher.java index a683dafad81..a31b46e8437 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/report/ComponentsPublisher.java +++ b/sonar-batch/src/main/java/org/sonar/batch/report/ComponentsPublisher.java @@ -25,7 +25,6 @@ import org.sonar.api.batch.bootstrap.ProjectDefinition; import org.sonar.api.batch.bootstrap.ProjectReactor; import org.sonar.api.batch.fs.InputFile; import org.sonar.api.resources.Language; -import org.sonar.api.resources.Qualifiers; import org.sonar.api.resources.Resource; import org.sonar.api.resources.ResourceUtils; import org.sonar.batch.index.BatchResource; @@ -83,7 +82,7 @@ public class ComponentsPublisher implements ReportPublisherStep { if (sid != null) { builder.setSnapshotId(sid); } - if (Qualifiers.isFile(r)) { + if (batchResource.isFile()) { builder.setIsTest(ResourceUtils.isUnitTestFile(r)); builder.setLines(((InputFile) batchResource.inputPath()).lines()); } |