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(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.
|
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,
Map<String,String> environment)
Methods for starting synchronous execution.
|
int |
DefaultExecutor.execute(CommandLine command,
Map<String,String> environment) |
void |
Executor.execute(CommandLine command,
Map<String,String> environment,
ExecuteResultHandler handler)
Methods for starting asynchronous execution.
|
void |
DefaultExecutor.execute(CommandLine command,
Map<String,String> environment,
ExecuteResultHandler handler) |
protected Process |
DefaultExecutor.launch(CommandLine command,
Map<String,String> env,
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 |
---|---|
Process |
VmsCommandLauncher.exec(CommandLine cmd,
Map<String,String> env)
Launches the given command in a new process.
|
Process |
CommandLauncherImpl.exec(CommandLine cmd,
Map<String,String> env) |
Process |
CommandLauncherProxy.exec(CommandLine cmd,
Map<String,String> env)
Launches the given command in a new process.
|
Process |
CommandLauncher.exec(CommandLine cmd,
Map<String,String> env)
Launches the given command in a new process.
|
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,
File workingDir)
Launches the given command in a new process, in the given working
directory.
|
abstract Process |
CommandLauncherImpl.exec(CommandLine cmd,
Map<String,String> env,
File workingDir) |
Process |
CommandLauncher.exec(CommandLine cmd,
Map<String,String> env,
File workingDir)
Launches the given command in a new process, in the given working
directory.
|
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 |
WinNTCommandLauncher.exec(CommandLine cmd,
Map<String,String> env,
File workingDir)
Launches the given command in a new process, in the given working
directory.
|
Copyright © 2021 The Apache Software Foundation. All rights reserved.