# Uses of Class
org.apache.commons.exec.CommandLine

Packages that use CommandLine
Package
Description
org.apache.commons.exec
The main Apache Commons Exec package.
org.apache.commons.exec.environment
Queries the operating system environment.
org.apache.commons.exec.launcher
Operating system dependent command launchers are abstracted by the interface `CommandLauncher`.

- ## Uses of CommandLine in org.apache.commons.exec

  Methods in org.apache.commons.exec that return CommandLine
  Modifier and Type
  Method
  Description
  `CommandLine`
  CommandLine.`addArgument(String argument)`
  Add a single argument.
  `CommandLine`
  CommandLine.`addArgument(String argument, boolean handleQuoting)`
  Add a single argument.
  `CommandLine`
  CommandLine.`addArguments(String addArguments)`
  Add multiple arguments.
  `CommandLine`
  CommandLine.`addArguments(String[] addArguments)`
  Add multiple arguments.
  `CommandLine`
  CommandLine.`addArguments(String[] addArguments, boolean handleQuoting)`
  Add multiple arguments.
  `CommandLine`
  CommandLine.`addArguments(String addArguments, boolean handleQuoting)`
  Add multiple arguments.
  `static CommandLine`
  CommandLine.`parse(String line)`
  Create a command line from a string.
  `static CommandLine`
  CommandLine.`parse(String line, Map<String,?> substitutionMap)`
  Create a command line from a string.
  Methods in org.apache.commons.exec with parameters of type CommandLine
  Modifier and Type
  Method
  Description
  `int`
  DefaultExecutor.`execute(CommandLine command)`
  `int`
  DefaultExecutor.`execute(CommandLine command, Map<String,String> environment)`
  `void`
  DefaultExecutor.`execute(CommandLine command, Map<String,String> environment, ExecuteResultHandler handler)`
  `void`
  DefaultExecutor.`execute(CommandLine command, ExecuteResultHandler handler)`
  `int`
  Executor.`execute(CommandLine command)`
  Executes a command synchronously.
  `int`
  Executor.`execute(CommandLine command, Map<String,String> environment)`
  Executes a command synchronously.
  `void`
  Executor.`execute(CommandLine command, Map<String,String> environment, ExecuteResultHandler handler)`
  Executes a command asynchronously.
  `void`
  Executor.`execute(CommandLine command, ExecuteResultHandler handler)`
  Executes a command asynchronously.
  `protected Process`
  DefaultExecutor.`launch(CommandLine command, Map<String,String> env, File workingDirectory)`
  Creates a process that runs a command.
  Constructors in org.apache.commons.exec with parameters of type CommandLine
  Modifier
  Constructor
  Description
  ``
  `CommandLine(CommandLine other)`
  Copy constructor.

- ## Uses of CommandLine in org.apache.commons.exec.environment

  Methods in org.apache.commons.exec.environment that return CommandLine
  Modifier and Type
  Method
  Description
  `protected CommandLine`
  DefaultProcessingEnvironment.`getProcEnvCommand()`
  Deprecated.
  No longer needed.

- ## Uses of CommandLine in org.apache.commons.exec.launcher

  Methods in org.apache.commons.exec.launcher with parameters of type CommandLine
  Modifier and Type
  Method
  Description
  `Process`
  CommandLauncher.`exec(CommandLine commandLine, Map<String,String> env)`
  Executes the given command in a new process.
  `Process`
  CommandLauncher.`exec(CommandLine commandLine, Map<String,String> env, File workingDirectory)`
  Executes the given command in a new process, in the given working directory.
  `Process`
  CommandLauncherImpl.`exec(CommandLine cmd, Map<String,String> env)`
  `abstract Process`
  CommandLauncherImpl.`exec(CommandLine cmd, Map<String,String> env, File workingDir)`
  `Process`
  CommandLauncherProxy.`exec(CommandLine cmd, Map<String,String> env)`
  Launches the given command in a new process.
  `Process`
  Java13CommandLauncher.`exec(CommandLine cmd, Map<String,String> env, File workingDir)`
  Launches the given command in a new process, in the given working directory.
  `Process`
  OS2CommandLauncher.`exec(CommandLine cmd, Map<String,String> env, File workingDir)`
  Launches the given command in a new process, in the given working directory.
  `Process`
  VmsCommandLauncher.`exec(CommandLine cmd, Map<String,String> env)`
  Launches the given command in a new process.
  `Process`
  VmsCommandLauncher.`exec(CommandLine cmd, Map<String,String> env, File workingDir)`
  Launches the given command in a new process, in the given working directory.
  `Process`
  WinNTCommandLauncher.`exec(CommandLine cmd, Map<String,String> env, File workingDir)`
  Launches the given command in a new process, in the given working directory.