org.sonar.batch.bootstrapper.Batch Maven / Gradle / Ivy
/*
* SonarQube Runner - Batch
* Copyright (C) 2011-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* 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 02110-1301, USA.
*/
package org.sonar.batch.bootstrapper;
import java.util.List;
import java.util.Map;
import org.picocontainer.annotations.Nullable;
/**
* Entry point for sonar-runner 2.1.
*
* @since 2.14
*/
public class Batch {
private Batch(Builder builder) {
}
public LoggingConfiguration getLoggingConfiguration() {
return null;
}
/**
* @deprecated since 4.4
*/
@Deprecated
public synchronized Batch execute() {
return this;
}
/**
* @since 4.4
*/
public synchronized Batch start() {
return start(false);
}
public synchronized Batch start(boolean preferCache) {
return this;
}
/**
* @since 4.4
*/
public Batch executeTask(Map analysisProperties, Object... components) {
return this;
}
/**
* @since 5.2
*/
public Batch executeTask(Map analysisProperties, IssueListener issueListener) {
return this;
}
/**
* @since 5.2
*/
public Batch syncProject(String projectKey) {
return this;
}
/**
* @since 4.4
*/
public synchronized void stop() {
}
public static Builder builder() {
return new Builder();
}
public static final class Builder {
private Builder() {
}
public Builder setEnvironment(EnvironmentInformation env) {
return this;
}
public Builder setComponents(List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy