Uses of Class
org.apache.commons.exec.CommandLine
Package
Description
The main Apache Commons Exec package.
Queries the operating system environment.
Operating system dependent command launchers are abstracted by the interface
CommandLauncher
.-
Uses of CommandLine in org.apache.commons.exec
Modifier and TypeMethodDescriptionCommandLine.addArgument
(String argument) Add a single argument.CommandLine.addArgument
(String argument, boolean handleQuoting) Add a single argument.CommandLine.addArguments
(String addArguments) Add multiple arguments.CommandLine.addArguments
(String[] addArguments) Add multiple arguments.CommandLine.addArguments
(String[] addArguments, boolean handleQuoting) Add multiple arguments.CommandLine.addArguments
(String addArguments, boolean handleQuoting) Add multiple arguments.static CommandLine
Create a command line from a string.static CommandLine
Create a command line from a string.Modifier and TypeMethodDescriptionint
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
Creates a process that runs a command. -
Uses of CommandLine in org.apache.commons.exec.environment
Modifier and TypeMethodDescriptionprotected CommandLine
DefaultProcessingEnvironment.getProcEnvCommand()
Deprecated.No longer needed. -
Uses of CommandLine in org.apache.commons.exec.launcher
Modifier and TypeMethodDescriptionCommandLauncher.exec
(CommandLine commandLine, Map<String, String> env) Executes the given command in a new process.Executes the given command in a new process, in the given working directory.CommandLauncherImpl.exec
(CommandLine cmd, Map<String, String> env) abstract Process
CommandLauncherProxy.exec
(CommandLine cmd, Map<String, String> env) Launches the given command in a new process.Launches the given command in a new process, in the given working directory.Launches the given command in a new process, in the given working directory.VmsCommandLauncher.exec
(CommandLine cmd, Map<String, String> env) Launches the given command in a new process.Launches the given command in a new process, in the given working directory.Launches the given command in a new process, in the given working directory.