@Incubating public class SonarProperties extends Object
The properties
map is already populated with the defaults provided by Gradle, and can be further manipulated as necessary.
Before passing them on to the Sonar Runner, property values are converted to Strings as follows:
Iterable
s are recursively converted and joined into a comma-separated String.toString()
method.コンストラクタと説明 |
---|
SonarProperties(Map<String,Object> properties) |
修飾子とタイプ | メソッドと説明 |
---|---|
Map<String,Object> |
getProperties()
The Sonar properties for the current Gradle project that are to be passed to the Sonar runner.
|
void |
properties(Map<String,?> properties)
Convenience method for setting multiple properties.
|
void |
property(String key,
Object value)
Convenience method for setting a single property.
|
public void property(String key, Object value)
key
- the key of the property to be addedvalue
- the value of the property to be addedpublic void properties(Map<String,?> properties)
properties
- the properties to be added