existing

fun <T : Any, C : ERROR CLASS: Symbol not found for NamedDomainObjectCollection<T>> C.existing(action: T.() -> Unit): ExistingDomainObjectDelegateProviderWithAction<out C, T>(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 { ... } }

Parameters

action

the configuration action

Type Parameters

T

the domain object type

C

the concrete container type


fun <T : Any, C : ERROR CLASS: Symbol not found for NamedDomainObjectCollection<T>, U : T> C.existing(type: KClass<U>): ExistingDomainObjectDelegateProviderWithType<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

type

the domain object type

Type Parameters

T

the domain object type

C

the concrete container type


fun <T : Any, C : ERROR CLASS: Symbol not found for 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

type

the domain object type

action

the configuration action

Type Parameters

T

the domain object type

C

the concrete container type


val <T : Any, C : ERROR CLASS: Symbol not found for NamedDomainObjectCollection<T>> C.existing: ExistingDomainObjectDelegateProvider<out C>(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 }

Type Parameters

T

the domain object type

C

the concrete container type