Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 21 for parserRequest (0.07 seconds)

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

  1. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/ParserRequest.java

     * This interface encapsulates all the necessary information needed to parse
     * Maven commands and arguments into an {@link InvokerRequest}.
     *
     * @since 4.0.0
     */
    @Immutable
    @Experimental
    public interface ParserRequest {
        /**
         * Returns the Maven command to be executed. This command is used in some invokers (ie forked) but also to
         * present help to user.
         *
         * @return the command string
         */
        @Nonnull
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Jun 07 06:22:47 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/MavenEncCling.java

        }
    
        @Override
        protected Parser createParser() {
            return new EncryptParser();
        }
    
        @Override
        protected ParserRequest.Builder createParserRequestBuilder(String[] args) {
            return ParserRequest.mvnenc(args, createMessageBuilderFactory());
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 3K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/MavenShellCling.java

        }
    
        @Override
        protected Parser createParser() {
            return new ShellParser();
        }
    
        @Override
        protected ParserRequest.Builder createParserRequestBuilder(String[] args) {
            return ParserRequest.mvnsh(args, createMessageBuilderFactory());
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 3K bytes
    - Click Count (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/TestUtils.java

            when(request.systemProperties()).thenReturn(Map.of());
            when(request.options()).thenReturn(Optional.ofNullable(options));
    
            // Mock parserRequest and logger
            ParserRequest parserRequest = mock(ParserRequest.class);
            Logger logger = mock(Logger.class);
    
            // Capture error messages for debugging
            doAnswer(invocation -> {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseInvokerRequest.java

    import org.apache.maven.api.cli.InvokerRequest;
    import org.apache.maven.api.cli.Options;
    import org.apache.maven.api.cli.ParserRequest;
    import org.apache.maven.api.cli.cisupport.CIInfo;
    
    import static java.util.Objects.requireNonNull;
    
    public class BaseInvokerRequest implements InvokerRequest {
        private final ParserRequest parserRequest;
        private final boolean parsingFailed;
        private final Path cwd;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  6. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/InvokerRequest.java

    @Experimental
    public interface InvokerRequest {
        /**
         * The parser request this instance was created from.
         */
        @Nonnull
        ParserRequest parserRequest();
    
        /**
         * Flag representing parser processing result: if there were some fatal errors during
         * {@link Parser#parseInvocation(ParserRequest)} this method will return {@code true} and invoker should
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  7. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/BaseParserTest.java

                            "test", context.parserRequest.args().toArray(new String[0]));
                } catch (ParseException e) {
                    throw new IllegalArgumentException(e);
                }
            }
        };
    
        @Test
        void happy() {
            InvokerRequest invokerRequest =
                    subject.parseInvocation(ParserRequest.mvn(Arrays.asList("-e", "-X"), mock(MessageBuilderFactory.class))
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LayeredOptions.java

        public Optional<Boolean> help() {
            return returnFirstPresentOrEmpty(Options::help);
        }
    
        @Override
        public void warnAboutDeprecatedOptions(ParserRequest request, Consumer<String> printWriter) {}
    
        @Override
        public void displayHelp(ParserRequest request, Consumer<String> printWriter) {
            options.get(0).displayHelp(request, printWriter);
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Feb 26 17:31:44 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/MavenUpCling.java

        }
    
        @Override
        protected Parser createParser() {
            return new UpgradeParser();
        }
    
        @Override
        protected ParserRequest.Builder createParserRequestBuilder(String[] args) {
            return ParserRequest.mvnup(args, createMessageBuilderFactory());
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 3K bytes
    - Click Count (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/builtin/BuiltinShellCommandRegistryFactory.java

    import java.util.Map;
    import java.util.function.Consumer;
    import java.util.stream.Stream;
    
    import org.apache.maven.api.Lifecycle;
    import org.apache.maven.api.cli.InvokerException;
    import org.apache.maven.api.cli.ParserRequest;
    import org.apache.maven.api.di.Named;
    import org.apache.maven.api.di.Singleton;
    import org.apache.maven.api.services.LifecycleRegistry;
    import org.apache.maven.api.services.LookupException;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Jun 07 06:22:47 GMT 2025
    - 12.3K bytes
    - Click Count (0)
Back to Top