existing

Idiomatic way of referring to the provider of a well-known element of a collection via a delegate property.

tasks { val jar by existing { ... } }

Parameters

T

the domain object type

C

the concrete container type

action

the configuration action


Idiomatic way of referring to the provider of a well-known element of a collection via a delegate property.

tasks { val jar by existing(Jar::class) }

Parameters

T

the domain object type

C

the concrete container type

type

the domain object type


fun <T : Any, C : NamedDomainObjectCollection<T>, U : T> C.existing(    type: KClass<U>,     action: U.() -> Unit): ExistingDomainObjectDelegateProviderWithTypeAndAction<out C, U>(source)

Idiomatic way of referring to the provider of a well-known element of a collection via a delegate property.

tasks { val jar by existing(Jar::class) { ... } }

Parameters

T

the domain object type

C

the concrete container type

type

the domain object type

action

the configuration action


Idiomatic way of referring to the provider of a well-known element of a collection via a delegate property.

tasks { val jar by existing }

Parameters

T

the domain object type

C

the concrete container type