Package | Description |
---|---|
org.apache.commons.exec | |
org.apache.commons.exec.environment | |
org.apache.commons.exec.launcher |
Modifier and Type | Method and Description |
---|---|
CommandLine |
CommandLine.addArgument(java.lang.String argument)
Add a single argument.
|
CommandLine |
CommandLine.addArgument(java.lang.String argument,
boolean handleQuoting)
Add a single argument.
|
CommandLine |
CommandLine.addArguments(java.lang.String addArguments)
Add multiple arguments.
|
CommandLine |
CommandLine.addArguments(java.lang.String[] addArguments)
Add multiple arguments.
|
CommandLine |
CommandLine.addArguments(java.lang.String[] addArguments,
boolean handleQuoting)
Add multiple arguments.
|
CommandLine |
CommandLine.addArguments(java.lang.String addArguments,
boolean handleQuoting)
Add multiple arguments.
|
static CommandLine |
CommandLine.parse(java.lang.String line)
Create a command line from a string.
|
static CommandLine |
CommandLine.parse(java.lang.String line,
java.util.Map<java.lang.String,?> substitutionMap)
Create a command line from a string.
|
Modifier and Type | Method and Description |
---|---|
int |
Executor.execute(CommandLine command)
Methods for starting synchronous execution.
|
int |
DefaultExecutor.execute(CommandLine command) |
void |
Executor.execute(CommandLine command,
ExecuteResultHandler handler)
Methods for starting asynchronous execution.
|
void |
DefaultExecutor.execute(CommandLine command,
ExecuteResultHandler handler) |
int |
Executor.execute(CommandLine command,
java.util.Map<java.lang.String,java.lang.String> environment)
Methods for starting synchronous execution.
|
int |
DefaultExecutor.execute(CommandLine command,
java.util.Map<java.lang.String,java.lang.String> environment) |
void |
Executor.execute(CommandLine command,
java.util.Map<java.lang.String,java.lang.String> environment,
ExecuteResultHandler handler)
Methods for starting asynchronous execution.
|
void |
DefaultExecutor.execute(CommandLine command,
java.util.Map<java.lang.String,java.lang.String> environment,
ExecuteResultHandler handler) |
private int |
DefaultExecutor.executeInternal(CommandLine command,
java.util.Map<java.lang.String,java.lang.String> environment,
java.io.File dir,
ExecuteStreamHandler streams)
Execute an internal process.
|
protected java.lang.Process |
DefaultExecutor.launch(CommandLine command,
java.util.Map<java.lang.String,java.lang.String> env,
java.io.File dir)
Creates a process that runs a command.
|
Constructor and Description |
---|
CommandLine(CommandLine other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
protected CommandLine |
DefaultProcessingEnvironment.getProcEnvCommand()
Deprecated.
No longer needed
|
Modifier and Type | Method and Description |
---|---|
private java.io.File |
VmsCommandLauncher.createCommandFile(CommandLine cmd,
java.util.Map<java.lang.String,java.lang.String> env) |
java.lang.Process |
CommandLauncherImpl.exec(CommandLine cmd,
java.util.Map<java.lang.String,java.lang.String> env) |
java.lang.Process |
CommandLauncherProxy.exec(CommandLine cmd,
java.util.Map<java.lang.String,java.lang.String> env)
Launches the given command in a new process.
|
java.lang.Process |
CommandLauncher.exec(CommandLine cmd,
java.util.Map<java.lang.String,java.lang.String> env)
Launches the given command in a new process.
|
java.lang.Process |
VmsCommandLauncher.exec(CommandLine cmd,
java.util.Map<java.lang.String,java.lang.String> env)
Launches the given command in a new process.
|
abstract java.lang.Process |
CommandLauncherImpl.exec(CommandLine cmd,
java.util.Map<java.lang.String,java.lang.String> env,
java.io.File workingDir) |
java.lang.Process |
CommandLauncher.exec(CommandLine cmd,
java.util.Map<java.lang.String,java.lang.String> env,
java.io.File workingDir)
Launches the given command in a new process, in the given working
directory.
|
java.lang.Process |
OS2CommandLauncher.exec(CommandLine cmd,
java.util.Map<java.lang.String,java.lang.String> env,
java.io.File workingDir)
Launches the given command in a new process, in the given working
directory.
|
java.lang.Process |
VmsCommandLauncher.exec(CommandLine cmd,
java.util.Map<java.lang.String,java.lang.String> env,
java.io.File workingDir)
Launches the given command in a new process, in the given working
directory.
|
java.lang.Process |
WinNTCommandLauncher.exec(CommandLine cmd,
java.util.Map<java.lang.String,java.lang.String> env,
java.io.File workingDir)
Launches the given command in a new process, in the given working
directory.
|
java.lang.Process |
Java13CommandLauncher.exec(CommandLine cmd,
java.util.Map<java.lang.String,java.lang.String> env,
java.io.File workingDir)
Launches the given command in a new process, in the given working
directory
|