Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for parsingFailed (0.04 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

            } catch (Exception e) {
                context.parsingFailed = true;
                context.cwd = getCanonicalPath(Paths.get("."));
                parserRequest.logger().error("Error determining working directory", e);
            }
            try {
                context.installationDirectory = getInstallationDirectory(context);
            } catch (Exception e) {
                context.parsingFailed = true;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 10 07:39:11 UTC 2025
    - 25.5K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseInvokerRequest.java

                @Nullable List<CoreExtensions> coreExtensions,
                @Nullable CIInfo ciInfo,
                @Nullable Options options) {
            this.parserRequest = requireNonNull(parserRequest);
            this.parsingFailed = parsingFailed;
            this.cwd = requireNonNull(cwd);
            this.installationDirectory = requireNonNull(installationDirectory);
            this.userHomeDirectory = requireNonNull(userHomeDirectory);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/BaseParserTest.java

                            .build());
    
            Assertions.assertFalse(invokerRequest.options().isPresent());
            Assertions.assertTrue(
                    invokerRequest.parsingFailed(), "Expected " + invokerRequest + ".parsingFailed() to return true");
        }
    
        @Test
        void specials() {
            InvokerRequest invokerRequest = subject.parseInvocation(ParserRequest.mvn(
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Parser.java

         *
         * @param parserRequest the request containing all necessary information for parsing
         * @return the parsed invoker request. Caller must start by checking {@link InvokerRequest#parsingFailed()} as
         * if there are parser errors, this request may not be fully processed and should immediately be failed.
         */
        @Nonnull
        InvokerRequest parseInvocation(@Nonnull ParserRequest parserRequest);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 31 20:56:58 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  5. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/InvokerRequest.java

         * {@link Parser#parseInvocation(ParserRequest)} this method will return {@code true} and invoker should
         * handle this request as "early failure". In these cases, {@link #options()} usually is absent.
         */
        boolean parsingFailed();
    
        /**
         * Returns {@code true} if this call happens in "embedded" mode.
         *
         * @see ParserRequest#embedded()
         */
        default boolean embedded() {
            return parserRequest().embedded();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                }
            }
        }
    
        protected abstract C createContext(InvokerRequest invokerRequest);
    
        protected void validate(C context) throws Exception {
            if (context.invokerRequest.parsingFailed()) {
                // in case of parser errors: report errors and bail out; invokerRequest contents may be incomplete
                // in case of mvnsh the context.logger != context.invokerRequest.parserRequest.logger
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 28 13:01:07 UTC 2025
    - 43.2K bytes
    - Viewed (0)
Back to top