aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-10-10 09:17:02 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-10-10 09:17:02 +0200
commit699598cb972ca6f22174f7f7979a084babad2ab9 (patch)
treecdc9c3189b895060274a4418d6a008f20731afff /sonar-plugin-api
parentaccc350d22582a10836e16e5dd867c11e572ce39 (diff)
downloadsonarqube-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.java2
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) {