Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for failOnSeverity (0.08 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/invoker/LayeredOptions.java

        @Override
        public Optional<Boolean> showErrors() {
            return returnFirstPresentOrEmpty(Options::showErrors);
        }
    
        @Override
        public Optional<String> failOnSeverity() {
            return returnFirstPresentOrEmpty(Options::failOnSeverity);
        }
    
        @Override
        public Optional<Boolean> nonInteractive() {
            return returnFirstPresentOrEmpty(Options::nonInteractive);
        }
    
        @Override
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Feb 26 17:31:44 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  2. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Options.java

         * Returns the severity level at which the build should fail.
         *
         * @return an {@link Optional} containing the fail-on-severity string, or empty if not set
         */
        @Nonnull
        Optional<String> failOnSeverity();
    
        /**
         * Indicates whether to run in non-interactive mode.
         *
         * @return an {@link Optional} containing the boolean flag, or empty if not set
         */
        @Nonnull
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Jan 13 16:14:35 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            }
        }
    
        protected void activateLogging(C context) throws Exception {
            context.slf4jConfiguration.activate();
            if (context.options().failOnSeverity().isPresent()) {
                String logLevelThreshold = context.options().failOnSeverity().get();
                if (context.loggerFactory instanceof LogLevelRecorder recorder) {
                    LogLevelRecorder.Level level =
    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)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

                return Optional.of(Boolean.TRUE);
            }
            return Optional.empty();
        }
    
        @Override
        public Optional<String> failOnSeverity() {
            if (commandLine.hasOption(CLIManager.FAIL_ON_SEVERITY)) {
                return Optional.of(commandLine.getOptionValue(CLIManager.FAIL_ON_SEVERITY));
            }
            return Optional.empty();
        }
    
    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)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

            }
    
            return getInvokerRequest(context);
        }
    
        protected void validate(LocalContext context) {
            Options options = context.options;
    
            options.failOnSeverity().ifPresent(severity -> {
                String c = severity.toLowerCase(Locale.ENGLISH);
                if (!Arrays.asList("warn", "warning", "error").contains(c)) {
                    context.parsingFailed = true;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 10 07:39:11 GMT 2025
    - 25.5K bytes
    - Click Count (0)
Back to Top