Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for IsFile (0.13 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformBuildOperationIntegrationTest.groovy

                    @InputArtifact
                    abstract Provider<FileSystemLocation> getInputArtifact()
    
                    void transform(TransformOutputs outputs) {
                        def input = inputArtifact.get().asFile
                        println "processing [\${input.name}]"
                        assert input.file
                        for (def i : 1..parameters.multiplier.get()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 16:27:38 UTC 2024
    - 67.8K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_8.adoc

    val output: Provider<RegularFile> = layout.buildDirectory.file("myOutput.txt")
    
    // If you really need the java.io.File for a non lazy API
    output.get().asFile
    
    // Or a path for a lazy String based API
    output.map { it.asFile.path }
    ----
    ======
    [.multi-language-sample]
    ======
    .build.gradle
    [source,groovy]
    ----
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 17:01:07 UTC 2024
    - 90.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

            def f1 = elements.get()
    
            then:
            f1*.asFile == [file1, file2]
    
            and:
            1 * callable.call() >> ["src1", "src2"]
            _ * fileResolver.resolve("src1") >> file1
            _ * fileResolver.resolve("src2") >> file2
            0 * _
    
            when:
            def f2 = elements.get()
    
            then:
            f2*.asFile == [file2]
    
            and:
            1 * callable.call() >> ["2"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_7.adoc

    The former, now `@Deprecated` usage:
    
    ```groovy
    tasks.named('test') {
        reports.junitXml.setDestination(layout.buildDirectory.file('reports/my-report-old').get().asFile) // DEPRECATED
    }
    
    ```
    
    can be replaced with:
    
    ```groovy
    tasks.named('test') {
        reports.junitXml.outputLocation = layout.buildDirectory.dir('reports/my-report')
    }
    ```
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 87.7K bytes
    - Viewed (0)
Back to top