Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for withEnvironmentVars (0.25 sec)

  1. 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)
  2. 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)
  3. 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)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/maven/MavenHttpRepoResolveIntegrationTest.groovy

            when:
            projectA.pom.expectGet()
            projectA.artifact.expectGet()
            projectB.pom.expectGet()
            projectB.artifact.expectGet()
    
            and:
            executer.withEnvironmentVars(M2_HOME: m2Home.absolutePath)
            run 'retrieve'
    
            then:
            file('libs').assertHasDescendants('projectA-1.0.jar', 'projectB-1.0.jar')
            def snapshot = file('libs/projectA-1.0.jar').snapshot()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  5. 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)
  6. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/server/health/gc/GarbageCollectionMonitoringIntegrationTest.groovy

        GarbageCollectorUnderTest garbageCollector
    
        def setup() {
            garbageCollector = version
            executer.withBuildJvmOpts(garbageCollector.configuration.jvmArgs.split(" "))
            executer.withEnvironmentVars(JAVA_TOOL_OPTIONS: "-D${DefaultGarbageCollectionMonitor.DISABLE_POLLING_SYSTEM_PROPERTY}=true")
        }
    
        def "does not expire daemon when performance monitoring is disabled"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/GradleExecuter.java

         * Not propagating a variable of this process to the executed build at all is not supported.
         * <p>
         * Setting "JAVA_HOME" this way is not supported.
         */
        GradleExecuter withEnvironmentVars(Map<String, ?> environment);
    
        @Deprecated
        GradleExecuter usingSettingsFile(File settingsFile);
    
        GradleExecuter usingInitScript(File initScript);
    
        /**
         * Uses the given project directory
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/AvailableToolChains.java

                }
            }
    
            private void configureExecuter(GradleExecuter executer) {
                executer.withEnvironmentVars(ImmutableMap.of("DEVELOPER_DIR", xcodeDir.getAbsolutePath()));
            }
    
            public Optional<InstalledToolChain> getSwiftc() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 41.6K bytes
    - Viewed (0)
Back to top