Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 128 for withArgument (0.59 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/CrossBuildScriptCachingIntegrationSpec.groovy

                    'init.gradle'("""
                        // init script
                        ${this.instrument('"init"')}
                    """)
                }
            }
    
            when:
            executer.withArgument('-Igradle/init.gradle')
            run 'help'
    
            then:
            def scripts = scriptDetails()
            scripts.size() == 2
            hasScript('init', scripts)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/java/SamplesJavaTestingIntegrationTest.groovy

            executer.inDirectory(dslDir).withArgument("-PmySkipTests")
            def result = succeeds("build")
    
            then:
            result.assertTaskSkipped(":test")
    
            when: "run second time to restore from configuration cache if it is enabled"
            executer.inDirectory(dslDir).withArgument("-PmySkipTests")
            def secondResult = succeeds("build")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  3. subprojects/build-events/src/integTest/groovy/org/gradle/build/event/BuildEventsIntegrationTest.groovy

                listener.configTime("data")
    
                task thing {
                    doLast { }
                }
            """
            executer.beforeExecute {
                withArgument("--configuration-cache")
                withArgument("-Dorg.gradle.configuration-cache.internal.load-after-store=true")
            }
    
            when:
            run("thing")
    
            then:
            output.count("service:") == 2
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

            then:
            skipped(":someTask")
    
            // add property
            when:
            buildFile << """
    someTask.inputs.property("b", 12)
    """
            and:
            executer.withArgument("-i")
            run "someTask"
    
            then:
            executedAndNotSkipped(":someTask")
            outputContains("Input property 'b' has been added for task ':someTask'")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppIncrementalBuildIntegrationTest.groovy

                IGNORE ME
            """
    
            file("app/src/main/headers/hello.h") << """
                #define GREETING "hello"
            """
    
            then:
            executer.withArgument("-i")
            succeeds installApp
            output.contains("Cannot locate header file for '#include $include' in source file 'main.cpp'. Assuming changed.")
            install.exec().out == "hello"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 40.4K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java-base/src/testFixtures/groovy/org/gradle/java/compile/AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy

                        return null;
                    }
                }
            """
    
            when:
            executer.withArgument('-Porder=0')
            succeeds ":${language.compileTaskName}"
    
            then:
            noExceptionThrown()
    
            when: "Order is changed"
            executer.withArgument('-Porder=1')
            fails ":${language.compileTaskName}"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 30K bytes
    - Viewed (0)
  7. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/plugins/PrecompiledGroovyPluginsIntegrationTest.groovy

            when:
            result = executer.inDirectory(firstDir).withTasks('help').withArgument("--build-cache").run()
    
            then:
            outputContains('my-plugin applied')
            cachedTasks.forEach {
                result.assertTaskExecuted(it)
            }
    
            when:
            result = executer.inDirectory(secondDir).withTasks('help').withArgument("--build-cache").run()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 28.7K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/AbstractSourceIncrementalCompilationIntegrationTest.groovy

            source("class B {}")
            source("class C {}")
    
            outputs.snapshot { run language.compileTaskName }
    
            when:
            source("class B { String change; }")
            executer.withArgument "--info"
            run language.compileTaskName
    
            then:
            outputs.recompiledClasses("A", "B")
        }
    
        def "can remove source root"() {
            def toBeRemoved = file("to-be-removed")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  9. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginToolchainsIntegrationTest.groovy

    @TargetCoverage({ CheckstyleCoverage.getSupportedVersionsByJdk() })
    class CheckstylePluginToolchainsIntegrationTest extends MultiVersionIntegrationSpec implements JavaToolchainFixture {
    
        def setup() {
            executer.withArgument("--info")
        }
    
        def "uses jdk from toolchains set through java plugin"() {
            given:
            goodCode()
            writeDummyConfig()
            def jdk = setupExecutorForToolchains()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 16 22:34:07 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

            m2.assertNoLeftoverState()
    
            m2.isolateMavenLocalRepo(executer)
            executer.beforeExecute {
                withArgument("-Dorg.gradle.internal.repository.max.tentatives=$maxHttpRetries")
                if (maxUploadAttempts != null) {
                    withArgument("-Dorg.gradle.internal.network.retry.max.attempts=$maxUploadAttempts")
                }
            }
        }
    
        def cleanup() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 32.9K bytes
    - Viewed (0)
Back to top