Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.24 KB

File metadata and controls

22 lines (15 loc) · 1.24 KB

subkt / myaa.subkt.tasks / org.gradle.api.Task / getListAs

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>)

Parameters

propertyName - The property to find.