Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for copyReport2 (0.14 sec)

  1. platforms/documentation/docs/src/snippets/files/copy/kotlin/build.gradle.kts

    }
    
    val archiveReportsTask by tasks.registering(MyArchiveTask::class) {
        dirToArchive = layout.buildDirectory.dir("toArchive")
    }
    
    // tag::copy-single-file-example-with-task-properties[]
    tasks.register<Copy>("copyReport2") {
        from(myReportTask.flatMap { it.outputFile })
        into(archiveReportsTask.flatMap { it.dirToArchive })
    }
    // end::copy-single-file-example-with-task-properties[]
    
    // tag::copy-multiple-files-example[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/files/copy/groovy/build.gradle

    }
    
    tasks.register('archiveReportsTask') {
        ext.dirToArchive = layout.buildDirectory.dir("toArchive")
        inputs.dir dirToArchive
    }
    
    // tag::copy-single-file-example-with-task-properties[]
    tasks.register('copyReport2', Copy) {
        from myReportTask.outputFile
        into archiveReportsTask.dirToArchive
    }
    // end::copy-single-file-example-with-task-properties[]
    
    // tag::copy-multiple-files-example[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/files/SamplesCopyIntegrationTest.groovy

        def "can copy a single file using task properties for the paths with #dsl dsl"() {
            given:
            def dslDir = sample.dir.file(dsl)
            executer.inDirectory(dslDir)
    
            when:
            succeeds('copyReport2')
    
            then:
            dslDir.file('build/toArchive/my-report.pdf').isFile()
    
            where:
            dsl << ['groovy', 'kotlin']
        }
    
        @UsesSample("files/copy")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 15.7K bytes
    - Viewed (0)
Back to top