Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 116 for MyTask (0.1 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildIntegrationTest.groovy

                }
    
                abstract class MyTask extends MyBaseTask {
                }
    
                task myTask(type: MyTask)
            '''
    
            when:
            run 'myTask', '-Pprivate=first'
    
            then:
            def outputFile = file('build/output.txt')
            outputFile.text == 'first'
    
            when:
            run 'myTask', '-Pprivate=second'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyAssignmentIntegrationTest.groovy

            "Enum = String"                                 | "Property<MyEnum>"   | '"YES"'                                  | unsupportedWithCause("Cannot set the value of task ':myTask' property 'input'")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 28 14:39:49 UTC 2023
    - 36.6K bytes
    - Viewed (0)
  3. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/RuntimePluginValidationTrait.groovy

                case 1:
                    failure.assertHasDescription("A problem was found with the configuration of task ':run' (type 'MyTask').")
                    break
                default:
                    failure.assertHasDescription("Some problems were found with the configuration of task ':run' (type 'MyTask').")
                    break
            }
            expectedFailures.forEach { error ->
                failureDescriptionContains(error.message)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 14:30:05 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheInputListenerLifecycleIntegrationTest.groovy

                }
    
                tasks.register("myTask", MyTask.class) {
                    myProperty = touchFsInEvaluation
                    outputFile = project.layout.buildDirectory.file("out.txt")
                }
            """)
            if (isOptOut) {
                file("gradle.properties") << "$IGNORE_INPUTS_PROPERTY=true"
            }
    
            when:
            configurationCacheRun "myTask"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/properties/annotations/AbstractTypeMetadataWalkerTest.groovy

            def myTask = new MyTask()
            def nestedType = new NestedType()
            def namedType = new NamedType()
            nestedType.inputProperty = secondProperty
            namedType.inputProperty = thirdProperty
            myTask.inputProperty = firstProperty
            myTask.nested = nestedType
            myTask.nestedList = [nestedType, nestedType]
            myTask.nestedMap = ["key1": nestedType, "key2": nestedType]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 24.4K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r72/JavaVersionCrossVersionTest.groovy

    @Issue('https://github.com/gradle/gradle/issues/9339')
    @TargetGradleVersion(">=7.2")
    class JavaVersionCrossVersionTest extends ToolingApiSpecification {
    
        def setup() {
            buildFile << """
                task myTask {
                    doLast {
                        throw new RuntimeException("Boom")
                    }
                }
            """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/CollectionPropertyIntegrationTest.groovy

            given:
            buildFile << """
    task wrongValueTypeDsl(type: MyTask) {
        doLast {
            prop = 123
        }
    }
    
    task wrongRuntimeElementType(type: MyTask) {
        doLast {
            prop = [123]
            prop.get()
        }
    }
    
    task wrongPropertyTypeDsl(type: MyTask) {
        def objects = objects
        doLast {
            prop = objects.property(Integer)
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:57:00 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r89/ProblemProgressEventCrossVersionTest.groovy

                }
            '''
            buildFile << '''
                tasks.register('myTask', MyTask)
            '''
    
            when:
            def listener = new ProblemProgressListener()
            withConnection { connection ->
                connection.newBuild()
                    .forTasks("myTask")
                    .addProgressListener(listener)
                    .setStandardError(System.err)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/plugins/LifecycleBasePluginIntegrationTest.groovy

        }
    
        def "can attach custom task as dependency to lifecycle task - #taskName"() {
            when:
            buildFile << """
                task myTask {}
                ${taskName}.dependsOn myTask
            """
    
            then:
            succeeds(taskName)
            executed(":myTask")
    
            where:
            taskName << ["check", "build"]
        }
    
        def "clean task honors changes to build dir location"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/configurationCache/testKit/groovy/src/main/groovy/org/example/MyPlugin.groovy

    package org.example
    
    import org.gradle.api.Plugin
    import org.gradle.api.Project
    
    class MyPlugin implements Plugin<Project> {
    
        @Override
        void apply(Project project) {
            project.tasks.register("myTask", MyTask)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 231 bytes
    - Viewed (0)
Back to top