aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>2012-09-12 12:47:07 +0200
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>2012-09-12 12:47:07 +0200
commit3edbcc9f18fb9dc9df1b3b9356eac2bdb7d309b8 (patch)
tree64577c7a619065a24a15757af1e929fbf36a0c33 /src
parente7e6e5a30984f3c5b154da7885647a1d0d7229fb (diff)
downloadsonar-scanner-cli-3edbcc9f18fb9dc9df1b3b9356eac2bdb7d309b8.tar.gz
sonar-scanner-cli-3edbcc9f18fb9dc9df1b3b9356eac2bdb7d309b8.zip
SONARPLUGINS-2202 Improve log message
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/sonar/runner/internal/batch/SonarProjectBuilder.java4
-rw-r--r--src/test/java/org/sonar/runner/internal/batch/SonarProjectBuilderTest.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/sonar/runner/internal/batch/SonarProjectBuilder.java b/src/main/java/org/sonar/runner/internal/batch/SonarProjectBuilder.java
index 6af0ed5..936815a 100644
--- a/src/main/java/org/sonar/runner/internal/batch/SonarProjectBuilder.java
+++ b/src/main/java/org/sonar/runner/internal/batch/SonarProjectBuilder.java
@@ -395,8 +395,8 @@ public final class SonarProjectBuilder {
for (String path : sourceDirs) {
File sourceFolder = getFileFromPath(path, baseDir);
if (!sourceFolder.isDirectory()) {
- throw new RunnerException("The source folder '" + path + "' does not exist for '" + projectKey +
- "' project/module (base directory = " + baseDir.getAbsolutePath() + ")");
+ throw new RunnerException("The folder '" + path + "' does not exist for '" + projectKey +
+ "' project (base directory = " + baseDir.getAbsolutePath() + ")");
}
}
diff --git a/src/test/java/org/sonar/runner/internal/batch/SonarProjectBuilderTest.java b/src/test/java/org/sonar/runner/internal/batch/SonarProjectBuilderTest.java
index d4b4cb5..aa8209f 100644
--- a/src/test/java/org/sonar/runner/internal/batch/SonarProjectBuilderTest.java
+++ b/src/test/java/org/sonar/runner/internal/batch/SonarProjectBuilderTest.java
@@ -69,7 +69,7 @@ public class SonarProjectBuilderTest {
@Test
public void shouldFailIfUnexistingSourceDirectory() throws IOException {
thrown.expect(RunnerException.class);
- thrown.expectMessage("The source folder 'unexisting-source-dir' does not exist for 'com.foo.project' project/module (base directory = "
+ thrown.expectMessage("The folder 'unexisting-source-dir' does not exist for 'com.foo.project' project (base directory = "
+ TestUtils.getResource(this.getClass(), "simple-project-with-unexisting-source-dir") + ")");
loadProjectDefinition("simple-project-with-unexisting-source-dir");