Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 402 for withArgument (0.25 sec)

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

            failure.assertHasCause("broken")
    
            and:
            outputContains("Transforming b.jar")
    
            when:
            executer.withArgument("-Plenient=true")
            succeeds("resolve")
    
            then:
            outputContains("files: [b.jar]")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 07 18:43:42 UTC 2023
    - 100.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiModelQueryIntegrationTest.groovy

            """
    
            when:
            executer.withArguments(ENABLE_CLI)
            fetchModel(SomeToolingModel, "help")
    
            then:
            notExecuted("help")
            fixture.assertStateStored {
                projectsConfigured(":buildSrc", ":")
                modelsCreated(":")
            }
    
            when:
            executer.withArguments(ENABLE_CLI)
            fetchModel(SomeToolingModel, ":dummyTask")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r10rc1/PassingCommandLineArgumentsCrossVersionSpec.groovy

            logger.debug("debugging stuff")
            logger.info("infoing stuff")
    """
    
            when:
            String debug = withBuild { it.withArguments('-d') }.standardOutput
    
            and:
            String info = withBuild { it.withArguments('-i') }.standardOutput
    
            then:
            debug.count("debugging stuff") == 1
            debug.count("infoing stuff") == 1
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/tool-chains/groovy/build.gradle

        }
    }
    // end::toolChains[]
    
    
    // tag::withArguments[]
    model {
        toolChains {
            visualCpp(VisualCpp) {
                eachPlatform {
                    cppCompiler.withArguments { args ->
                        args << "-DFRENCH"
                    }
                }
            }
            clang(Clang) {
                eachPlatform {
                    cCompiler.withArguments { args ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingModelsWithDependencyResolutionIntegrationTest.groovy

            file("c/build.gradle") << """
                plugins.apply(my.MyPlugin)
            """
            file("d/build.gradle") << """
                plugins.apply(my.MyPlugin)
            """
    
            when:
            executer.withArguments(ENABLE_CLI)
            def model = runBuildAction(new FetchCustomModelForEachProject())
    
            then:
            model.size() == 4
            model[0].message == "project :a classpath = 2"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiBuildActionIntegrationTest.groovy

    
            when:
            executer.withArguments(ENABLE_CLI)
            def model3 = runBuildAction(new FetchCustomModelForEachProject())
    
            then:
            fixture.assertStateLoaded()
    
            and:
            model3.size() == 1
            model3[0].message == "It works from project :"
    
    
            when:
            executer.withArguments(ENABLE_CLI)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiCompositeBuildsIntegrationTest.groovy

            buildFile << """
                plugins.apply(my.MyPlugin)
            """
            file("a/build.gradle") << """
                plugins.apply(my.MyPlugin)
            """
    
            when:
            executer.withArguments(ENABLE_CLI)
            def model = runBuildAction(new FetchCustomModelForEachProjectInTree())
    
            then:
            model.size() == 2
            model[0].message == "It works from project :"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/crossVersionTest/groovy/org/gradle/integtests/resolve/artifactreuse/CacheReuseCrossVersionIntegrationTest.groovy

    }
    """
            and:
            def userHome = file('user-home')
    
            when:
            projectB.allowAll()
    
            and:
            version previous withGradleUserHomeDir userHome withTasks 'retrieve' withArguments '-i' run()
    
            then:
            file('libs').assertHasDescendants('projectB-1.0.jar')
            def snapshot = file('libs/projectB-1.0.jar').snapshot()
    
            when:
            server.resetExpectations()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  9. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskExecutionIntegrationTest.groovy

                executer.withTasks("d").withArguments("-x", ":sub:c").run().assertTasksExecuted(":a", ":b", ":c", ":d", ":sub:d")
                executer.withTasks("d").withArguments("-x", "d").run().assertTasksExecuted()
                // Project defaults
                executer.withArguments("-x", "b").run().assertTasksExecuted(":a", ":c", ":d", ":sub:c", ":sub:d")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonFeedbackIntegrationSpec.groovy

            println 'finished the nap...'
        }
    }
    """
    
            when:
            def sleeper = executer.withArguments('-i').withTasks('sleep').start()
    
            then:
            poll(60) {
                assert readLog(executer.daemonBaseDir).contains("taking a nap...")
            }
    
            when:
            executer.withArguments("--stop").run()
    
            then:
            sleeper.waitForFailure()
    
            poll(5, 1) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 8.3K bytes
    - Viewed (0)
Back to top