diff options
author | SimonBrandhof <simon.brandhof@gmail.com> | 2013-04-09 15:16:52 +0200 |
---|---|---|
committer | SimonBrandhof <simon.brandhof@gmail.com> | 2013-04-09 15:16:52 +0200 |
commit | 8df600848e9f5254a9a7bea60b8d66248d887b24 (patch) | |
tree | 217985a7a6aaa0dabd44d1280782ad0bb7c8164b | |
parent | cc1fcfa7ef85d9da399f77058faa9f6dc8d42760 (diff) | |
download | sonar-scanner-cli-8df600848e9f5254a9a7bea60b8d66248d887b24.tar.gz sonar-scanner-cli-8df600848e9f5254a9a7bea60b8d66248d887b24.zip |
Try (again) to fix test on Windows
-rw-r--r-- | sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java b/sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java index d6e1aa6..8237ee7 100644 --- a/sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java +++ b/sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java @@ -20,6 +20,7 @@ package org.sonar.runner.batch; import org.apache.commons.io.FilenameUtils; +import org.apache.commons.lang.StringUtils; import org.junit.Before; import org.junit.Test; @@ -75,6 +76,7 @@ public class FilePatternTest { } private String path(File f) throws IOException { - return FilenameUtils.separatorsToUnix(f.getCanonicalPath()); + String s = FilenameUtils.separatorsToUnix(f.getCanonicalPath()); + return StringUtils.removeEnd(s, "/"); } } |