diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-06-16 17:38:52 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-06-19 17:08:54 +0200 |
commit | f2e74b6d6935082e4d75a5ddfaf66e8ba1079f1f (patch) | |
tree | ddecebafb089a6a2518aa96a3fcbd03b852ec13c /sonar-runner-batch-interface | |
parent | e4ba9869d57dc4dd92648b5c8406d26fcd550d46 (diff) | |
download | sonar-scanner-cli-f2e74b6d6935082e4d75a5ddfaf66e8ba1079f1f.tar.gz sonar-scanner-cli-f2e74b6d6935082e4d75a5ddfaf66e8ba1079f1f.zip |
SONARUNNER-138 Allow to redirect logs to a custom stream
Diffstat (limited to 'sonar-runner-batch-interface')
-rw-r--r-- | sonar-runner-batch-interface/pom.xml | 10 | ||||
-rw-r--r-- | sonar-runner-batch-interface/src/main/java/org/sonar/runner/batch/IsolatedLauncher.java | 12 |
2 files changed, 20 insertions, 2 deletions
diff --git a/sonar-runner-batch-interface/pom.xml b/sonar-runner-batch-interface/pom.xml index d70c04a..9ccb3b9 100644 --- a/sonar-runner-batch-interface/pom.xml +++ b/sonar-runner-batch-interface/pom.xml @@ -7,5 +7,13 @@ </parent> <artifactId>sonar-runner-batch-interface</artifactId> - <name>SonarQube Runner - Batch API</name> + <name>SonarQube Runner - Batch Interface</name> + + <dependencies> + <dependency> + <groupId>org.codehaus.sonar</groupId> + <artifactId>sonar-home</artifactId> + <scope>provided</scope> + </dependency> + </dependencies> </project> diff --git a/sonar-runner-batch-interface/src/main/java/org/sonar/runner/batch/IsolatedLauncher.java b/sonar-runner-batch-interface/src/main/java/org/sonar/runner/batch/IsolatedLauncher.java index 71d97c3..22fa54d 100644 --- a/sonar-runner-batch-interface/src/main/java/org/sonar/runner/batch/IsolatedLauncher.java +++ b/sonar-runner-batch-interface/src/main/java/org/sonar/runner/batch/IsolatedLauncher.java @@ -1,5 +1,5 @@ /* - * SonarQube Runner - Batch API + * SonarQube Runner - Batch Interface * Copyright (C) 2011 SonarSource * dev@sonar.codehaus.org * @@ -19,11 +19,21 @@ */ package org.sonar.runner.batch; +import org.sonar.home.log.LogListener; + import java.util.List; import java.util.Properties; public interface IsolatedLauncher { void start(Properties properties, List<Object> extensions); + + void start(Properties properties, List<Object> extensions, LogListener logListener); + void stop(); + void execute(Properties properties); + + void executeOldVersion(Properties properties, List<Object> extensions); + + String getVersion(); } |