From 699598cb972ca6f22174f7f7979a084babad2ab9 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 10 Oct 2013 09:17:02 +0200 Subject: SONAR-3677 fix test on MSWindows --- .../java/org/sonar/api/scan/filesystem/internal/DefaultInputFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sonar-plugin-api') 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 attributes) { try { - this.path = file.getCanonicalPath(); + this.path = FilenameUtils.separatorsToUnix(file.getCanonicalPath()); this.relativePath = FilenameUtils.separatorsToUnix(relativePath); this.attributes = attributes; } catch (IOException e) { -- cgit v1.2.3