diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-06-03 15:14:03 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-06-03 15:14:03 +0200 |
commit | e9323945d40f6e77ee1f75a3acce0ae6eea3bcd3 (patch) | |
tree | ba6d23c936fbb31ba24dcf4c2319650c7e6c436f /sonar-plugin-api | |
parent | 1d73764b9a1e81f66d3dbeebb2fd6bdc1e05952b (diff) | |
download | sonarqube-e9323945d40f6e77ee1f75a3acce0ae6eea3bcd3.tar.gz sonarqube-e9323945d40f6e77ee1f75a3acce0ae6eea3bcd3.zip |
Fix unit test on windows
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java index 2282be26078..71c6b9acfd2 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java @@ -20,7 +20,6 @@ package org.sonar.api.batch.bootstrap; import com.google.common.collect.Lists; -import org.apache.commons.io.FilenameUtils; import org.apache.commons.lang.StringUtils; import org.sonar.api.BatchComponent; import org.sonar.api.CoreProperties; @@ -145,7 +144,7 @@ public final class ProjectDefinition implements BatchComponent { */ public ProjectDefinition addSourceDirs(String... paths) { for (String path : paths) { - appendProperty(SOURCE_DIRS_PROPERTY, FilenameUtils.normalize(path)); + appendProperty(SOURCE_DIRS_PROPERTY, path); } return this; } @@ -158,7 +157,7 @@ public final class ProjectDefinition implements BatchComponent { } public ProjectDefinition setSourceDir(String path) { - properties.setProperty(SOURCE_DIRS_PROPERTY, FilenameUtils.normalize(path)); + properties.setProperty(SOURCE_DIRS_PROPERTY, path); return this; } @@ -169,11 +168,11 @@ public final class ProjectDefinition implements BatchComponent { /** * Adding source files is possible only if no source directories have been set. - * Absolute path or relative path from project base dir. + * Absolute path or relative path from project base dir. */ public ProjectDefinition addSourceFiles(String... paths) { for (String path : paths) { - appendProperty(SOURCE_FILES_PROPERTY, FilenameUtils.normalize(path)); + appendProperty(SOURCE_FILES_PROPERTY, path); } return this; } @@ -205,7 +204,7 @@ public final class ProjectDefinition implements BatchComponent { */ public ProjectDefinition addTestDirs(String... paths) { for (String path : paths) { - appendProperty(TEST_DIRS_PROPERTY, FilenameUtils.normalize(path)); + appendProperty(TEST_DIRS_PROPERTY, path); } return this; } @@ -224,7 +223,7 @@ public final class ProjectDefinition implements BatchComponent { */ public ProjectDefinition addTestFiles(String... paths) { for (String path : paths) { - appendProperty(TEST_FILES_PROPERTY, FilenameUtils.normalize(path)); + appendProperty(TEST_FILES_PROPERTY, path); } return this; } @@ -256,7 +255,7 @@ public final class ProjectDefinition implements BatchComponent { * @TODO currently Sonar supports only one such directory due to dependency on MavenProject */ public ProjectDefinition addBinaryDir(String path) { - appendProperty(BINARIES_PROPERTY, FilenameUtils.normalize(path)); + appendProperty(BINARIES_PROPERTY, path); return this; } @@ -270,7 +269,7 @@ public final class ProjectDefinition implements BatchComponent { * It can be absolute or relative to project directory. */ public void addLibrary(String path) { - appendProperty(LIBRARIES_PROPERTY, FilenameUtils.normalize(path)); + appendProperty(LIBRARIES_PROPERTY, path); } /** |