diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-10-10 09:17:02 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-10-10 09:17:02 +0200 |
commit | 699598cb972ca6f22174f7f7979a084babad2ab9 (patch) | |
tree | cdc9c3189b895060274a4418d6a008f20731afff /sonar-plugin-api | |
parent | accc350d22582a10836e16e5dd867c11e572ce39 (diff) | |
download | sonarqube-699598cb972ca6f22174f7f7979a084babad2ab9.tar.gz sonarqube-699598cb972ca6f22174f7f7979a084babad2ab9.zip |
SONAR-3677 fix test on MSWindows
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/scan/filesystem/internal/DefaultInputFile.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/scan/filesystem/internal/DefaultInputFile.java b/sonar-plugin-api/src/main/java/org/sonar/api/scan/filesystem/internal/DefaultInputFile.java index 5c9a2dd5423..2437ec35670 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/scan/filesystem/internal/DefaultInputFile.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/scan/filesystem/internal/DefaultInputFile.java @@ -41,7 +41,7 @@ public class DefaultInputFile implements InputFile { private DefaultInputFile(File file, String relativePath, Map<String, String> attributes) { try { - this.path = file.getCanonicalPath(); + this.path = FilenameUtils.separatorsToUnix(file.getCanonicalPath()); this.relativePath = FilenameUtils.separatorsToUnix(relativePath); this.attributes = attributes; } catch (IOException e) { |