Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for taskTypeWithInputListProperty (0.59 sec)

  1. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/TasksWithInputsAndOutputs.groovy

                    @TaskAction
                    def go() {
                        outFile.get().asFile.text = (inValue.get() + 10) as String
                    }
                }
            """
        }
    
        def taskTypeWithInputListProperty() {
            buildFile << """
                class InputTask extends DefaultTask {
                    @Input
                    final ListProperty<Integer> inValue = project.objects.listProperty(Integer)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 07 18:43:39 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTaskWiringIntegrationTest.groovy

            "disallow unsafe read" | "it.disallowUnsafeRead()"
        }
    
        def "task input collection property can consume the mapped output of another task"() {
            taskTypeWithInputFileProperty()
            taskTypeWithInputListProperty()
    
            buildFile << """
                task producer(type: InputFileTask) {
                    inFile = file("in.txt")
                    outFile = layout.buildDirectory.file("out.txt")
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskDependencyInferenceIntegrationTest.groovy

            file("out.txt").text == "17"
        }
    
        def "collection input property containing value of mapped task output implies dependency on the task"() {
            taskTypeWithOutputFileProperty()
            taskTypeWithInputListProperty()
            buildFile << """
                def a = tasks.create("a", FileProducer) {
                    output = file("a.txt")
                    content = "12"
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 14:20:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDependencyResolutionIntegrationTest.groovy

            def configurationCache = newConfigurationCacheFixture()
    
            taskTypeWithOutputFileProperty()
            taskTypeWithInputListProperty()
    
            createDirs("a", "b")
            settingsFile << """
                include 'a', 'b'"""
    
            buildFile << """
                subprojects {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 54.1K bytes
    - Viewed (0)
Back to top