public class Projects
extends java.lang.Object
| Constructor and Description |
|---|
Projects() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
asString(org.gradle.api.Project project,
java.lang.String propertyName)
Looks up a project property and returns the value as a string.
|
static java.lang.Object |
findPropertyOr(org.gradle.api.Project project,
java.lang.String propertyName,
java.lang.Object defaultValue)
Looks up a project property or provides the parameter default if no value found.
|
public static java.lang.Object findPropertyOr(org.gradle.api.Project project,
java.lang.String propertyName,
java.lang.Object defaultValue)
project - The project to look up a property value for.propertyName - The property name to look up.defaultValue - The default value to provide if no value is assigned.public static java.lang.String asString(org.gradle.api.Project project,
java.lang.String propertyName)
project - The project to find the value for.propertyName - The name of the property to look up.groovy.lang.MissingPropertyException - If the project has no value for the property.