subkt / myaa.subkt.tasks / org.gradle.api.Task / getListAs
inline fun <reified T>
Task
.getListAs(propertyName:
String
):
Provider
<
List
<
T
>!>!
(source)
Searches for the given property in the Subs object's SubProperties instance, evaluates its value using evaluate, and casts the list elements to the given type using String.asType.
This function is run in a task context, using the entry and release values for this task.
// from task mux.03
// property file: TV.03.values={1..5}
getListAs<Int>("values")
// Output: [1, 2, 3, 4, 5] (type: List<Int>)
propertyName
- The property to find.