Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for showVersion (0.07 seconds)

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

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/utils/CLIReportingUtils.java

        // CHECKSTYLE_ON: MagicNumber
    
        public static final String BUILD_VERSION_PROPERTY = "version";
    
        public static String showVersion() {
            return showVersion(null, null);
        }
    
        public static String showVersion(String commandLine, String terminal) {
            final String ls = System.lineSeparator();
            Properties properties = getBuildProperties();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Mar 10 15:37:54 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                throw new InvokerException.ExitException(0);
            }
            if (context.options().showVersionAndExit().isPresent()) {
                showVersion(context);
                throw new InvokerException.ExitException(0);
            }
        }
    
        protected void showVersion(C context) {
            Consumer<String> writer = determineWriter(context);
            if (context.options().quiet().orElse(false)) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Oct 28 13:01:07 GMT 2025
    - 43.2K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

                return Optional.of(Boolean.TRUE);
            }
            return Optional.empty();
        }
    
        @Override
        public Optional<Boolean> showVersion() {
            if (commandLine.hasOption(CLIManager.SHOW_VERSION)) {
                return Optional.of(Boolean.TRUE);
            }
            return Optional.empty();
        }
    
        @Override
        public Optional<Boolean> quiet() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Oct 08 07:36:42 GMT 2025
    - 21.3K bytes
    - Click Count (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/BaseParserTest.java

                            .build());
    
            Assertions.assertTrue(invokerRequest.options().isPresent());
            Options options = invokerRequest.options().orElseThrow();
            Assertions.assertFalse(options.showVersion().orElse(false));
            Assertions.assertFalse(options.showVersionAndExit().orElse(false));
            Assertions.assertTrue(options.showErrors().orElse(false));
            Assertions.assertTrue(options.verbose().orElse(false));
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

            }
        }
    
        private void version(CliRequest cliRequest) {
            if (cliRequest.verbose || cliRequest.commandLine.hasOption(CLIManager.SHOW_VERSION)) {
                System.out.println(CLIReportingUtils.showVersion());
            }
        }
    
        private void commands(CliRequest cliRequest) {
            if (cliRequest.showErrors) {
                slf4jLogger.info("Error stacktraces are turned on.");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 78.1K bytes
    - Click Count (0)
  6. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java

        public static final char VERBOSE = 'X';
    
        public static final char ERRORS = 'e';
    
        public static final char HELP = 'h';
    
        public static final char VERSION = 'v';
    
        public static final char SHOW_VERSION = 'V';
    
        public static final char NON_RECURSIVE = 'N';
    
        public static final char UPDATE_SNAPSHOTS = 'U';
    
        public static final char ACTIVATE_PROFILES = 'P';
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Aug 06 04:56:48 GMT 2025
    - 17.8K bytes
    - Click Count (0)
Back to Top