- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for withEnvironmentVars (0.2 sec)
-
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) -
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) -
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) -
testing/distributions-integ-tests/src/integTest/groovy/org/gradle/SrcDistributionIntegrationSpec.groovy
withArgument("-D${PLUGIN_PORTAL_OVERRIDE_URL_PROPERTY}=${gradlePluginRepositoryMirrorUrl()}") withArgument("-Porg.gradle.java.installations.paths=${Jvm.current().javaHome.absolutePath}") withEnvironmentVars([BUILD_BRANCH: System.getProperty("gradleBuildBranch"), BUILD_COMMIT_ID: System.getProperty("gradleBuildCommitId")]) withWarningMode(WarningMode.None) noDeprecationChecks() }.run()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.7K bytes - Viewed (0) -
testing/integ-test/src/integTest/groovy/org/gradle/integtests/environment/BuildEnvironmentIntegrationTest.groovy
file('build.gradle') << "println providers.environmentVariable('foo').orNull" when: def out = executer.withEnvironmentVars(foo: "gradle rocks!").run().output then: out.contains("gradle rocks!") when: out = executer.withEnvironmentVars(foo: "and will be even better").run().output then: out.contains("and will be even better") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 8.5K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/maven/M2Installation.groovy
// if call `using m2`, then we disable the automatic isolation of m2 isolateMavenLocal = false if (globalMavenDirectory?.exists()) { gradleExecuter.withEnvironmentVars(M2_HOME: globalMavenDirectory.absolutePath) } } void isolateMavenLocalRepo(GradleExecuter gradleExecuter) { gradleExecuter.beforeExecute { if (isolateMavenLocal) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.1K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonJvmSettingsIntegrationTest.groovy
} """ when: // This prevents the executer fixture from adding "default" values to the build jvm options executer.useOnlyRequestedJvmOpts() executer.withEnvironmentVars(JAVA_TOOL_OPTIONS: javaToolOptions) run "verify" then: String gradleVersion = (output =~ /GRADLE_VERSION: (.*)/)[0][1] daemons(gradleVersion).daemons.size() == 1 where:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 13:00:39 UTC 2024 - 4.3K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/SingleUseDaemonIntegrationTest.groovy
} private def requireJvmArg(String jvmArg) { file('gradle.properties') << "org.gradle.jvmargs=$jvmArg" } private def runWithJvmArg(String jvmArg) { executer.withEnvironmentVars(["JAVA_OPTS": "$jvmArg -ea"]) } private void wasForked() { outputContains(SingleUseDaemonClient.MESSAGE) assert daemons.daemons.size() == 1 }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 25 13:41:21 UTC 2024 - 7K bytes - Viewed (0)