Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for TaskA (0.03 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/m5/ToolingApiGradleProjectCrossVersionSpec.groovy

    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'
            taskA.project == project
    
            project.tasks.find { it.name == 'b' && it.path == ':b' }
            project.tasks.find { it.name == 'c' && it.path == ':c' }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r112/TaskDisplayNameCrossVersionSpec.groovy

            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
            taskA.project == project
    
            def taskB = project.tasks.find { it.name == 'b' }
            taskB != null
            taskB.path == ':b'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.5K 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"() {
            file('settings.gradle') << 'rootProject.name="test"'
    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/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheLambdaIntegrationTest.groovy

                        static void foo(TaskA taskA) { }
                        static void foo(TaskB taskB) { }
    
                        @Override
                        public void apply(Project project) {
                            Action<? super TaskA> actionA = LambdaPlugin::foo;
                            Action<? super TaskB> actionB = LambdaPlugin::foo;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  5. 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)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskActionIntegrationTest.groovy

                    outputs.file output
                    outputs.cacheIf { true }
                    doFirst action
                }
            """
    
            when:
            withBuildCache().run "taskA", "taskB"
            then:
            executedAndNotSkipped(":taskA")
            skipped(":taskB")
        }
    
        def "built-in tasks with different actions don't share results"() {
            file("src/main/java/Main.java").text = "public class Main {}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskDependencyInferenceIntegrationTest.groovy

            taskTypeWithOutputFileProperty()
            buildFile << """
                def taskA = tasks.create("a", FileProducer) {
                    output = file("a.txt")
                }
                def taskB = tasks.create("b", FileProducer) {
                    output = file("b.txt")
                }
                tasks.register("c") {
                    dependsOn taskA.output.orElse(taskB.output)
                }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 14:20:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/BuildPhaseOperationEventLegacyCrossVersionTest.groovy

        def setupProject() {
            settingsFile << """
                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)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/controlling_task_execution.adoc

    configuration. For example, if `taskB` uses the output of `taskA` (e.g., a file generated by `taskA`), Gradle will automatically ensure that `taskA` is executed before `taskB` to fulfill this dependency.
    
    Explicit dependencies :: These dependencies are explicitly declared in the build script using the `dependsOn`, `mustRunAfter`, or `shouldRunAfter` methods. For example, if you want to ensure that `taskB` always runs after `taskA`, you can explicitly declare this dependency using `taskB....
    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

        def "task can have outputs and no inputs"() {
            buildFile << """
                class TaskA extends DefaultTask {
                    @OutputFile
                    File outputFile
    
                    @TaskAction void exec() {
                        outputFile.text = "output-file"
                    }
                }
    
                task a(type: TaskA) {
                    outputFile = file("output.txt")
                }
            """
    
    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