Class ParserRequest.Builder.ParserRequestImpl

java.lang.Object
org.apache.maven.api.cli.ParserRequest.Builder.ParserRequestImpl
All Implemented Interfaces:
ParserRequest
Enclosing class:
ParserRequest.Builder

private static class ParserRequest.Builder.ParserRequestImpl extends Object implements ParserRequest
  • Field Details

  • Constructor Details

  • Method Details

    • command

      public String command()
      Description copied from 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.
      Specified by:
      command in interface ParserRequest
      Returns:
      the command string
    • commandName

      public String commandName()
      Description copied from interface: ParserRequest
      Returns the Maven command name (ie "Maven"). This string is used in some invokers to complete error messages.
      Specified by:
      commandName in interface ParserRequest
      Returns:
      the command (human) name
    • logger

      public Logger logger()
      Description copied from interface: ParserRequest
      Returns the logger to be used during the parsing process.
      Specified by:
      logger in interface ParserRequest
      Returns:
      the logger instance
    • messageBuilderFactory

      public MessageBuilderFactory messageBuilderFactory()
      Description copied from interface: ParserRequest
      Returns the factory for creating message builders.
      Specified by:
      messageBuilderFactory in interface ParserRequest
      Returns:
      the message builder factory
    • args

      public List<String> args()
      Description copied from interface: ParserRequest
      Returns the command-line arguments to be parsed.
      Specified by:
      args in interface ParserRequest
      Returns:
      a list of argument strings
    • lookup

      public Lookup lookup()
      Description copied from interface: ParserRequest
      Per-request Lookup for customization.
      Specified by:
      lookup in interface ParserRequest
      Returns:
      a lookup possibly with custom components
    • cwd

      public Path cwd()
      Description copied from interface: ParserRequest
      Returns the current working directory for the Maven execution. If not explicitly set, this value will be detected during parsing.
      Specified by:
      cwd in interface ParserRequest
      Returns:
      the current working directory path, or null if not set
    • mavenHome

      public Path mavenHome()
      Description copied from interface: ParserRequest
      Returns the Maven home directory. If not explicitly set, this value will be detected during parsing.
      Specified by:
      mavenHome in interface ParserRequest
      Returns:
      the Maven home directory path, or null if not set
    • userHome

      public Path userHome()
      Description copied from interface: ParserRequest
      Returns the user's home directory. If not explicitly set, this value will be detected during parsing.
      Specified by:
      userHome in interface ParserRequest
      Returns:
      the user's home directory path, or null if not set
    • in

      public InputStream in()
      Description copied from interface: ParserRequest
      Returns the input stream to be used for the Maven execution. If not set, System.in will be used by default.
      Specified by:
      in in interface ParserRequest
      Returns:
      the input stream, or null if not set
    • out

      public OutputStream out()
      Description copied from interface: ParserRequest
      Returns the output stream to be used for the Maven execution. If not set, System.out will be used by default.
      Specified by:
      out in interface ParserRequest
      Returns:
      the output stream, or null if not set
    • err

      public OutputStream err()
      Description copied from interface: ParserRequest
      Returns the error stream to be used for the Maven execution. If not set, System.err will be used by default.
      Specified by:
      err in interface ParserRequest
      Returns:
      the error stream, or null if not set