@Incubating public class SonarRunner extends DefaultTask
Can be used with or without the "sonar-runner"
plugin.
If used together with the plugin, sonarProperties
will be populated with defaults based on Gradle's object model and user-defined
values configured via SonarRunnerExtension
and SonarRunnerRootExtension
.
If used without the plugin, all properties have to be configured manually.
For more information on how to configure the Sonar Runner, and on which properties are available, see the Sonar Runner documentation.
Task.Namer
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
コンストラクタと説明 |
---|
SonarRunner() |
修飾子とタイプ | メソッドと説明 |
---|---|
protected org.gradle.api.internal.file.FileResolver |
getFileResolver() |
JavaForkOptions |
getForkOptions()
Options for the analysis process.
|
Map<String,Object> |
getSonarProperties()
The String key/value pairs to be passed to the Sonar Runner.
|
void |
run() |
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toString
public void run()
public JavaForkOptions getForkOptions()
SonarRunnerRootExtension.forkOptions
.@Input public Map<String,Object> getSonarProperties()
null
values are not permitted.@Inject protected org.gradle.api.internal.file.FileResolver getFileResolver()