Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for showVersion (0.06 sec)

  1. compat/maven-embedder/src/main/java/org/apache/maven/cli/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();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LayeredOptions.java

        public Optional<Boolean> showVersionAndExit() {
            return returnFirstPresentOrEmpty(Options::showVersionAndExit);
        }
    
        @Override
        public Optional<Boolean> showVersion() {
            return returnFirstPresentOrEmpty(Options::showVersion);
        }
    
        @Override
        public Optional<Boolean> quiet() {
            return returnFirstPresentOrEmpty(Options::quiet);
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                throw new ExitException(0);
            }
            if (invokerRequest.options().showVersionAndExit().isPresent()) {
                showVersion(context);
                throw new ExitException(0);
            }
        }
    
        protected void showVersion(C context) {
            Consumer<String> writer = determineWriter(context);
            R invokerRequest = context.invokerRequest;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38K bytes
    - Viewed (0)
  4. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Options.java

        /**
         * Indicates whether to show the version information.
         *
         * @return an {@link Optional} containing the boolean flag, or empty if not set
         */
        @Nonnull
        Optional<Boolean> showVersion();
    
        /**
         * Indicates whether to run in quiet mode.
         *
         * @return an {@link Optional} containing the boolean flag, or empty if not set
         */
        @Nonnull
        Optional<Boolean> quiet();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Oct 22 14:53:58 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/forked/DefaultForkedMavenInvoker.java

                }
            }
            if (mavenOptions.showVersionAndExit().orElse(false)) {
                cmdAndArguments.add("--version");
            }
            if (mavenOptions.showVersion().orElse(false)) {
                cmdAndArguments.add("--show-version");
            }
            if (mavenOptions.quiet().orElse(false)) {
                cmdAndArguments.add("--quiet");
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. 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() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  7. 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.");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  8. 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';
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top