Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 123 for MyTask (0.1 sec)

  1. 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)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/file/ArchiveOperationsIntegrationTest.groovy

                    }
                }
    
                tasks.register("myTask", MyTask) {
                    inputFile.set(createArchive.flatMap { it.outputFile })
                    outputFile.set(layout.buildDirectory.file("unpacked/file.txt"))
                }
            """
    
            when:
            run "myTask"
    
            then:
            file("build/unpacked/file.txt").isFile()
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 8.1K bytes
    - Viewed (0)
  3. 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)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestInputAnnotationFailuresIntegrationTest.groovy

                    }
                }
    
                tasks.register('myTask', MyTask)
            """
    
            expect:
            fails 'myTask'
            result.assertHasErrorOutput("A problem was found with the configuration of task ':myTask' (type 'MyTask').")
            result.assertHasErrorOutput("- Type 'MyTask' property '$elementName' has @Input annotation used on property of type '$elementType'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  5. testing/soak/src/integTest/groovy/org/gradle/launcher/daemon/ClassLoaderLeakAvoidanceSoakTest.groovy

            buildFile << """
                task myTask(type: MyTask) {
                    conventionMapping.someProperty = {"Foo"}
                }
            """
    
            expect:
            for(int i = 0; i < 35; i++) {
                myTask.text = myTask.text.replace("runAction$i", "runAction${i + 1}")
                executer.withBuildJvmOpts("-Xmx256m", "-XX:+HeapDumpOnOutOfMemoryError")
                assert succeeds("myTask")
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskDefinitionIntegrationTest.groovy

                        p.tasks.register("myTask", MyTask)
                    }
                }
    
                apply plugin: MyPlugin
            """
    
            when:
            fails 'myTask'
    
            then:
            failure.assertHasCause("Could not create task ':myTask'.")
            failure.assertHasCause("Could not create task of type 'MyTask'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 14:43:53 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/properties/bean/DefaultPropertyWalkerTest.groovy

            def task = project.tasks.create("myTask", MyTask)
            task.bean = null
    
            when:
            visitProperties(task)
    
            then:
            _ * visitor.visitNested() >> true
            1 * visitor.visitInputProperty('bean', { it.call() == null }, false)
        }
    
        def "cycle in nested inputs is detected"() {
            def task = project.tasks.create("myTask", TaskWithNestedObject)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:42:35 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/resources/org/gradle/api/resource/TextResourceIntegrationTest/shared/build.gradle

    dependencies {
        sharedConfig generateConfigZip.outputs.files
    }
    
    task stringText(type: MyTask) {
        config = resources.text.fromString("my config")
        output = project.file("output.txt")
    }
    
    task fileText(type: MyTask) {
        config = resources.text.fromFile("config.txt")
        output = project.file("output.txt")
    }
    
    task fileCollectionText(type: MyTask) {
        config = resources.text.fromFile(generateConfigFile.get())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 27 20:48:11 UTC 2019
    - 1.3K bytes
    - Viewed (0)
  9. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/RuntimePluginValidationIntegrationTest.groovy

                error(missingAnnotationConfig { type('MyTask').property('tree.nonAnnotated').missingInputOrOutput() }, 'validation_problems', 'missing_annotation'),
                error(missingAnnotationConfig { type('MyTask').property('tree.left.nonAnnotated').missingInputOrOutput() }, 'validation_problems', 'missing_annotation'),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 14:30:05 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/DevelocityBuildLifecycleServiceIntegrationTest.groovy

                $beforeProject {
                    it.tasks.register("myTask") {
                    }
                }
            """
            createDir 'sub'
    
            and:
            buildFile '''
                subprojects {
                    tasks.named("myTask") {
                        def projectName = project.name
                        doLast {
                            println "${projectName}.MyTask.doLast is running"
                        }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 18:42:29 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top