Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,722 for taskA (1.59 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/BuildPhaseOperationEventCrossVersionTest.groovy

            file("a/build.gradle") << """
                tasks.register("taskA")
                tasks.register("taskB") {
                    dependsOn 'taskA'
                }
                tasks.register("taskC") {
                    dependsOn 'taskB'
                }
                tasks.register("taskD")
            """
            file("b/build.gradle") << """
                tasks.register("taskA")
            """
            file("c/build.gradle") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 10:41:50 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/m5/ToolingApiGradleProjectCrossVersionSpec.groovy

        def "provides tasks of a project"() {
            file('build.gradle') << '''
    task a {
       description = 'this is task a'
    }
    task b
    task c
    '''
    
            when:
            GradleProject project = withConnection { it.getModel(GradleProject.class) }
    
            then:
            GradleTask taskA = project.tasks.find { it.name == 'a' }
            taskA.path == ':a'
            taskA.description == 'this is task a'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/m5/ToolingApiBuildExecutionCrossVersionSpec.groovy

            then:
            project.tasks*.name.toSet() == (["a", "b", "c"] + rootProjectImplicitTasksForGradleProjectModel).toSet()
            def taskA = project.tasks.find { it.name == 'a' }
            taskA != null
            taskA.path == ':a'
            taskA.description == 'this is task a'
            taskA.project == project
        }
    
        def "can execute a build for a project"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r112/TaskDisplayNameCrossVersionSpec.groovy

            file('build.gradle') << '''
    task a
    task b { description = 'this is task b' }
    '''
    
            when:
            GradleProject project = withConnection { connection -> connection.getModel(GradleProject.class) }
    
            then:
            def taskA = project.tasks.find { it.name == 'a' }
            taskA != null
            taskA.path == ':a'
            taskA.displayName == /task ':a'/
            taskA.description == null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskDependencyInferenceIntegrationTest.groovy

            buildFile << """
                def taskA = tasks.create("a", FileProducer) {
                    // no output value
                }
                def taskB = tasks.create("b", FileProducer) {
                    // no output value
                }
                tasks.register("c") {
                    dependsOn taskA.output.orElse(taskB.output)
                }
            """
    
            when:
            run("c")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 14:20:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheLambdaIntegrationTest.groovy

                            project.getTasks().register("b", TaskB.class, task -> task.doLast(b -> actionB.execute((TaskB) b)));
                        }
                    }
                """
            }
            buildFile << """
                apply plugin: my.LambdaPlugin
            """
    
            when:
            configurationCacheRun("a", "b")
            configurationCacheRun("a", "b")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/BuildPhaseOperationEventLegacyCrossVersionTest.groovy

                rootProject.name = 'root'
                include 'a'
            """
            file("a/build.gradle") << """
                task taskA {}
                task taskB {
                    dependsOn 'taskA'
                }
                task taskC {
                    dependsOn 'taskB'
                }
            """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskActionIntegrationTest.groovy

                }
    
                task taskB {
                    def output = file("build/task-b/output.txt")
                    inputs.file input
                    outputs.file output
                    outputs.cacheIf { true }
                    doFirst action
                }
            """
    
            when:
            withBuildCache().run "taskA", "taskB"
            then:
            executedAndNotSkipped(":taskA")
            skipped(":taskB")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/controlling_task_execution.adoc

    So if you only run `taskY` with `mustRunAfter`, you won't cause `taskX` to run.
    This is expressed as `taskY.mustRunAfter(taskX)`.
    
    ====
    include::sample[dir="snippets/tasks/mustRunAfter/kotlin",files="build.gradle.kts[]"]
    include::sample[dir="snippets/tasks/mustRunAfter/groovy",files="build.gradle[]"]
    
    ----
    $ gradle -q taskY taskX
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Mar 23 22:37:03 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildIntegrationTest.groovy

                            println "Task '\$name' file '\${file.name}' with '\${file.text}'"
                        }
                    }
                }
    
                task a(type: TaskA) {
                    outputFile = file("output.txt")
                }
    
                task b(type: TaskB) {
                    inputFiles = tasks.a.outputs.files
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 36.3K bytes
    - Viewed (0)
Back to top