Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for MyTask (0.1 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  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. 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)
  8. 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)
  9. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/AbstractPluginValidationIntegrationSpec.groovy

                error(missingAnnotationConfig { type('MyTask').property('badTime').missingInputOrOutput() }, 'validation_problems', 'missing_annotation'),
                error(missingAnnotationConfig { type('MyTask').property('oldThing').missingInputOrOutput() }, 'validation_problems', 'missing_annotation'),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 40.7K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/NestedInputIntegrationTest.groovy

            """
    
            def myTask = ':myTask'
            when:
            run myTask, '-Pinput=original'
            then:
            executedAndNotSkipped myTask
    
            when:
            run myTask, '-Pinput=original'
            then:
            skipped myTask
    
            when:
            run myTask, '-Pinput=changed', '--info'
            then:
            executedAndNotSkipped myTask
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top