Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 187 for isPresent (1.01 sec)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/PluginUpgradeCliTest.java

            assertFalse(options.plugins().isPresent(), "--plugins should not be present by default");
            assertFalse(options.all().isPresent(), "--all should not be present by default");
            assertFalse(options.infer().isPresent(), "--infer should not be present by default");
            assertFalse(options.model().isPresent(), "--fix-model should not be present by default");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:48:39 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. internal/kms/config_test.go

    			t.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 Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. impl/maven-core/src/test/java/org/apache/maven/execution/DefaultBuildResumptionAnalyzerTest.java

            Optional<BuildResumptionData> result = analyzer.determineBuildResumptionData(executionResult);
    
            assertTrue(result.isPresent(), "Expected " + result + ".isPresent() to return true");
            assertEquals(asList("test:B"), result.get().getRemainingProjects());
        }
    
        @Test
        void resumeFromIsIgnoredWhenFirstProjectFails() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. 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 Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 15K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenInvoker.java

            if (context.options().failFast().isPresent()) {
                return MavenExecutionRequest.REACTOR_FAIL_FAST;
            } else if (context.options().failAtEnd().isPresent()) {
                return MavenExecutionRequest.REACTOR_FAIL_AT_END;
            } else if (context.options().failNever().isPresent()) {
                return MavenExecutionRequest.REACTOR_FAIL_NEVER;
            } else {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Sep 11 17:20:46 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/graph/ProjectSelector.java

                    Optional<MavenProject> optSelectedProject =
                            findOptionalProjectBySelector(projects, baseDirectory, selector);
                    if (optSelectedProject.isPresent()) {
                        resolvedOptionalProjects.add(optSelectedProject.get());
                        if (activation.activationSettings().recurse()) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 11 16:38:19 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  7. 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 Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Jun 05 17:24:26 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            context.invokerRequest.stdIn().ifPresent(System::setIn);
            context.invokerRequest
                    .stdOut()
                    .ifPresent(out -> System.setOut(out instanceof PrintStream pw ? pw : new PrintStream(out, true)));
            context.invokerRequest
                    .stdErr()
                    .ifPresent(err -> System.setErr(err instanceof PrintStream pw ? pw : new PrintStream(err, true)));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 28 13:01:07 UTC 2025
    - 43.2K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LayeredOptions.java

        }
    
        protected <T> Optional<T> returnFirstPresentOrEmpty(Function<O, Optional<T>> getter) {
            for (O option : options) {
                Optional<T> o = getter.apply(option);
                if (o.isPresent()) {
                    return o;
                }
            }
            return Optional.empty();
        }
    
        protected Optional<List<String>> collectListIfPresentOrEmpty(Function<O, Optional<List<String>>> getter) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Feb 26 17:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Optional.java

      Optional() {}
    
      /**
       * Returns {@code true} if this holder contains a (non-null) instance.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> no differences.
       */
      public abstract boolean isPresent();
    
      /**
       * Returns the contained instance, which must be present. If the instance might be absent, use
       * {@link #or(Object)} or {@link #orNull} instead.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 15.4K bytes
    - Viewed (0)
Back to top