Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for withEnvironmentVars (0.29 sec)

  1. platforms/software/signing/src/integTest/groovy/org/gradle/plugins/signing/InMemoryPgpSignatoryProviderIntegrationSpec.groovy

                signing {
                    useInMemoryPgpKeys(project.property('secretKey'), project.property('password'))
                    sign(jar)
                }
            """
    
            when:
            executer.withEnvironmentVars([
                ORG_GRADLE_PROJECT_secretKey: secretKeyWithPassword,
                ORG_GRADLE_PROJECT_password: password
            ])
            succeeds("signJar")
    
            then:
            executed(":signJar")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 12K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonSystemPropertiesIntegrationTest.groovy

            when:
            executer.withEnvironmentVars(GRADLE_OPTS: "\"-Djava.io.tmpdir=${tempFolder('folder1')}\"")
            run "verify"
    
            then:
            String gradleVersion = (output =~ /GRADLE_VERSION: (.*)/)[0][1]
            daemons(gradleVersion).daemons.size() == 1
    
            when:
            def tmpPath2 = tempFolder('tmpPath2')
            executer.withEnvironmentVars(GRADLE_OPTS: "\"-Djava.io.tmpdir=${tmpPath2}\"")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/initialization/PropertiesLoaderIntegrationTest.groovy

                    }
                }
            """
    
            when:
            executer.withEnvironmentVars(ORG_GRADLE_PROJECT_myProp: 'fromEnv')
    
            then:
            succeeds 'printProperty'
    
            and:
            outputContains("myProp=fromEnv")
    
            when:
            executer.withEnvironmentVars(ORG_GRADLE_PROJECT_myProp: 'fromEnv2')
    
            then:
            succeeds 'printProperty'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/execution/commandline/CommandLineIntegrationTest.groovy

            String path = String.format('%s%s%s', Jvm.current().javaExecutable.parentFile, File.pathSeparator, System.getenv('PATH'))
    
            then:
            executer.withEnvironmentVars('PATH': path).withJavaHome('').withArguments(expectedJavaHome).withTasks('checkJavaHome').run()
        }
    
        @Requires(IntegTestPreconditions.NotEmbeddedExecutor)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:22 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonLifecycleEncodingSpec.groovy

                    }
                }
            """
    
            when:
            executer.withEnvironmentVars(GRADLE_OPTS: "-Dfile.encoding=UTF-8");
            run "verify"
    
            then:
            String gradleVersion = (output =~ /GRADLE_VERSION: (.*)/)[0][1]
            daemons(gradleVersion).daemons.size() == 1
    
            when:
            executer.withEnvironmentVars(GRADLE_OPTS: "-Dfile.encoding=ISO-8859-1");
            executer.withArgument("-i")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheGradlePropertiesIntegrationTest.groovy

            """
    
            when:
            executer.withEnvironmentVars([
                (ENV_PROJECT_PROPERTIES_PREFIX + 'gradleProp'): 1
            ])
            configurationCacheRun "help"
    
            then:
            outputContains '1!'
            configurationCache.assertStateStored()
    
            when:
            executer.withEnvironmentVars([
                (ENV_PROJECT_PROPERTIES_PREFIX + 'gradleProp'): 1
            ])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. platforms/ide/ide/src/integTest/groovy/org/gradle/plugins/ide/AbstractSourcesAndJavadocJarsIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        @Requires(IntegTestPreconditions.IsDaemonExecutor)
        def "does not download gradleApi() sources when sources download is disabled"() {
            given:
            executer.withEnvironmentVars('GRADLE_REPO_OVERRIDE': "$server.uri/")
    
            buildScript """
                apply plugin: "java"
                apply plugin: "idea"
                apply plugin: "eclipse"
    
                dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  8. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/daemon/ScalaCompilerDaemonReuseIntegrationTest.groovy

        def "ignores known changing environment variable when persistent compiler daemons are enabled"() {
            withSingleProjectSources()
            withPersistentScalaCompilerDaemons()
    
            when:
            executer.withEnvironmentVars(['JAVA_MAIN_CLASS_1234': '1234'])
            succeeds("compileAll")
    
            then:
            executedAndNotSkipped "${compileTaskPath('main')}", "${compileTaskPath('main2')}"
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. platforms/jvm/jvm-services/src/integTest/groovy/org/gradle/jvm/toolchain/JavaInstallationRegistryIntegrationTest.groovy

                        }
                    }
                }
    
                apply plugin: ShowPlugin
            """
    
            when:
            result = executer
                .withEnvironmentVars([JDK1: new File("/unknown/env").absolutePath, JDK2: firstJavaHome])
                .withArgument("-Porg.gradle.java.installations.paths=${new File("/unknown/path").absolutePath}," + secondJavaHome)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:29:03 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildOptionsIntegrationTest.groovy

                    }
                }
            """
            when:
            withEnvironmentVars(GREETING: "hi")
            configurationCacheRun("greet")
    
            then:
            output.count("Hi!") == 1
            configurationCache.assertStateStored()
    
            when:
            withEnvironmentVars(GREETING: "hi")
            configurationCacheRun("greet")
    
            then:
            output.count("Hi!") == 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 28K bytes
    - Viewed (0)
Back to top