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)
No exception is thrown but the returned
ExecResult contains everything about the command execution,
including an optional exception. |
getParametersArray, getParametersString, isWindows
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.Copyright © 2015 Nuxeo SA. All rights reserved.