Browse Source

Try (again) to fix test on Windows

tags/2.5-rc1
SimonBrandhof 11 years ago
parent
commit
53e9e82e37

+ 1
- 1
sonar-runner-batch/src/main/java/org/sonar/runner/batch/FilePattern.java View File

} }


public boolean accept(File file) { public boolean accept(File file) {
return pattern.match(file.getAbsolutePath());
return pattern.match(FilenameUtils.separatorsToUnix(file.getAbsolutePath()));
} }


public boolean accept(File file, String filename) { public boolean accept(File file, String filename) {

+ 1
- 2
sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java View File

} }


private String path(File f) throws IOException { private String path(File f) throws IOException {
String s = FilenameUtils.separatorsToUnix(f.getCanonicalPath());
return StringUtils.removeEnd(s, "/");
return FilenameUtils.separatorsToUnix(f.getCanonicalPath());
} }
} }

Loading…
Cancel
Save