public interface CommandExecutor
Modifier and Type | Method and Description |
---|---|
Object |
execute(Shell shell,
Object... args)
Execute a pre-processed command-line.
|
Object |
execute(Shell shell,
String line)
Execute a command-line, parsing out valid recognized syntax.
|
Object |
execute(Shell shell,
String command,
Object[] args)
Execute command name/path with the given arguments.
|
Object execute(Shell shell, String line) throws Exception
shell
- The executing shell.line
- Raw command-line to parse and execute.Exception
- Command-line execution failed.Object execute(Shell shell, String command, Object[] args) throws Exception
shell
- The executing shell.command
- Name of the command/path to execute.args
- Command arguments.Exception
- Command-line execution failed.Object execute(Shell shell, Object... args) throws Exception
shell
- The executing shell.args
- Command arguments, first argument is expected to be the command/path to execute.Exception
- Command-line execution failed.Copyright © 2008-2013 Sonatype. All Rights Reserved.