diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-09-09 16:50:36 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-09-09 16:50:36 +0200 |
commit | b1a26dced4593825b27a2a57672a11eca5530aa9 (patch) | |
tree | 48dc18391f4f4167639d3cc40f31f010c05fb261 /sonar-runner-cli/src/main/java/org/sonar | |
parent | e7d218f5d4bae169f3a66d31170a670254efbf10 (diff) | |
download | sonar-scanner-cli-b1a26dced4593825b27a2a57672a11eca5530aa9.tar.gz sonar-scanner-cli-b1a26dced4593825b27a2a57672a11eca5530aa9.zip |
Fix display help and remove work dir log
Diffstat (limited to 'sonar-runner-cli/src/main/java/org/sonar')
-rw-r--r-- | sonar-runner-cli/src/main/java/org/sonar/runner/cli/Cli.java | 12 | ||||
-rw-r--r-- | sonar-runner-cli/src/main/java/org/sonar/runner/cli/Main.java | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sonar-runner-cli/src/main/java/org/sonar/runner/cli/Cli.java b/sonar-runner-cli/src/main/java/org/sonar/runner/cli/Cli.java index 8a34607..d0a350e 100644 --- a/sonar-runner-cli/src/main/java/org/sonar/runner/cli/Cli.java +++ b/sonar-runner-cli/src/main/java/org/sonar/runner/cli/Cli.java @@ -28,12 +28,12 @@ class Cli { private boolean displayVersionOnly = false; private boolean displayStackTrace = false; private boolean interactive = false; - private Properties props = new Properties(); - private final Exit exit; - private Logs logger; + private final Properties props = new Properties(); + private final Shutdown shutdown; + private final Logs logger; - public Cli(Exit exit, Logs logger) { - this.exit = exit; + public Cli(Shutdown shutdown, Logs logger) { + this.shutdown = shutdown; this.logger = logger; } @@ -147,6 +147,6 @@ class Cli { logger.info(" -v,--version Display version information"); logger.info(" -X,--debug Produce execution debug output"); logger.info(" -i,--interactive Run interactively"); - exit.exit(Exit.SUCCESS); + shutdown.exit(Exit.SUCCESS); } } diff --git a/sonar-runner-cli/src/main/java/org/sonar/runner/cli/Main.java b/sonar-runner-cli/src/main/java/org/sonar/runner/cli/Main.java index 0229cc9..71488b3 100644 --- a/sonar-runner-cli/src/main/java/org/sonar/runner/cli/Main.java +++ b/sonar-runner-cli/src/main/java/org/sonar/runner/cli/Main.java @@ -60,7 +60,7 @@ public class Main { Exit exit = new Exit(); Shutdown shutdown = new Shutdown(exit); Logs logs = new Logs(); - Cli cli = new Cli(exit, logs).parse(args); + Cli cli = new Cli(shutdown, logs).parse(args); cli.verify(); Main main = new Main(shutdown, cli, new Conf(cli, logs), new RunnerFactory(logs), logs); main.execute(); |