Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 546 for GetEnv (0.25 sec)

  1. src/cmd/go/testdata/script/run_issue11709.txt

    # 'go run' should not pass extraneous environment variables to the subprocess.
    go run run.go
    ! stdout .
    ! stderr .
    
    -- run.go --
    package main
    
    import "os"
    
    func main() {
    	if os.Getenv("TERM") != "" {
    		os.Exit(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 19 21:59:50 UTC 2020
    - 217 bytes
    - Viewed (0)
  2. src/cmd/go/internal/toolchain/path_windows.go

    	"sync"
    
    	"cmd/go/internal/gover"
    )
    
    // pathExts is a cached PATHEXT list.
    var pathExts struct {
    	once sync.Once
    	list []string
    }
    
    func initPathExts() {
    	var exts []string
    	x := os.Getenv(`PATHEXT`)
    	if x != "" {
    		for _, e := range strings.Split(strings.ToLower(x), `;`) {
    			if e == "" {
    				continue
    			}
    			if e[0] != '.' {
    				e = "." + e
    			}
    			exts = append(exts, e)
    		}
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 31 15:15:19 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/services/Environment.kt

                listener.systemPropertiesPrefixedBy(prefix, snapshot)
            }
    
        override fun getVariables(): Environment.Properties =
            TrackingProperties(System.getenv()) { prefix, snapshot ->
                listener.envVariablesPrefixedBy(prefix, snapshot)
            }
    
        private
        class TrackingProperties(
            map: Map<String, String>,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. src/crypto/x509/root_unix.go

    	files := certFiles
    	if f := os.Getenv(certFileEnv); f != "" {
    		files = []string{f}
    	}
    
    	var firstErr error
    	for _, file := range files {
    		data, err := os.ReadFile(file)
    		if err == nil {
    			roots.AppendCertsFromPEM(data)
    			break
    		}
    		if firstErr == nil && !os.IsNotExist(err) {
    			firstErr = err
    		}
    	}
    
    	dirs := certDirectories
    	if d := os.Getenv(certDirEnv); d != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:54:07 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/tutorial/environmentVariables/kotlin/settings.gradle.kts

    // Using the Java API
    println(System.getenv("ENVIRONMENTAL"))
    
    // Using the Gradle API, provides a lazy Provider<String>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 183 bytes
    - Viewed (0)
  6. platforms/enterprise/enterprise-plugin-performance/src/performanceTest/groovy/org/gradle/performance/BuildScanPluginPerformanceTest.groovy

                                    url '${System.getenv("GRADLE_INTERNAL_REPO_URL")}/enterprise-libs-snapshots-local/'
                                    credentials {
                                        username = System.getenv("GRADLE_INTERNAL_REPO_USERNAME")
                                        password = System.getenv("GRADLE_INTERNAL_REPO_PASSWORD")
                                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 19 09:04:53 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/valueProviders/envVarsSysPropsDont/kotlin/build.gradle.kts

    val jdkLocations = System.getenv().filterKeys {
        it.startsWith("JDK_")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 76 bytes
    - Viewed (0)
  8. src/runtime/env_plan9.go

    // string array envs, to supply the initial contents for os.Environ.
    // Subsequent calls to os.Setenv will change this cache, without writing back
    // to the (possibly shared) Plan 9 environment, so that Setenv and Getenv
    // conform to the same Posix semantics as on other operating systems.
    // For Plan 9 shared environment semantics, instead of Getenv(key) and
    // Setenv(key, value), one can use os.ReadFile("/env/" + key) and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 02:39:39 UTC 2022
    - 3K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/buildCache/developer-ci-setup/kotlin/settings.gradle.kts

    rootProject.name = "developer-ci-setup"
    // tag::developer-ci-setup[]
    val isCiServer = System.getenv().containsKey("CI")
    
    buildCache {
        remote<HttpBuildCache> {
            url = uri("https://example.com:8123/cache/")
            isPush = isCiServer
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 281 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testfortran/fortran_test.go

    		if err != nil {
    			t.Errorf("error invoking %s: %s", fc, err)
    		}
    		libDir := filepath.Dir(string(libPath))
    		cgoLDFlags := os.Getenv("CGO_LDFLAGS")
    		cgoLDFlags += " -L " + libDir
    		if runtime.GOOS != "aix" {
    			cgoLDFlags += " -Wl,-rpath," + libDir
    		}
    		t.Logf("CGO_LDFLAGS=%s", cgoLDFlags)
    		os.Setenv("CGO_LDFLAGS", cgoLDFlags)
    
    	}
    
    	// Do a test build that doesn't involve Go FORTRAN support.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 01:29:16 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top