Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for EnvironmentVariable (0.26 sec)

  1. gradle/shared-with-buildSrc/mirrors.settings.gradle.kts

        val mirrorUrls: Map<String, String> =
            providers.environmentVariable("REPO_MIRROR_URLS").orNull
                ?.ifBlank { null }
                ?.split(',')
                ?.associate { nameToUrl ->
                    val (name, url) = nameToUrl.split(':', limit = 2)
                    name to url
                }
                ?: emptyMap()
    
        fun ignoreMirrors() = providers.environmentVariable("IGNORE_MIRROR").orNull?.toBoolean() == true
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 04:11:37 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. platforms/jvm/jvm-services/src/main/java/org/gradle/jvm/toolchain/internal/EnvironmentVariableListInstallationSupplier.java

            final String value = environmentVariableValue(environmentVariable);
            if (value != null) {
                final String path = value.trim();
                if (!path.isEmpty()) {
                    return Optional.of(InstallationLocation.userDefined(fileResolver.resolve(path), "environment variable '" + environmentVariable + "'"));
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/tutorial/environmentVariables/groovy/build.gradle

    // tag::configuration[]
    // Using the Java API
    println System.getenv('ENVIRONMENTAL')
    
    // Using the Gradle API, provides a lazy Provider<String>
    println providers.environmentVariable('ENVIRONMENTAL').get()
    // end::configuration[]
    
    abstract class PrintValue extends DefaultTask {
        @Input abstract Property<String> getInputValue()
        @TaskAction void action() { println(inputValue.get()) }
    }
    
    // tag::execution[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 627 bytes
    - Viewed (0)
  4. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildParams.kt

    
    fun Project.environmentVariable(propertyName: String) = providers.environmentVariable(propertyName)
    
    
    fun Project.propertyFromAnySource(propertyName: String) = gradleProperty(propertyName)
        .orElse(systemProperty(propertyName))
        .orElse(environmentVariable(propertyName))
    
    
    val Project.buildBranch: Provider<String>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 06:42:07 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. subprojects/core/src/testFixtures/groovy/org/gradle/util/TestProviderFactory.groovy

    public class TestProviderFactory extends DefaultProviderFactory {
    
        @Override
        Provider<String> environmentVariable(String variableName) {
            return Providers.ofNullable(System.getenv(variableName))
        }
    
        @Override
        Provider<String> environmentVariable(Provider<String> variableName) {
            return environmentVariable(variableName.get())
        }
    
        @Override
        Provider<String> systemProperty(String propertyName) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 15 08:12:39 UTC 2020
    - 1.7K bytes
    - Viewed (0)
  6. platforms/core-execution/workers/src/testFixtures/groovy/org/gradle/workers/fixtures/OptionsVerifier.groovy

            options.add(new JvmArg(value))
        }
    
        void systemProperty(String name, String value) {
            options.add(new SystemProperty(name, value))
        }
    
        void environmentVariable(String name, String value) {
            options.add(new EnvironmentVariable(name, value))
        }
    
        void defaultCharacterEncoding(String value) {
            options.add(new DefaultCharacterEncoding(value))
        }
    
        void enableAssertions() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/tutorial/environmentVariables/kotlin/build.gradle.kts

    // tag::configuration[]
    // Using the Java API
    println(System.getenv("ENVIRONMENTAL"))
    
    // Using the Gradle API, provides a lazy Provider<String>
    println(providers.environmentVariable("ENVIRONMENTAL").get())
    
    // end::configuration[]
    
    abstract class PrintValue : DefaultTask() {
        @get:Input abstract val inputValue: Property<String>
        @TaskAction fun action() { println(inputValue.get()) }
    }
    
    // tag::execution[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 629 bytes
    - Viewed (0)
  8. 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)
  9. platforms/documentation/docs/src/snippets/tutorial/environmentVariables/groovy/settings.gradle

    // 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
    - 181 bytes
    - Viewed (0)
  10. build-logic/publishing/src/main/kotlin/gradlebuild.publish-public-libraries.gradle.kts

        }
    }
    
    val pgpSigningKey: Provider<String> = providers.environmentVariable("PGP_SIGNING_KEY")
    val signArtifacts: Boolean = !pgpSigningKey.orNull.isNullOrEmpty()
    
    tasks.withType<Sign>().configureEach { isEnabled = signArtifacts }
    
    signing {
        useInMemoryPgpKeys(
            project.providers.environmentVariable("PGP_SIGNING_KEY").orNull,
            project.providers.environmentVariable("PGP_SIGNING_KEY_PASSPHRASE").orNull
        )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 11:35:57 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top