An proxy to provide system properties, project properties and environmental variables as providers.
Type Params | Return Type | Name and description |
---|---|---|
|
Provider<String> |
environmentVariable(Object name, boolean configTime) |
|
Provider<String> |
gradleProperty(Object name, boolean configTime) |
|
Provider<String> |
resolve(Object name, Object defaultValue, boolean configTime) Resolves a property in order of Gradle, system, environment variable. |
|
Provider<String> |
systemProperty(Object name, boolean configTime) |
Resolves a property in order of Gradle, system, environment variable. Optionally return a default value if not property was found.
name
- Name of property to resolve. Anything resolvable to a string.defaultValue
- Value to return if property cannot be resolved. Anything resolvable to a string.
Can be null
.configTime
- Whether to make the provider safe for usage at configuration time.