Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for getSingleFileProvider (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/util/ConfigurationExtensions.kt

    import java.io.File
    
    fun Configuration.getSingleFileProvider(): Provider<File> {
        val name = this.name
        return incoming.files.elements.map {
            require(it.size <= 1) {
                "Expected at most one file in configuration '$name' but found: $it"
            }
            it.firstOrNull()?.asFile
        }
    }
    
    fun NamedDomainObjectProvider<Configuration>.getSingleFileProvider(): Provider<File> {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Aug 18 18:02:41 GMT 2025
    - 1.2K bytes
    - Click Count (0)
Back to Top