Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for IsPresent (0.04 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. 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)
  3. 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)
  4. 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)
  5. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/BaseParserTest.java

                            .userHome(Path.of(System.getProperty("userHome")))
                            .build());
    
            Assertions.assertTrue(invokerRequest.options().isPresent());
            Options options = invokerRequest.options().orElseThrow();
            Assertions.assertFalse(options.showVersion().orElse(false));
            Assertions.assertFalse(options.showVersionAndExit().orElse(false));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestrator.java

            context.indent();
    
            if (options.all().orElse(false)) {
                context.info("all: true (applying all available upgrades)");
            }
    
            if (options.modelVersion().isPresent()) {
                context.info("modelVersion: " + options.modelVersion().get());
            }
    
            if (options.plugins().orElse(false)) {
                context.info("plugins: true");
            }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/DosErrorTest.java

        void testKnownMapping() {
            final int dosErr = 0x00010001;
            final int expectedNt = 0xc0000002;
            Optional<Integer> actual = findNtStatus(dosErr);
            assertTrue(actual.isPresent(), String.format("Mapping for %08x should exist", dosErr));
            assertEquals(expectedNt, actual.get(), String.format("NTSTATUS for %08x should be %08x", dosErr, expectedNt));
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            if (context.options().help().isPresent()) {
                Consumer<String> writer = determineWriter(context);
                context.options().displayHelp(context.invokerRequest.parserRequest(), writer);
                throw new InvokerException.ExitException(0);
            }
            if (context.options().showVersionAndExit().isPresent()) {
                showVersion(context);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 28 13:01:07 UTC 2025
    - 43.2K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenParser.java

            // CLI args
            MavenOptions cliOptions = parseMavenCliOptions(context.parserRequest.args());
            result.add(cliOptions);
            // atFile option
            if (cliOptions.atFile().isPresent()) {
                Path file = context.cwd.resolve(cliOptions.atFile().orElseThrow());
                if (Files.isRegularFile(file)) {
                    result.add(parseMavenAtFileOptions(file));
                } else {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 14 12:35:44 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top