Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 89 for withArgument (0.18 sec)

  1. platforms/software/version-control/src/integTest/groovy/org/gradle/vcs/internal/OfflineSourceDependencyIntegrationTest.groovy

            repo.expectCloneSomething()
            succeeds('resolve')
    
            when:
            executer.withArgument('--offline')
            succeeds('resolve')
    
            then:
            noExceptionThrown()
        }
    
        def "fails when previous checkout is not available"() {
            when:
            executer.withArgument('--offline')
            fails('resolve')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. testing/integ-test/src/integTest/groovy/org/gradle/integtests/MultiProjectDependencyIntegrationTest.groovy

    allprojects {
        apply plugin: 'java-library'
    
        task copyLibs(type: Copy) {
            from configurations.runtimeClasspath
            into 'deps'
        }
    
        compileJava.dependsOn copyLibs
    }
    """
            executer.withArgument('--info')
        }
    
        def "project dependency c->[a,b]"() {
            projectDependency from: 'c', to: ['a', 'b']
            when:
            run ':c:build'
    
            then:
            jarsBuilt 'a', 'b', 'c'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheRemoteBuildScriptIntegrationTest.groovy

                print 'update remote script'
            """
    
            and:
            executer.withArgument("--offline")
            configurationCacheRun 'ok'
    
            then:
            configurationCache.assertStateStored()
    
            and:
            outputDoesNotContain 'update remote script'
    
            when:
            executer.withArgument("--offline")
            configurationCacheRun 'ok'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/wrapper-main/src/crossVersionTest/groovy/org/gradle/integtests/wrapper/WrapperOldJavaCrossVersionIntegrationTest.groovy

            when:
            GradleExecuter executor = prepareWrapperExecuter(previous, current).withJavaHome(jdk.javaHome)
    
            then:
            def result = executor.usingExecutable('gradlew').withArgument('help').runWithFailure()
            result.hasErrorOutput("Gradle ${GradleVersion.current().version} requires Java 1.8 or later to run. You are currently using Java ${jdk.javaVersion}.")
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/executer/AbstractGradleExecuterTest.groovy

            when:
            executer.withArgument("--foreground")
            def allArgs = executer.getAllArgs()
    
            then:
            !allArgs.contains("--daemon")
            !allArgs.contains("--no-daemon")
        }
    
        def "when argument is added explicitly, no --daemon argument is added and requireDaemon gets overridden"() {
            when:
            executer.withArgument(argument)
            executer.requireDaemon()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/keystore/TestKeyStore.groovy

                args.each {
                    executer.withArgument(it)
                }
            } else {
                executer.withBuildJvmOpts(args)
            }
        }
    
        void configureServerAndClientCerts(GradleExecuter executer) {
            def args = getServerAndClientCertArgs()
            if (GradleContextualExecuter.embedded) {
                args.each {
                    executer.withArgument(it)
                }
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonIntegrationSpec.groovy

        def setup() {
            executer.requireDaemon()
            executer.requireIsolatedDaemons()
        }
    
        void stopDaemonsNow() {
            result = executer.withArguments("--stop", "--info").run()
        }
    
        void buildSucceeds() {
            result = executer.withArguments("--info").run()
        }
    
        DaemonsFixture getDaemons() {
            new DaemonLogsAnalyzer(executer.daemonBaseDir)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. testing/soak/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainDownloadComplexProjectSoakTest.groovy

            setupSubproject("subproject2", "Bar", otherJdkMetadata)
    
            when:
            result = executer
                    .withTasks("compileJava")
                    .withArgument("--info")
                    .run()
    
    
            then:
            result.plainTextOutput.matches("(?s).*Compiling with toolchain.*${DefaultJdkCacheDirectory.getInstallFolderName(jdkMetadata)}.*")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 16:09:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/configurationcache/isolated/IsolatedProjectsExecuterFixture.groovy

    @SelfType(AbstractIntegrationSpec)
    trait IsolatedProjectsExecuterFixture {
    
        private static final String ENABLE_CLI = "-D${PROPERTY_NAME}=true"
    
        void withIsolatedProjects() {
            executer.withArgument(ENABLE_CLI)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryNamedTypeIntegrationTest.groovy

            run("a")
    
            then:
            result.assertTaskSkipped(":a")
    
            when:
            executer.withArgument("-Dname=b")
            run("a")
    
            then:
            result.assertTaskNotSkipped(":a")
            file("out.txt").text == "b"
    
            when:
            executer.withArgument("-Dname=b")
            run("a")
    
            then:
            result.assertTaskSkipped(":a")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 05:39:53 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top