public class EmbeddedRunner extends Object
| Modifier and Type | Method and Description |
|---|---|
EmbeddedRunner |
addExtensions(Object... objs)
Add extensions to the batch's object container.
|
EmbeddedRunner |
addGlobalProperties(Properties p)
Declare Sonar properties, for example sonar.projectKey=>foo.
|
String |
app() |
String |
appVersion() |
static EmbeddedRunner |
create(LogOutput logOutput) |
protected void |
doExecute(Properties analysisProperties,
IssueListener issueListener) |
protected void |
doStart(boolean preferCache) |
protected void |
doStop() |
void |
execute()
Deprecated.
|
Properties |
globalProperties() |
String |
globalProperty(String key,
String defaultValue) |
EmbeddedRunner |
mask(String fqcnPrefix) |
void |
runAnalysis(Properties analysisProperties)
Launch an analysis.
|
void |
runAnalysis(Properties analysisProperties,
IssueListener issueListener)
Launch an analysis, providing optionally a issue listener.
|
String |
serverVersion() |
EmbeddedRunner |
setApp(String app,
String version)
User-agent used in the HTTP requests to the SonarQube server
|
EmbeddedRunner |
setGlobalProperty(String key,
String value)
Declare a SonarQube property.
|
void |
start() |
void |
start(boolean preferCache) |
void |
stop()
Stops the batch.
|
void |
syncProject(String projectKey)
Synchronizes the project's data in the local cache with the server, allowing analysis of the project to be done offline.
|
EmbeddedRunner |
unmask(String fqcnPrefix) |
public static EmbeddedRunner create(LogOutput logOutput)
public Properties globalProperties()
public EmbeddedRunner unmask(String fqcnPrefix)
public EmbeddedRunner mask(String fqcnPrefix)
public EmbeddedRunner addGlobalProperties(Properties p)
or #runAnalysis(Properties), depending on the
property and SQ version.#setProperty(String, String)public EmbeddedRunner setGlobalProperty(String key, String value)
or #runAnalysis(Properties), depending on the
property and SQ version.RunnerProperties,
ScanPropertiespublic EmbeddedRunner setApp(String app, String version)
public String app()
public EmbeddedRunner addExtensions(Object... objs)
objs - public String appVersion()
public void runAnalysis(Properties analysisProperties)
start().public void runAnalysis(Properties analysisProperties, @Nullable IssueListener issueListener)
start().
Issue listener is supported starting in SQ 5.2. If a non-null listener is given for older versions, an exception is thrownpublic void syncProject(String projectKey)
start().
Only supported starting in SQ 5.2. For older versions, an exception is thrownpublic void start()
public void start(boolean preferCache)
public void stop()
public String serverVersion()
@Deprecated public final void execute()
protected void doStart(boolean preferCache)
protected void doStop()
protected void doExecute(Properties analysisProperties, @Nullable IssueListener issueListener)
Copyright © 2011-2015 SonarSource. All Rights Reserved.