Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 123 for MyTask (0.14 sec)

  1. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinDslAssignmentIntegrationTest.kt

                    fileOutput = objects.fileProperty() as Provider<RegularFile>
                    fileOutput = file("build/myTask/hello.txt")
                    fileOutput = provider { file("build/myTask/hello.txt") }
                }
                """.trimIndent()
            )
    
            // When, Then
            build("myTask")
        }
    
        private
        fun withBuildScriptWithAssignment(): File {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProviderIntegrationTest.groovy

                def t1 = tasks.register('myTask1', MyTask) {
                    text.set('Black')
                }
                def t2 = tasks.register('myTask2', MyTask) {
                    text.set('Lives')
                }
    
                def t3 = tasks.register('myTask3', MyTask) {
                    text.set('Matter')
                }
    
                tasks.register('combined', MyTask) {
                    text.set(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 15:32:52 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  3. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/ValidatePluginsPart2IntegrationTest.groovy

                warning(unsupportedValueTypeConfig { type('MyTask').property('direct').propertyType('URL') }, "validation_problems", "unsupported_value_type"),
                warning(unsupportedValueTypeConfig { type('MyTask').property('listPropertyInput').propertyType('ListProperty<URL>') }, "validation_problems", "unsupported_value_type"),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/integTest/groovy/org/gradle/internal/exceptions/DefaultMultiCauseExceptionIntegrationTest.groovy

                ${defineTestException()}
    
                tasks.register('myTask') {
                    doLast {
                        throw new TestResolutionProviderException('resolution1')
                    }
                }
            """
    
            when:
            fails 'myTask'
    
            then:
            failure.assertHasDescription("Execution failed for task ':myTask'.")
                .assertHasResolution('resolution1')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/FileCollectionConventionMappingIntegrationTest.groovy

                }
                tasks.register("mytask", MyTask) {
                    conventionMapping.map("foo") { bar }
                    bar.setFrom("file1", "file2")
                }
            """
    
            expect:
            succeeds 'mytask'
        }
    
        def "convention mapping works with FileCollection in a ConventionTask"() {
            buildFile << """
                abstract class MyTask extends org.gradle.api.internal.ConventionTask {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 20:10:55 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeferredTaskFailureIntegrationTest.groovy

            buildFile << script
    
            when:
            fails 'myTask'
    
            then:
            failure.assertHasCause("Could not create task ':myTask'.")
    
            where:
            position | script
            1        | "tasks.register('myTask', CustomTask, null, 1)"
            2        | "tasks.register('myTask', CustomTask, 'abc', null)"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeferredTaskCreationIntegrationTest.groovy

            """
            buildFile << """
                class MyTask extends DefaultTask {
                    @TaskAction
                    void doIt() {
                        for (Project subproject : project.rootProject.getAllprojects()) {
                            for (MyTask myTask : subproject.tasks.withType(MyTask)) {
                                println "Looking at " + myTask.path
                            }
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jul 13 09:05:07 UTC 2021
    - 9.8K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/UntrackedTaskIntegrationTest.groovy

                }
                tasks.register("myTask", MyTask) {
                    inputFile = file("input.txt")
                    outputFile = project.layout.buildDirectory.file("output.txt")
                }
            """)
            file("input.txt").text = "input"
    
            when:
            run("myTask", "--info")
            then:
            executedAndNotSkipped(":myTask")
            outputContains("Task ':myTask' is not up-to-date because:")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 23 08:05:53 UTC 2023
    - 16.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProviderConventionMappingIntegrationTest.groovy

                        assert foo.get() == "foobar"
                    }
                }
                tasks.register("mytask", MyTask) {
                    conventionMapping.map("foo", { providerFactory.provider { "foobar" } })
                    other.convention("other")
                }
            """
    
            expect:
            runAndFail 'mytask'
            expectDocumentedFailure()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 12:27:37 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskPropertiesIntegrationTest.groovy

            given:
            buildFile << """
                abstract class MyTask extends DefaultTask {
                    @Internal
                    abstract Property<Integer> getCount()
    
                    @TaskAction
                    void go() {
                        println("count = \${count.get()}")
                    }
                }
    
                tasks.create("thing", MyTask) {
                    println("property = \$count")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top