diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-01-13 22:53:46 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-01-13 22:53:46 +0100 |
commit | 6256eda8b9d69410d418bacbd31cbc4f8220e7c7 (patch) | |
tree | ec60cb617f38aa2d2b1c96215668684a14007c4e /sonar-batch/src | |
parent | c965dc1e811ffb98f2806a343afec68a01ff82c3 (diff) | |
download | sonarqube-6256eda8b9d69410d418bacbd31cbc4f8220e7c7.tar.gz sonarqube-6256eda8b9d69410d418bacbd31cbc4f8220e7c7.zip |
SONAR-3024 Fix deprecated key in json report
Diffstat (limited to 'sonar-batch/src')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java | 3 |
1 files changed, 2 insertions, 1 deletions
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 6ccd2fd5c95..f5ff4bd6c33 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 @@ -181,7 +181,8 @@ public class FileIndex implements BatchComponent { } set(attributes, DefaultInputFile.ATTRIBUTE_COMPONENT_KEY, project.getEffectiveKey() + ":" + resourceKey); if (Java.KEY.equals(lang)) { - set(attributes, DefaultInputFile.ATTRIBUTE_COMPONENT_DEPRECATED_KEY, project.getEffectiveKey() + ":" + JavaFile.fromRelativePath(sourceRelativePath, false).getKey()); + set(attributes, DefaultInputFile.ATTRIBUTE_COMPONENT_DEPRECATED_KEY, project.getEffectiveKey() + ":" + + JavaFile.fromRelativePath(sourceRelativePath, false).getDeprecatedKey()); } else { set(attributes, DefaultInputFile.ATTRIBUTE_COMPONENT_DEPRECATED_KEY, project.getEffectiveKey() + ":" + sourceRelativePath); } |