diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-06-15 14:59:17 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-06-18 17:26:05 +0200 |
commit | e4ba9869d57dc4dd92648b5c8406d26fcd550d46 (patch) | |
tree | 489e0e87f6b7df0a95095de50d0264ff355fa568 /sonar-runner-batch-interface | |
parent | 5b6747b46db7fef9238e3bbaf66d2822e03d0a6e (diff) | |
download | sonar-scanner-cli-e4ba9869d57dc4dd92648b5c8406d26fcd550d46.tar.gz sonar-scanner-cli-e4ba9869d57dc4dd92648b5c8406d26fcd550d46.zip |
SONARUNNER-136 and SONARUNNER-137 - Provide a new API to run several analysis with same process and an interactive mode
Diffstat (limited to 'sonar-runner-batch-interface')
5 files changed, 46 insertions, 0 deletions
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 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.codehaus.sonar.runner</groupId> + <artifactId>sonar-runner</artifactId> + <version>2.5-SNAPSHOT</version> + </parent> + + <artifactId>sonar-runner-batch-interface</artifactId> + <name>SonarQube Runner - Batch API</name> +</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 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<Object> 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 --- /dev/null +++ b/sonar-runner-batch-interface/src/test/java_sample/src/Sample.java |