]> source.dussan.org Git - sonarqube.git/commitdiff
Fix PathPattern on Windows
authorJulien HENRY <julien.henry@sonarsource.com>
Mon, 10 Feb 2014 12:10:01 +0000 (13:10 +0100)
committerJulien HENRY <julien.henry@sonarsource.com>
Mon, 10 Feb 2014 12:10:01 +0000 (13:10 +0100)
sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/PathPattern.java

index d5ed358339374b71a5728b4934df64e8a201aa9a..9c9d00afaf798732461fd327b25bec9d637f19d9 100644 (file)
@@ -25,6 +25,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.sonar.api.resources.Resource;
 import org.sonar.api.scan.filesystem.InputFile;
+import org.sonar.api.utils.PathUtils;
 import org.sonar.api.utils.WildcardPattern;
 
 import java.io.File;
@@ -77,7 +78,7 @@ abstract class PathPattern {
 
     @Override
     boolean match(File ioFile, String relativePathFromBasedir) {
-      String path = ioFile.getAbsolutePath();
+      String path = PathUtils.canonicalPath(ioFile);
       return pattern.match(path);
     }