Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for showErrors (0.18 sec)

  1. compat/maven-embedder/src/main/java/org/apache/maven/cli/CliRequest.java

        String workingDirectory;
    
        File multiModuleProjectDirectory;
    
        Path rootDirectory;
    
        Path topDirectory;
    
        boolean verbose;
    
        boolean quiet;
    
        boolean showErrors = true;
    
        Properties userProperties = new Properties();
    
        Properties systemProperties = new Properties();
    
        MavenExecutionRequest request;
    
        CliRequest(String[] args, ClassWorld classWorld) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java

            this.startTime = startTime;
    
            return this;
        }
    
        @Override
        public MavenExecutionRequest setShowErrors(boolean showErrors) {
            this.showErrors = showErrors;
    
            return this;
        }
    
        @Override
        public MavenExecutionRequest setGoals(List<String> goals) {
            if (goals != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LayeredOptions.java

        }
    
        @Override
        public Optional<Boolean> verbose() {
            return returnFirstPresentOrEmpty(Options::verbose);
        }
    
        @Override
        public Optional<Boolean> showErrors() {
            return returnFirstPresentOrEmpty(Options::showErrors);
        }
    
        @Override
        public Optional<String> failOnSeverity() {
            return returnFirstPresentOrEmpty(Options::failOnSeverity);
        }
    
        @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)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                return 1;
            } catch (BuildAbort e) {
                CLIReportingUtils.showError(slf4jLogger, "ABORTED", e, cliRequest.showErrors);
    
                return 2;
            } catch (Exception e) {
                CLIReportingUtils.showError(slf4jLogger, "Error executing Maven.", e, cliRequest.showErrors);
    
                return 1;
            } finally {
                if (localContainer != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/DefaultEncryptInvoker.java

                context.terminal.writer().println("Goal canceled by user.");
                return CANCELED;
            } catch (Exception e) {
                if (context.invokerRequest.options().showErrors().orElse(false)) {
                    context.terminal.writer().println(e.getMessage());
                    e.printStackTrace(context.terminal.writer());
                } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java

                    }
                }
    
                context.logger.error("");
    
                if (!context.invokerRequest.options().showErrors().orElse(false)) {
                    context.logger.error("To see the full stack trace of the errors, re-run Maven with the '"
                            + MessageUtils.builder().strong("-e") + "' switch");
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  7. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Options.java

        /**
         * Indicates whether to show error stack traces.
         *
         * @return an {@link Optional} containing the boolean flag, or empty if not set
         */
        @Nonnull
        Optional<Boolean> showErrors();
    
        /**
         * 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
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Oct 22 14:53:58 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/forked/DefaultForkedMavenInvoker.java

                cmdAndArguments.add("--quiet");
            }
            if (mavenOptions.verbose().orElse(false)) {
                cmdAndArguments.add("--verbose");
            }
            if (mavenOptions.showErrors().orElse(false)) {
                cmdAndArguments.add("--errors");
            }
            if (mavenOptions.failOnSeverity().isPresent()) {
                cmdAndArguments.add("--fail-on-severity");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

        }
    
        protected InvokerException handleException(LookupInvokerContext<O, R, C> context, Exception e)
                throws InvokerException {
            boolean showStackTrace = context.invokerRequest.options().showErrors().orElse(false);
            if (showStackTrace) {
                context.logger.error(
                        "Error executing " + context.invokerRequest.parserRequest().commandName() + ".", e);
            } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38K bytes
    - Viewed (0)
  10. 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> showErrors() {
            if (commandLine.hasOption(CLIManager.SHOW_ERRORS) || verbose().orElse(false)) {
                return Optional.of(Boolean.TRUE);
            }
            return Optional.empty();
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top