public class ShellExecutor extends AbstractExecutor
Executor
interface. Use simple shell exec.VALID_PARAMETER_PATTERN
Constructor and Description |
---|
ShellExecutor() |
Modifier and Type | Method and Description |
---|---|
ExecResult |
exec(CommandLineDescriptor cmdDesc,
CmdParameters params)
Deprecated.
|
ExecResult |
exec(CommandLineDescriptor cmdDesc,
CmdParameters params,
EnvironmentDescriptor env)
No exception is thrown but the returned
ExecResult contains everything about the command execution,
including an optional exception. |
getParametersArray, getParametersString, isWindows
public ShellExecutor()
@Deprecated public ExecResult exec(CommandLineDescriptor cmdDesc, CmdParameters params)
Executor
ExecResult
contains everything about the command execution,
including an optional exception.cmdDesc
- Command to run. Cannot be null.params
- Parameters passed to the command. Cannot be null.public ExecResult exec(CommandLineDescriptor cmdDesc, CmdParameters params, EnvironmentDescriptor env)
Executor
ExecResult
contains everything about the command execution,
including an optional exception.cmdDesc
- Command to run. Cannot be null.params
- Parameters passed to the command. Cannot be null.env
- Environment context (variable and working directory)Copyright © 2015 Nuxeo SA. All rights reserved.