Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 94 for withArgument (0.17 sec)

  1. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyIntegrationTest.groovy

    }
    
    """
    
            when:
            executer.withArgument("-Dprop=123")
            run("thing")
    
            then:
            executedAndNotSkipped(":thing")
    
            when:
            executer.withArgument("-Dprop=123")
            run("thing")
    
            then:
            skipped(":thing")
    
            when:
            executer.withArgument("-Dprop=abc")
            run("thing")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/JavaCrossCompilationIntegrationTest.groovy

                }
            """
    
            file("src/main/java/Thing.java") << """
                /** Some thing. */
                public class Thing { }
            """
            executer.withArgument("-Porg.gradle.java.installations.paths=" + jvm.javaHome.absolutePath)
        }
    
        def "can compile source and run JUnit tests using target Java version"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 05:59:30 UTC 2024
    - 6.5K 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. 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/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/SingleUseDaemonIntegrationTest.groovy

    @Requires(IntegTestPreconditions.NotDaemonExecutor)
    class SingleUseDaemonIntegrationTest extends AbstractIntegrationSpec implements DaemonJvmPropertiesFixture, JavaToolchainFixture {
    
        def setup() {
            executer.withArgument("--no-daemon")
            executer.requireIsolatedDaemons()
        }
    
        def "forks build when JVM args are requested"() {
            requireJvmArg('-Xmx64m')
    
            file('build.gradle') << "println 'hello world'"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 13:41:21 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/JavaCompileDaemonCancellationIntegrationTest.groovy

            and:
            pidFile().exists()
            def pid2 = pidFile().text.strip() as long
            pid2 == pid1
        }
    
        private void startBuild(String task) {
            executer
                .withArgument('--debug')
                .withWorkerDaemonsExpirationDisabled()
                .withTasks(task)
    
            client = new DaemonClientFixture(executer.start())
        }
    
        private void cancelBuild() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:57:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. 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)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/GradleBuildTaskIntegrationTest.groovy

                barrier.expectConcurrent("child-build-finished", "1-finished", "2-finished")
            }
    
            when:
            runs.times {
                executer.withArgument("--parallel")
                run 'otherBuild'
            }
    
            then:
            noExceptionThrown()
    
            and:
            def runNestedBuildOps = buildOperations.all(RunNestedBuildBuildOperationType)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceIntegrationTest.groovy

                        username = "correct-username"
                        password = "correct-password"
                    }
                }
            """
    
            when:
            executer.withArgument("--info")
            withBuildCache().run "assemble"
            then:
            outputDoesNotContain("correct-username")
            outputDoesNotContain("correct-password")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 23:08:20 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishHttpIntegTest.groovy

            given:
            buildFile << publicationBuildWithoutCredentials(version, group, mavenRemoteRepo.uri)
    
            if (!extraChecksums) {
                executer.withArgument("-Dorg.gradle.internal.publish.checksums.insecure=true")
                module.withoutExtraChecksums()
            }
            expectModulePublish(module, extraChecksums)
    
            when:
            succeeds 'publish'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top