Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for getOrElse (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. build-tools-internal/src/main/groovy/elasticsearch.authenticated-testclusters.gradle

            username: providers.systemProperty('tests.rest.cluster.username')
                    .forUseAtConfigurationTime()
                    .getOrElse('test_admin'),
            password: providers.systemProperty('tests.rest.cluster.password')
                    .forUseAtConfigurationTime()
                    .getOrElse('x-pack-test-password')
    ]
    
    tasks.withType(StandaloneRestIntegTestTask).configureEach {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 20 11:25:54 GMT 2021
    - 1.1K bytes
    - Click Count (0)
  2. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildParams.kt

        get() = gradleProperty(MAX_PARALLEL_FORKS).getOrElse("4").toInt()
    
    
    val Project.autoDownloadAndroidStudio: Boolean
        get() = propertyFromAnySource(AUTO_DOWNLOAD_ANDROID_STUDIO).getOrElse("false").toBoolean()
    
    
    val Project.runAndroidStudioInHeadlessMode: Boolean
        get() = propertyFromAnySource(RUN_ANDROID_STUDIO_IN_HEADLESS_MODE).getOrElse("false").toBoolean()
    
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Jan 19 05:13:29 GMT 2026
    - 18K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalBwcGitPlugin.java

                // for testing only we can override the base remote url
                String remoteRepoUrl = providerFactory.systemProperty("testRemoteRepo")
                    .forUseAtConfigurationTime()
                    .getOrElse("https://github.com/" + remoteRepo + "/elasticsearch.git");
                addRemote.setCommandLine(asList("git", "remote", "add", remoteRepo, remoteRepoUrl));
            });
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 9.9K bytes
    - Click Count (0)
  4. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/info/ParallelDetector.java

            }
    
            return _defaultParallel;
        }
    
        private static boolean isMac(ProviderFactory providers) {
            return providers.systemProperty("os.name").forUseAtConfigurationTime().getOrElse("").startsWith("Mac");
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Aug 09 07:39:30 GMT 2021
    - 3.6K bytes
    - Click Count (0)
  5. architecture/standards/0006-use-of-provider-apis-in-gradle.md

    // Unacceptable
    String value
    if (!getSomeProperty().isPresent()) {
       value = "convention"
    } else {
       value = getSomeProperty().get()
    }
    
    // Also unacceptable
    String value = getSomeProperty().getOrElse("convention")
    
    // This should be always:
    String value = getSomeProperty().get()
    ```
    
    ## Consequences
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 05 12:39:41 GMT 2026
    - 10K bytes
    - Click Count (0)
  6. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/tasks/BuildReceipt.kt

                it.parentFile.mkdirs()
            }
            ReproduciblePropertiesWriter.store(
                Properties().apply {
                    put("commitId", commitId.getOrElse("HEAD"))
                    put("scriptTemplateCommitId", scriptTemplateCommitId.getOrElse("HEAD"))
                    put("versionNumber", version.get())
                    put("baseVersion", baseVersion.get())
                    put("isSnapshot", snapshot.get().toString())
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 25 08:51:12 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  7. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/provider/BuildTimestampValueSource.kt

            val runningInstallTask: Property<Boolean>
            val runningDocsTestTask: Property<Boolean>
        }
    
        override fun obtain(): String? = parameters.run {
            if (enableConfigurationCacheForDocsTests.getOrElse(false)) {
                // If the CC is enabled for docs tests, use a static dummy timestamp (the Epoch) so that we get hits,
                // otherwise we'll use the current timestamp by default and miss
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Jun 05 17:24:26 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  8. build-logic/src/main/kotlin/BndBuildAction.kt

                Processor(gradleProperties).let { p ->
                  p.loadProperties(bndFileVal).store(writer, null)
                }
              } else {
                val bndVal = bnd.getOrElse("")
                if (bndVal.isNotEmpty()) {
                  val props = UTF8Properties()
                  props.load(bndVal, File(projectDir, "build.gradle.kts"), builder)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 8.9K bytes
    - Click Count (0)
Back to Top