Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 402 for withArgument (0.29 sec)

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

                    }
                }
            """
    
            and:
            buildFile << junitBasedBuildScript()
            buildFile << addOpens()
    
            expect:
            executer.withArgument("--info")
            succeeds("test")
        }
    
        def "generated Gradle API JAR in custom Gradle user home is reused across multiple invocations"() {
            requireOwnGradleUserHomeDir()
    
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  2. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/AbstractCompositeBuildIntegrationTest.groovy

            List<File> includedBuilds = Lists.newArrayList(includedBuilds)
            includedBuilds.each {
                includeBuild(it)
            }
            for (String arg : arguments) {
                executer.withArgument(arg)
            }
        }
    
        protected void executed(String... tasks) {
            for (String task : tasks) {
                result.assertTaskExecuted(task)
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Aug 19 21:32:57 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/IvyDescriptorResolveIntegrationTest.groovy

                }
            }
            assert configurations.compile.collect { it.name } == ['test-1.45.jar', 'module_111-v_111.jar']
        }
    }
    """
            resolve.prepare()
    
            when:
            executer.withArgument("-Dsys_prop=111")
            run "checkDeps"
    
            then:
            resolve.expectGraph {
                root(":", ":test:") {
                    module("org.gradle:test:1.45") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/IvyModuleArtifactResolutionIntegrationTest.groovy

            and:
            server.resetExpectations()
            module.ivy.expectHead()
            module.ivy.sha1.expectGet()
            module.ivy.expectGet()
    
            then:
            executer.withArgument(execArg)
            succeeds("verify")
    
            where:
            condition                     | execArg
            "with --refresh-dependencies" | "--refresh-dependencies"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  9. 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)
  10. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/BuildEnvironmentIntegrationTest.groovy

            given:
            def nonDefaultEncoding = ["UTF-8", "US-ASCII"].collect { Charset.forName(it) }.find { it != Charset.defaultCharset() }
    
            executer.withArgument("-Dfile.encoding=${nonDefaultEncoding.name()}")
    
            and:
            buildFile.setText("""
    task check {
        doLast {
            assert ${Charset.class.name}.defaultCharset().name() == "${nonDefaultEncoding}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top