- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for withEnvironmentVars (0.23 sec)
-
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) -
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) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/EnvVariableInjection.groovy
return "using environment variable" } @Override void setup(AbstractConfigurationCacheIntegrationTest test) { test.executer.withEnvironmentVars(variables) } } } static void checkEnvironmentVariableUnset(String key) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 1.8K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheValueSourceIntegrationTest.groovy
} """ when: executer.withEnvironmentVars(ci: "1") configurationCacheRun("-Dci=1", "build") then: configurationCache.assertStateStored() outputContains("ON CI") when: "changing the value of the input doesn't invalidate cache" executer.withEnvironmentVars(ci: "2") configurationCacheRun("-Dci=2", "build") then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 20.6K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheEncryptionIntegrationTest.groovy
) { def allArgs = tasks + getEncryptionOptions(kind) + additionalArgs + ["-s"] // envVars overrides encryption env vars def allVars = getEncryptionEnvVars(kind) + envVars executer.withEnvironmentVars(allVars) runner(*allArgs) } private List<String> getEncryptionOptions(EncryptionKind kind = EncryptionKind.KEYSTORE) { switch (kind) { case EncryptionKind.KEYSTORE:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 13K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/AbstractGradleExecuter.java
this.args.add(arg); return this; } @Override public final GradleExecuter withEnvironmentVars(Map<String, ?> environment) { Preconditions.checkArgument(!environment.containsKey("JAVA_HOME"), "Cannot provide JAVA_HOME to withEnvironmentVars, use withJavaHome instead"); environmentVars.clear(); for (Map.Entry<String, ?> entry : environment.entrySet()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 55.1K bytes - Viewed (0)