Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for MyTask (0.09 sec)

  1. platforms/documentation/docs/src/snippets/configurationCache/testKit/kotlin/src/main/kotlin/org/example/MyTask.kt

    package org.example
    
    import org.gradle.api.DefaultTask
    import org.gradle.api.tasks.TaskAction
    
    abstract class MyTask : DefaultTask() {
    
        @TaskAction
        fun action() = Unit
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 178 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/configurationCache/testKit/groovy/src/main/groovy/org/example/MyTask.groovy

    package org.example
    
    import org.gradle.api.DefaultTask
    import org.gradle.api.tasks.TaskAction
    
    abstract class MyTask extends DefaultTask {
    
        @TaskAction
        void action() {}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 179 bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeferredTaskOverwritingIntegrationTest.groovy

            result.output.count("Lazy 2 :myTask") == 1
            result.output.count("Configure :myTask") == 1
        }
    
        def "cannot overwrite a lazy task creation with a eager task creation with a different type"() {
            buildFile << '''
                class MyTask extends DefaultTask {}
                def myTask = tasks.register("myTask", SomeTask) {
                    assert false, "This task is overwritten before been realized"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jul 13 09:05:07 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/LambdaInputsIntegrationTest.groovy

            when:
            run 'myTask'
            then:
            skipped(':myTask')
    
            when:
            run 'myTask', '-Pchanged', '--info'
            then:
            executedAndNotSkipped(':myTask')
            file('build/tmp/myTask/output.txt').text == "changed"
            outputContains("Implementation of input property 'consumer' has changed for task ':myTask'")
        }
    
        @Issue("https://github.com/gradle/gradle/issues/5510")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 09:08:49 UTC 2023
    - 18.5K bytes
    - Viewed (0)
  5. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/SymlinkFileSystemWatchingIntegrationTest.groovy

            when:
            withWatchFs().run "myTask"
            then:
            skipped(":myTask")
    
            when:
            inputFile.text = "changed"
            waitForChangesToBePickedUp()
            withWatchFs().run "myTask"
            then:
            executedAndNotSkipped ":myTask"
        }
    
        def "file system watching works when the project dir is symlinked"() {
            def actualProjectDir = file("parent/projectDir")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/cli/TaskOptionsSpec.groovy

                tasks.register('mytask', MyTask.class)
            """
    
            then:
            succeeds "--profile", "--", "mytask", "--profile", "myvalue"
            output.contains "profile=myvalue"
            output.contains "See the profiling report at"
        }
    
        def "passes task options associated with a task originating from buildSrc"() {
            when:
            file('buildSrc/src/main/java/MyTask.java') << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  7. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/TaskUpToDateIntegrationTest.groovy

                    }
                }
    
                task myTask(type: MyTask) {
                    input = providers.gradleProperty('inputDir').map { file(it) }.get()
                    output = project.file("build/output.txt")
                }
    
                myTask.input.mkdirs()
            """
            String myTask = ':myTask'
    
            when:
            run myTask, '-PinputDir=inputDir1'
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskServiceInjectionIntegrationTest.groovy

                        println(executor != null ? "got it" : "NOT IT")
                    }
                }
    
                task myTask(type: CustomTask)
            """
    
            when:
            fails 'myTask'
    
            then:
            failure.assertHasCause("Could not create task ':myTask'.")
            failure.assertHasCause("Could not create task of type 'CustomTask'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 7.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/DelegatedExtraPropertiesIntegrationTest.kt

            withBuildScript(
                """
                val myTask = task("myTask") {}
                val foo: Int by myTask.extra
                foo.toString()
                """
            )
    
            assertThat(
                buildAndFail("myTask").error,
                containsString("Cannot get non-null extra property 'foo' as it does not exist")
            )
        }
    
        @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/NestedInputKotlinImplementationTrackingIntegrationTest.groovy

            withBuildCache().run 'myTask'
    
            then:
            executedAndNotSkipped(':myTask')
            project1.file('build/tmp/myTask/output.txt').text == "hello"
    
            when:
            executer.inDirectory(project2)
            withBuildCache().run 'myTask'
    
            then:
            skipped(':myTask')
            project2.file('build/tmp/myTask/output.txt').text == "hello"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 06:52:58 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top