From 1d4a8d4d14df3d498bb0ea68feee8ec6a2370856 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Thu, 7 Apr 2016 19:04:38 +0200 Subject: SQSCANNER-15 Update Scanner API to 2.6 --- src/main/java/org/sonarsource/scanner/cli/Main.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/org/sonarsource/scanner/cli/Main.java') diff --git a/src/main/java/org/sonarsource/scanner/cli/Main.java b/src/main/java/org/sonarsource/scanner/cli/Main.java index 7ea4f30..0f6c1eb 100644 --- a/src/main/java/org/sonarsource/scanner/cli/Main.java +++ b/src/main/java/org/sonarsource/scanner/cli/Main.java @@ -24,7 +24,7 @@ import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; import java.util.Properties; -import org.sonar.runner.api.EmbeddedRunner; +import org.sonarsource.scanner.api.EmbeddedScanner; /** * Arguments : @@ -43,12 +43,12 @@ public class Main { private final Shutdown shutdown; private final Cli cli; private final Conf conf; - private EmbeddedRunner runner; + private EmbeddedScanner runner; private BufferedReader inputReader; - private RunnerFactory runnerFactory; + private ScannerFactory runnerFactory; private Logs logger; - Main(Shutdown shutdown, Cli cli, Conf conf, RunnerFactory runnerFactory, Logs logger) { + Main(Shutdown shutdown, Cli cli, Conf conf, ScannerFactory runnerFactory, Logs logger) { this.shutdown = shutdown; this.cli = cli; this.conf = conf; @@ -62,7 +62,7 @@ public class Main { Cli cli = new Cli(exit, logs).parse(args); cli.verify(); Shutdown shutdown = new Shutdown(exit, cli.isInteractive()); - Main main = new Main(shutdown, cli, new Conf(cli, logs), new RunnerFactory(logs), logs); + Main main = new Main(shutdown, cli, new Conf(cli, logs), new ScannerFactory(logs), logs); main.execute(); } -- cgit v1.2.3