Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,019 for taskY (0.05 sec)

  1. 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)
  2. subprojects/core-api/src/main/java/org/gradle/api/Task.java

     * next task by throwing a {@link org.gradle.api.tasks.StopExecutionException}. Using these exceptions allows you to
     * have precondition actions which skip execution of the task, or part of the task, if not true.</p>
     *
     * <a id="dependencies"></a><h3>Task Dependencies and Task Ordering</h3>
     *
     * <p>A task may have dependencies on other tasks or might be scheduled to always run after another task.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 17:25:12 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  3. 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)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeferredTaskConfigurationIntegrationTest.groovy

                }
                tasks.named("task1").configure {
                    println "Configure again ${path}"
                }
                tasks.register("task2", SomeOtherTask) {
                    println "Configure ${path}"
                }
                tasks.register("task3")
                tasks.configureEach {
                    println "Received ${path}"
                }
                tasks.create("other") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/execution/plan/DefaultExecutionPlanTest.groovy

            given:
            Task a = task("a")
            Task b = task("b")
            Task c = task("c")
            Task d = task("d", dependsOn: [b, a, c])
    
            when:
            addToGraphAndPopulate([d])
    
            then:
            executes(a, b, c, d)
        }
    
        def "schedules a single batch of tasks in name order"() {
            given:
            Task a = task("a")
            Task b = task("b")
            Task c = task("c")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  6. 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)
  7. platforms/documentation/docs/src/docs/userguide/authoring-builds/tutorial/partr2_build_lifecycle.adoc

    tasks.register("task1"){
        println("REGISTER TASK1: This is executed during the configuration phase")
    }
    
    tasks.register("task2"){
        println("REGISTER TASK2: This is executed during the configuration phase")
    }
    
    tasks.named("task1"){
        println("NAMED TASK1: This is executed during the configuration phase")
        doFirst {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 05:44:04 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/options/MultipleTaskOptionsIntegrationTest.groovy

        def "can configure tasks from command line in multiple projects"() {
            given:
            createDirs("project2")
            settingsFile << "include 'project2'"
            buildFile << """
                allprojects {
                    task someTask(type: SomeTask)
                }
                task task1 //extra stress
                task task2
    
                ${taskWithMultipleOptions()}
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/DefaultTaskContainerTest.groovy

            taskFactory.create(_ as TaskIdentity) >> task
    
            when:
            Task added = container.create([name: 'task', description: "some task"])
    
            then:
            added == task
            1 * task.setDescription("some task")
        }
    
        void 'can create task with group'() {
            def task = task("task")
            taskFactory.create(_ as TaskIdentity) >> task
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 14:36:44 UTC 2024
    - 44.9K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/img/writing-tasks-7.png

    writing-tasks-7.png...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 00:13:54 UTC 2024
    - 69.5K bytes
    - Viewed (0)
Back to top