Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 741 for buildFile (0.14 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskDependencyInferenceIntegrationTest.groovy

            buildFile << """
                tasks.register("b") {
                    dependsOn files(file('123'))
                }
            """
    
            when:
            run("b")
    
            then:
            result.assertTasksExecuted(":b")
        }
    
        def "produces reasonable error message when task dependency closure throws exception"() {
            buildFile << """
        task a
        a.dependsOn {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 14:20:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/BuildScriptErrorIntegrationTest.groovy

            failure.assertHasDescription("Could not compile build file '${buildFile}'.")
                    .assertThatCause(containsString("build file '$buildFile': 3: unable to resolve class org.gradle.unknown.Unknown"))
                    .assertHasFileName("Build file '$buildFile'")
                    .assertHasLineNumber(3)
        }
    
        def "produces reasonable error message when buildFile evaluation fails with exception"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 17:01:37 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/api/plugins/ApplicationPluginIntegrationTest.groovy

            file("run.sh") << '''#!/bin/sh
    # convert paths into absolute Unix-like paths
    BUILD_FILE=$(cygpath --absolute --unix build.gradle)
    SRC_DIR=$(cygpath --absolute --unix src)
    # pass them to the generated start script
    build/install/sample/bin/sample "$BUILD_FILE" "$SRC_DIR"
    '''
            buildFile << """
    task execStartScript(type: Exec) {
        commandLine 'cmd.exe', '/d', '/c', 'sh', 'run.sh'
    }
    """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/NestedConfigureDslIntegrationTest.groovy

            buildFile << """
    tasks.help { t ->
        assert t instanceof $Help.name
        assert delegate instanceof $Help.name
        description = "this is task \$name"
    }
    assert tasks.help.description == "this is task help"
    """
    
            expect:
            succeeds()
        }
    
        def "reports read unknown property from configure closure"() {
            buildFile << """
    tasks.help {
        println unknown
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/NestedInputIntegrationTest.groovy

            buildFile << taskWithNestedInput()
            buildFile << namedBeanClass()
            buildFile << """
                myTask.nested = [new NamedBean('name', 'value1'), new NamedBean('name', 'value2')]
            """
    
            expect:
            succeeds "myTask"
        }
    
        def "nested Provider is unpacked"() {
            buildFile << taskWithNestedInput()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  6. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildPluginDevelopmentIntegrationTest.groovy

                    }
                """ + build.buildFile.text
            } else if (pluginsBlock) {
                build.buildFile.text = """
                    plugins {
                        id 'org.test.plugin.pluginBuild'
                    }
                """ + build.buildFile.text
            } else if (withVersion) {
                build.buildFile << """
                    buildscript {
                        dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 13:37:31 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskDefinitionIntegrationTest.groovy

            given:
            buildFile << CUSTOM_TASK_WITH_CONSTRUCTOR_ARGS
            buildFile << "tasks.create('myTask', CustomTask, 'hello', 42)"
    
            when:
            run 'myTask'
    
            then:
            outputContains("hello 42")
        }
    
        def "can construct a custom task with constructor arguments as #description via Map"() {
            given:
            buildFile << CUSTOM_TASK_WITH_CONSTRUCTOR_ARGS
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 14:43:53 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  8. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskExecutionIntegrationTest.groovy

    class TaskExecutionIntegrationTest extends AbstractIntegrationSpec implements TasksWithInputsAndOutputs {
    
        @UnsupportedWithConfigurationCache
        def taskCanAccessTaskGraph() {
            buildFile << """
                boolean notified = false
                task a(dependsOn: 'b') {
                    doLast { task ->
                        assert notified
                        assert gradle.taskGraph.hasTask(task)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  9. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildDependencyGraphIntegrationTest.groovy

            given:
            buildA.buildFile << """
                dependencies {
                    implementation "org.test:buildB:1.0"
                }
            """
            buildB.buildFile << """
                dependencies {
                    implementation "org.test:buildC:1.0"
                }
            """
            def buildC = singleProjectBuild("buildC") {
                buildFile << """
                    apply plugin: 'java'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 19:37:49 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  10. platforms/software/version-control/src/integTest/groovy/org/gradle/vcs/internal/AbstractSourceDependencyMultiprojectIntegrationTest.groovy

                rootProject.name = 'B'
                include 'foo', 'bar'
            """
            buildB.buildFile << """
                allprojects {
                    apply plugin: 'java'
                    group = 'org.test'
                    version = '1.0'
                }
            """
            repo.commit('initial')
            buildFile << """
                apply plugin: 'base'
    
                repositories { maven { url "${mavenRepo.uri}" } }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top