Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 57 for MyTask (0.18 sec)

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

                }
    
                task myTask(type: MyTask) {
                    input = mkdir(inputDir)
                    output = file("build/output.txt")
                }
            """
            String myTask = ':myTask'
    
            when:
            file("inputDir1/child") << "inputFile1"
            run myTask, '-PinputDir=inputDir1'
            then:
            executedAndNotSkipped(myTask)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 23 12:52:29 UTC 2022
    - 27.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyIntegrationTest.groovy

            then:
            skipped(":myTask")
            file("build/myTask.txt").text == "value1"
    
            when:
            fails('myTask', "-Pmy=trash")
            then:
            failureDescriptionContains("Type 'MyTask' property 'strings' doesn't have a configured value.")
    
            when:
            fails('myTask')
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/ValidatePluginsPart1IntegrationTest.groovy

                error(missingNormalizationStrategyConfig { type('MyTask').property('fileProp').annotatedWith('InputFile') }, 'validation_problems', 'missing_normalization_annotation'),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/options/TaskOptionIntegrationTest.groovy

                  }
                }
    
                tasks.register("myTask", MyTask.class)
            '''
    
            when:
            succeeds('myTask', '--serial=1234', '--serialNumber=4321')
    
            then:
            result.assertTaskExecuted(':myTask').assertOutputContains('Serial: 4321')
    
            when:
            succeeds('myTask', '--serialNumber=4321', '--serial=1234')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/SmokeContinuousIntegrationTest.groovy

            buildFile << """
                task myTask {
                  def inputFile = file("input/marker")
                  inputs.files inputFile
                  outputs.files "build/marker"
                  doLast {
                    println "exists: " + inputFile.exists()
                  }
                }
            """
    
            when:
            succeeds("myTask")
            then:
            output.contains "exists: false"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 18.5K bytes
    - Viewed (0)
  8. testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/ScriptCachingIntegrationTest.kt

            // given: buildSrc memory hog
            val memoryHogMb = 128
            val myTask = withFile(
                "buildSrc/src/main/groovy/MyTask.groovy",
                """
                import org.gradle.api.*
                import org.gradle.api.tasks.*
    
                class MyTask extends DefaultTask {
                    static final byte[][] MEMORY_HOG = new byte[1024][1024 * $memoryHogMb]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:33:23 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top