Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 207 for getEnd (0.19 sec)

  1. platforms/jvm/language-java/src/integTest/groovy/org/gradle/language/java/DependencyScope.groovy

                'dependencies {'
            }
    
            @Override
            public String getEnd() {
                '}'
            }
        },
        API {
            @Override
            public String getBegin() {
                'api { dependencies {'
            }
    
            @Override
            public String getEnd() {
                '}}'
            }
        },
        SOURCES {
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/NamedOperation.groovy

        String toString() {
            return "[operation $name]"
        }
    
        Instant getEnd() {
            def instant = end.get()
            if (instant == null) {
                throw new IllegalStateException("Operation '$name' has not completed yet.")
            }
            return instant
        }
    
        Duration getDuration() {
            return getEnd() - start
        }
    
        void completed(Instant when) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. src/syscall/syscall_js.go

    	return "", ENOSYS
    }
    
    const ImplementsGetwd = true
    
    func Getwd() (wd string, err error) {
    	var buf [PathMax]byte
    	n, err := Getcwd(buf[0:])
    	if err != nil {
    		return "", err
    	}
    	return string(buf[:n]), nil
    }
    
    func Getuid() int {
    	return jsProcess.Call("getuid").Int()
    }
    
    func Getgid() int {
    	return jsProcess.Call("getgid").Int()
    }
    
    func Geteuid() int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildEnvironment.kt

        val isCiServer = CI_ENVIRONMENT_VARIABLE in System.getenv()
        val isTravis = "TRAVIS" in System.getenv()
        val isGhActions = "GITHUB_ACTIONS" in System.getenv()
        val isTeamCity = "TEAMCITY_VERSION" in System.getenv()
        val isTeamCityParallelTestsEnabled
            get() = "TEAMCITY_PARALLEL_TESTS_ENABLED" in System.getenv()
        val isCodeQl: Boolean by lazy {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 16:58:31 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. src/os/env.go

    	}
    	return s[:i], i
    }
    
    // Getenv retrieves the value of the environment variable named by the key.
    // It returns the value, which will be empty if the variable is not present.
    // To distinguish between an empty value and an unset value, use [LookupEnv].
    func Getenv(key string) string {
    	testlog.Getenv(key)
    	v, _ := syscall.Getenv(key)
    	return v
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/EnvVariableRead.groovy

    package org.gradle.internal.cc.impl.inputs.undeclared
    
    abstract class EnvVariableRead extends BuildInputRead {
        static EnvVariableRead getEnv(String name) {
            return new EnvVariableRead() {
                @Override
                String getKotlinExpression() {
                    return "System.getenv(\"$name\")"
                }
            }
        }
    
        static EnvVariableRead getEnvGet(String name) {
            return new EnvVariableRead() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/ReflectiveEnvironment.java

        public void unsetenv(String name) {
            Map<String, String> map = getEnv();
            map.remove(name);
            if (OperatingSystem.current().isWindows()) {
                Map<String, String> env2 = getWindowsEnv();
                env2.remove(name);
            }
        }
    
        public void setenv(String name, String value) {
            Map<String, String> map = getEnv();
            map.put(name, value);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. 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)
  9. platforms/documentation/docs/src/snippets/valueProviders/envVarsSysPropsDo/groovy/build.gradle

    def jdkVariables = ["JDK_8", "JDK_11", "JDK_17"]
    def jdkLocations = jdkVariables.findAll { v ->
        System.getenv(v) != null
    }.collectEntries { v ->
        [v, System.getenv(v)]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 177 bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/buildCache/conditional-action/groovy/build.gradle

    plugins {
        id('java-library')
    }
    
    // tag::conditionalAction[]
    if (System.getenv().containsKey("CI")) {
        tasks.withType(Test).configureEach {
            doFirst {
                println "Running test on CI"
            }
        }
    }
    // end::conditionalAction[]
    
    // tag::unconditionalAction[]
    tasks.withType(Test).configureEach {
        doFirst {
            if (System.getenv().containsKey("CI")) {
                println "Running test on CI"
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 471 bytes
    - Viewed (0)
Back to top