Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for maybeRemoveEnvironmentVariable (0.46 sec)

  1. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/processenvironment/ProcessEnvironmentTest.groovy

            then:
            System.getenv("TEST_ENV_1") == "value"
            System.getenv("TEST_ENV_2") == "value"
    
            when:
            env.removeEnvironmentVariable("TEST_ENV_1")
            env.maybeRemoveEnvironmentVariable("TEST_ENV_2")
    
            then:
            System.getenv("TEST_ENV_1") == null
            System.getenv("TEST_ENV_2") == null
        }
    
        @Requires(UnitTestPreconditions.WorkingDir)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/jna/UnsupportedEnvironment.java

        @Override
        public void removeEnvironmentVariable(String name) throws NativeIntegrationException {
            throw notSupported();
        }
    
        @Override
        public EnvironmentModificationResult maybeRemoveEnvironmentVariable(String name) {
            return EnvironmentModificationResult.UNSUPPORTED_ENVIRONMENT;
        }
    
        @Override
        public void setEnvironmentVariable(String name, String value) throws NativeIntegrationException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/processenvironment/AbstractProcessEnvironment.java

            reflectiveEnvironment.unsetenv(name);
        }
    
        protected abstract void removeNativeEnvironmentVariable(String name);
    
        @Override
        public EnvironmentModificationResult maybeRemoveEnvironmentVariable(String name) {
            removeEnvironmentVariable(name);
            return EnvironmentModificationResult.SUCCESS;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/ProcessEnvironment.java

         *
         * @param name The name of the environment variable.
         * @return true if removed, false if not possible.
         */
        EnvironmentModificationResult maybeRemoveEnvironmentVariable(String name);
    
        /**
         * Sets the given environment variable.
         *
         * @param name The name
         * @param value The value. Can be null, which removes the environment variable.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InProcessGradleExecuter.java

                    if (oldValue != null) {
                        processEnvironment.maybeSetEnvironmentVariable(envVar, oldValue);
                    } else {
                        processEnvironment.maybeRemoveEnvironmentVariable(envVar);
                    }
                }
                System.setProperty("user.dir", originalSysProperties.getProperty("user.dir"));
                System.setIn(originalStdIn);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top