public class CommandExecutor extends Object
Constructor and Description |
---|
CommandExecutor() |
Modifier and Type | Method and Description |
---|---|
ProcessDescriptor |
exec(String command)
A naive exec method that splits the passed command at each space.
|
ProcessDescriptor |
exec(String[] command) |
ProcessDescriptor |
exec(String[] command,
File workingDirectory,
Duration timeout) |
ProcessDescriptor |
startDaemon(String[] command,
Duration timeout) |
void |
stopDaemon(ProcessDescriptor processDescriptor) |
public ProcessDescriptor startDaemon(String[] command, Duration timeout) throws IOException
IOException
public void stopDaemon(ProcessDescriptor processDescriptor) throws InterruptedException
InterruptedException
public ProcessDescriptor exec(String[] command, @Nullable File workingDirectory, Duration timeout) throws IOException, TimeoutException, InterruptedException
public ProcessDescriptor exec(String[] command) throws TimeoutException, IOException, InterruptedException
public ProcessDescriptor exec(String command) throws TimeoutException, IOException, InterruptedException
command
- TimeoutException
IOException
InterruptedException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.