Interface CommandLineFactory

All Known Implementing Classes:
DefaultCommandLineFactory

public interface CommandLineFactory
Create a command line for execution. Componentised to allow mocking.
Author:
Brett Porter
  • Method Summary

    Modifier and Type
    Method
    Description
    org.codehaus.plexus.util.cli.Commandline
    Create a command line object with default environment for the given executable.
  • Method Details

    • createCommandLine

      org.codehaus.plexus.util.cli.Commandline createCommandLine(String executable) throws MavenExecutorException
      Create a command line object with default environment for the given executable.
      Parameters:
      executable - the executable
      Returns:
      the command line
      Throws:
      MavenExecutorException - if there was a problem creating the command line