Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 168 for ifPresent (0.08 sec)

  1. build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-identity.gradle.kts

        val rcNumber = buildRcNumber
        val milestoneNumber = buildMilestoneNumber
    
        if (
            (buildFinalRelease.isPresent && buildRcNumber.isPresent) ||
            (buildFinalRelease.isPresent && buildMilestoneNumber.isPresent) ||
            (buildRcNumber.isPresent && buildMilestoneNumber.isPresent)
        ) {
            throw InvalidUserDataException("Cannot set any combination of milestoneNumber, rcNumber and finalRelease at the same time")
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/forked/DefaultForkedMavenInvoker.java

                cmdAndArguments.add("--install-toolchains");
                cmdAndArguments.add(mavenOptions.altInstallationToolchains().get());
            }
            if (mavenOptions.logFile().isPresent()) {
                cmdAndArguments.add("--log-file");
                cmdAndArguments.add(mavenOptions.logFile().get());
            }
            if (mavenOptions.color().isPresent()) {
                cmdAndArguments.add("--color");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java

            MavenOptions mavenOptions = context.invokerRequest.options();
            if (mavenOptions.failFast().isPresent()) {
                return MavenExecutionRequest.REACTOR_FAIL_FAST;
            } else if (mavenOptions.failAtEnd().isPresent()) {
                return MavenExecutionRequest.REACTOR_FAIL_AT_END;
            } else if (mavenOptions.failNever().isPresent()) {
                return MavenExecutionRequest.REACTOR_FAIL_NEVER;
            } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  4. internal/kms/config_test.go

    			os.Setenv(k, v)
    		}
    
    		ok, err := IsPresent()
    		if err != nil && !test.ShouldFail {
    			t.Fatalf("Test %d: %v", i, err)
    		}
    		if err == nil && test.ShouldFail {
    			t.Fatalf("Test %d: should have failed but succeeded", i)
    		}
    
    		if !test.ShouldFail && ok != test.IsPresent {
    			t.Fatalf("Test %d: reported that KMS present=%v - want present=%v", i, ok, test.IsPresent)
    		}
    	}
    }
    
    var isPresentTests = []struct {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/EnumsTest.java

        assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).hasValue(TestEnum.POODLE);
    
        assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).isPresent();
        assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).isPresent();
        assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).isPresent();
    
        assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. internal/kms/config.go

    		}
    		return ParseSecretKey(s)
    	}
    }
    
    // IsPresent reports whether a KMS configuration is present.
    // It returns an error if multiple KMS configurations are
    // present or if one configuration is incomplete.
    func IsPresent() (bool, error) {
    	// isPresent reports whether at least one of the
    	// given env. variables is present.
    	isPresent := func(vars ...string) bool {
    		for _, v := range vars {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 11:46:39 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  7. internal/crypto/sse-s3.go

    	// Otherwise, the metadata is corrupted.
    	keyID, idPresent := metadata[MetaKeyID]
    	b64KMSSealedKey, kmsKeyPresent := metadata[MetaDataEncryptionKey]
    	if !idPresent && kmsKeyPresent {
    		return keyID, kmsKey, sealedKey, Errorf("The object metadata is missing the internal KMS key-ID for SSE-S3")
    	}
    	if idPresent && !kmsKeyPresent {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/provider/BuildTimestampValueSource.kt

        private
        val timestampSource: String
            get() = parameters.run {
                when {
                    buildTimestampFromBuildReceipt.isPresent -> "from build receipt"
                    buildTimestampFromGradleProperty.isPresent -> "from buildTimestamp property"
                    runningInstallTask.get() -> "from current time because installing"
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testIsPresent_no() {
        assertFalse(Optional.absent().isPresent());
      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testIsPresent_yes() {
        assertTrue(Optional.of("training").isPresent());
      }
    
      public void testGet_absent() {
        Optional<String> optional = Optional.absent();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  10. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractSuperClassChangesRule.groovy

            if (!changed(member)) {
                return null
            }
    
            Optional<CtClass> oldClass = member.oldClass
            Optional<CtClass> newClass = member.newClass
            if (!oldClass.isPresent() || !newClass.isPresent()) {
                // breaking change would be reported
                return null
            }
    
            return checkSuperClassChanges(member, oldClass.get(), newClass.get())
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 2.2K bytes
    - Viewed (0)
Back to top