- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ExistingDomainObjectDelegateProvider (0.31 sec)
-
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/NamedDomainObjectCollectionExtensions.kt
* * @param T the domain object type * @param C the concrete container type */ inline val <T : Any, C : NamedDomainObjectCollection<T>> C.existing: ExistingDomainObjectDelegateProvider<out C> get() = ExistingDomainObjectDelegateProvider.of(this) /** * Idiomatic way of referring to the provider of a well-known element of a collection via a delegate property. * * `tasks { val jar by existing { ... } }`
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 15.3K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/TaskContainerExtensionsTest.kt
verify(taskProvider, times(1)).configure(any()) verifyNoMoreInteractions() } } // Hypothetical task accessor private val ExistingDomainObjectDelegateProvider<out TaskContainer>.clean: TaskProvider<Delete> get() = delegateProvider.named<Delete>("clean") } internal fun <T : Task> mockTaskProviderFor(task: T): TaskProvider<T> = mock {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 7.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/TaskContainerExtensions.kt
): TaskContainer = apply { configuration(TaskContainerScope.of(this)) } /** * Provides a [TaskProvider] delegate for the task named after the property. */ operator fun ExistingDomainObjectDelegateProvider<out TaskContainer>.provideDelegate( receiver: Any?, property: KProperty<*> ) = ExistingDomainObjectDelegate.of( delegateProvider.named(property.name) ) /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 19 22:09:44 UTC 2024 - 9.3K bytes - Viewed (0)