diff options
author | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2012-09-12 12:47:07 +0200 |
---|---|---|
committer | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2012-09-12 12:47:07 +0200 |
commit | 3edbcc9f18fb9dc9df1b3b9356eac2bdb7d309b8 (patch) | |
tree | 64577c7a619065a24a15757af1e929fbf36a0c33 /src | |
parent | e7e6e5a30984f3c5b154da7885647a1d0d7229fb (diff) | |
download | sonar-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.java | 4 | ||||
-rw-r--r-- | src/test/java/org/sonar/runner/internal/batch/SonarProjectBuilderTest.java | 2 |
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"); |