Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,220 for doPost (0.27 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/LazyDownloadsIntegrationTest.groovy

            given:
            buildFile << """
                task graph {
                    def root = configurations.compile.incoming.resolutionResult.rootComponent
                    doLast {
                        root.get()
                    }
                }
    """
    
            when:
            module.pom.expectGet()
            module2.pom.expectGet()
    
            then:
            succeeds("graph")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/ConcurrentBuildsCachingIntegrationTest.groovy

    }
    task a {
        def files = configurations.a
        doLast {
            files.files
        }
    }
    task b {
        def files = configurations.b
        doLast {
            files.files
        }
    }
    task block1 {
        doLast {
            ${blockingServer.callFromBuild("block1")}
        }
    }
    block1.mustRunAfter a
    b.mustRunAfter block1
    
    task block2 {
        doLast {
            ${blockingServer.callFromBuild("block2")}
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/execution/TaskNameMatchingIntegrationTest.groovy

        def "logs info message for exact match"() {
            setup:
            buildFile << """
                tasks.register("sanityCheck") {
                    doLast { }
                }
                tasks.register("safetyCheck") {
                    doLast { }
                }
            """
    
            when:
            run("sanityCheck", "--info")
    
            then:
            outputContains("Task name matched 'sanityCheck'")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 14 08:20:12 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/kotlinDsl/containers-scope/kotlin/build.gradle.kts

    }
    
    // tag::scope[]
    tasks {
        test {
            testLogging.showStackTraces = true
        }
        val myCheck by registering {
            doLast { /* assert on something meaningful */ }
        }
        check {
            dependsOn(myCheck)
        }
        register("myHelp") {
            doLast { /* do something helpful */ }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 351 bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformIsolationIntegrationTest.groovy

                file("build/libs1/test-1.3.jar.txt").readLines() == ["1", "2", "3", "4", "5"]
                file("build/libs1/test2-2.3.jar.txt").readLines() == ["1", "2", "3", "4", "5"]
            } else {
                // Counter is isolated at execution time, so transforms will see the increment in each tasks' doLast { }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/authoring-builds/tutorial/partr2_build_lifecycle.adoc

        }
        doLast {
            println("NAMED TASK1 - doLast: This is executed during the execution phase")
        }
    }
    
    tasks.named("task2"){
        println("NAMED TASK2: This is executed during the configuration phase")
        doFirst {
            println("NAMED TASK2 - doFirst: This is executed during the execution phase")
        }
        doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 05:44:04 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/tutorial/stopExecutionException/kotlin/build.gradle.kts

    val compile by tasks.registering {
        doLast {
            println("We are doing the compile.")
        }
    }
    
    compile {
        doFirst {
            // Here you would put arbitrary conditions in real life.
            if (true) {
                throw StopExecutionException()
            }
        }
    }
    tasks.register("myTask") {
        dependsOn(compile)
        doLast {
            println("I am not affected")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 380 bytes
    - Viewed (0)
  8. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildTaskExcludeIntegrationTest.groovy

                include('sub')
            """
            buildFile << """
                def test = tasks.register('test') {
                    doLast {
                         println 'test executed'
                    }
                }
    
                tasks.register('build') {
                    doLast {
                         println 'build executed'
                    }
                    dependsOn test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 04 12:16:04 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/OutgoingVariantsMutationIntegrationTest.groovy

                    }
                }
            }
            task mutateBeforeResolve {
                doLast {
                    def classes = configurations.compile.outgoing.variants['classes']
                    classes.attributes.attribute(format, 'classes2')
                }
            }
            task mutateAfterResolve {
                doLast {
                    configurations.compile.resolve()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 05 20:59:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. platforms/documentation/docs-asciidoctor-extensions-base/src/test/groovy/org/gradle/docs/asciidoctor/SampleIncludeProcessorTest.groovy

            given:
            tmpDir.newFile("src/samples/build.gradle") << """
    task compile {
        doLast {
            println "compiling source"
        }
    }
    task testCompile(dependsOn: compile) {
        doLast {
            println "compiling test source"
        }
    }
    task test(dependsOn: [compile, testCompile]) {
        doLast {
            println "running unit tests"
        }
    }
    task build(dependsOn: [test])
    """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 7.3K bytes
    - Viewed (0)
Back to top