Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for withEnvironmentVars (0.2 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
Back to top