Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for copyTask (0.16 sec)

  1. platforms/software/platform-base/src/test/groovy/org/gradle/platform/base/internal/DefaultBinaryTasksCollectionTest.groovy

        def "returns single task with type"() {
            def copyTask = Mock(Copy)
            when:
            tasks.add(copyTask)
    
            then:
            tasks.findSingleTaskWithType(Copy) == copyTask
        }
    
        def "fails finding single task with type where multiple exist"() {
            def copyTask1 = Mock(Copy)
            def copyTask2 = Mock(Copy)
            when:
            tasks.add(copyTask1)
            tasks.add(copyTask2)
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/integTest/groovy/org/gradle/internal/vfs/DefaultExcludesIntegrationTest.groovy

            when:
            run "copyTask"
            then:
            executedAndNotSkipped(":copyTask")
            !copyOfExcludedFile.exists()
    
            when:
            excludedFile.text = "changed"
            run "copyTask"
            then:
            skipped(":copyTask")
    
            when:
            settingsFile.text = ""
            excludedFile.text = "changedAgain"
            run "copyTask"
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 15 12:37:12 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFileSystemDefaultExcludesTest.groovy

            configurationCacheRun spec.copyTask
    
            then:
            configurationCache.assertStateStored()
            !spec.excludedFilesCopies.any { it.exists() }
            spec.includedFilesCopies.every { it.exists() }
    
            when:
            configurationCacheRun spec.copyTask
    
            then:
            configurationCache.assertStateLoaded()
            result.assertTaskSkipped(":$spec.copyTask")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/files/copy/groovy/build.gradle

        // up-to-date check for inputs, plus add copyTask as dependency
        inputs.files(copyTask)
            .withPropertyName("inputs")
            .withPathSensitivity(PathSensitivity.RELATIVE)
        outputs.dir('some-dir') // up-to-date check for outputs
            .withPropertyName("outputDir")
        doLast {
            copy {
                // Copy the output of copyTask
                from copyTask
                into 'some-dir'
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/files/copy/kotlin/build.gradle.kts

        // up-to-date check for inputs, plus add copyTask as dependency
        inputs.files(copyTask)
            .withPropertyName("inputs")
            .withPathSensitivity(PathSensitivity.RELATIVE)
        outputs.dir("some-dir") // up-to-date check for outputs
            .withPropertyName("outputDir")
        doLast {
            copy {
                // Copy the output of copyTask
                from(copyTask)
                into("some-dir")
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/DefaultExcludesFixture.groovy

                ]
            ].combinations().collect { language, locations ->
                new Spec(locations, language)
            }
        }
    
        static class Spec {
    
            final String copyTask = "copyTask"
    
            private final List<DefaultExcludesLocation> locations
    
            private final ScriptLanguage scriptLanguage
    
            private final List<TestFile> excludedFiles = new ArrayList<>()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/running-builds/tutorial/part2_gradle_tasks.adoc

    [.multi-language-sample]
    =====
    [source, kotlin]
    ----
    tasks.register<Copy>("copyTask") {
        from("source")
        into("target")
        include("*.war")
    }
    ----
    =====
    [.multi-language-sample]
    =====
    [source, groovy]
    ----
    tasks.register(Copy, "copyTask") {
        from("source")
        into("target")
        include("*.war")
    }
    
    ----
    =====
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 02 14:26:07 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy

            buildScript """
                task copyTask(type: Copy) {
                    into "out"
                    from "b", {
                        includeEmptyDirs = false
                    }
                    from "a"
                    from "c", {}
                }
            """
    
            when:
            succeeds "copyTask"
    
            then:
            executedAndNotSkipped(":copyTask")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/basics/tutorial_using_tasks.adoc

    This example task copies `*.war` files from the `source` directory to the `target` directory using the `Copy` built-in task:
    
    [source]
    ----
    tasks.register("copyTask",Copy) {
        from("source")
        into("target")
        include("*.war")
    }
    ----
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 00:09:06 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/files/SamplesCopyIntegrationTest.groovy

        @UsesSample("files/copy")
        def "can use copy task with #dsl dsl"() {
            given:
            def dslDir = sample.dir.file(dsl)
            executer.inDirectory(dslDir)
    
            when:
            succeeds('copyTask')
    
            then:
            def outputDir = dslDir.file("build/explodedWar")
            outputDir.file('web.xml').isFile()
            outputDir.file('index-staging.html').isFile()
    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