From e4ba9869d57dc4dd92648b5c8406d26fcd550d46 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Mon, 15 Jun 2015 14:59:17 +0200 Subject: SONARUNNER-136 and SONARUNNER-137 - Provide a new API to run several analysis with same process and an interactive mode --- sonar-runner-batch-interface/.gitignore | 1 + sonar-runner-batch-interface/pom.xml | 11 ++++++++ .../org/sonar/runner/batch/IsolatedLauncher.java | 29 ++++++++++++++++++++++ .../src/test/java_sample/sonar-project.properties | 5 ++++ .../src/test/java_sample/src/Sample.java | 0 5 files changed, 46 insertions(+) create mode 100644 sonar-runner-batch-interface/.gitignore create mode 100644 sonar-runner-batch-interface/pom.xml create mode 100644 sonar-runner-batch-interface/src/main/java/org/sonar/runner/batch/IsolatedLauncher.java create mode 100644 sonar-runner-batch-interface/src/test/java_sample/sonar-project.properties create mode 100644 sonar-runner-batch-interface/src/test/java_sample/src/Sample.java (limited to 'sonar-runner-batch-interface') diff --git a/sonar-runner-batch-interface/.gitignore b/sonar-runner-batch-interface/.gitignore new file mode 100644 index 0000000..b83d222 --- /dev/null +++ b/sonar-runner-batch-interface/.gitignore @@ -0,0 +1 @@ +/target/ diff --git a/sonar-runner-batch-interface/pom.xml b/sonar-runner-batch-interface/pom.xml new file mode 100644 index 0000000..d70c04a --- /dev/null +++ b/sonar-runner-batch-interface/pom.xml @@ -0,0 +1,11 @@ + + 4.0.0 + + org.codehaus.sonar.runner + sonar-runner + 2.5-SNAPSHOT + + + sonar-runner-batch-interface + SonarQube Runner - Batch API + 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 new file mode 100644 index 0000000..71d97c3 --- /dev/null +++ b/sonar-runner-batch-interface/src/main/java/org/sonar/runner/batch/IsolatedLauncher.java @@ -0,0 +1,29 @@ +/* + * SonarQube Runner - Batch API + * Copyright (C) 2011 SonarSource + * dev@sonar.codehaus.org + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 + */ +package org.sonar.runner.batch; + +import java.util.List; +import java.util.Properties; + +public interface IsolatedLauncher { + void start(Properties properties, List extensions); + void stop(); + void execute(Properties properties); +} diff --git a/sonar-runner-batch-interface/src/test/java_sample/sonar-project.properties b/sonar-runner-batch-interface/src/test/java_sample/sonar-project.properties new file mode 100644 index 0000000..0c35484 --- /dev/null +++ b/sonar-runner-batch-interface/src/test/java_sample/sonar-project.properties @@ -0,0 +1,5 @@ +sonar.projectKey=sample +sonar.projectName=Sample +sonar.projectVersion=1.0-SNAPSHOT +sonar.projectDescription=Sample description +sonar.sources=src diff --git a/sonar-runner-batch-interface/src/test/java_sample/src/Sample.java b/sonar-runner-batch-interface/src/test/java_sample/src/Sample.java new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3