diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2013-01-15 14:09:02 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2013-01-15 14:09:02 +0100 |
commit | a791d08d1c0934d77be820b0a12660080b38b5f2 (patch) | |
tree | 1b71c0d592e4ecaabbf9bbad9815f6c0a52385de /src/test | |
parent | 89efe41a15713e2368ab3b3fe4dabc9505cf83ee (diff) | |
download | sonar-scanner-cli-a791d08d1c0934d77be820b0a12660080b38b5f2.tar.gz sonar-scanner-cli-a791d08d1c0934d77be820b0a12660080b38b5f2.zip |
SONARPLUGINS-2571 Do not parse configuration files when using --version
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/sonar/runner/MainTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/org/sonar/runner/MainTest.java b/src/test/java/org/sonar/runner/MainTest.java index 4c76883..495f212 100644 --- a/src/test/java/org/sonar/runner/MainTest.java +++ b/src/test/java/org/sonar/runner/MainTest.java @@ -89,10 +89,11 @@ public class MainTest { File runnerHome = new File(getClass().getResource("/org/sonar/runner/MainTest/shouldLoadCompleteConfiguration/runner").toURI()); File projectHome = new File(getClass().getResource("/org/sonar/runner/MainTest/shouldLoadCompleteConfiguration/project").toURI()); Main main = new Main(); - main.loadProperties(new String[] { + Properties args = main.parseArguments(new String[] { "-D", "runner.home=" + runnerHome.getCanonicalPath(), "-D", "project.home=" + projectHome.getCanonicalPath() }); + main.loadProperties(args); assertThat(main.projectProperties.getProperty("project.prop")).isEqualTo("foo"); assertThat(main.projectProperties.getProperty("overridden.prop")).isEqualTo("project scope"); |