Package com.atlassian.bamboo.testutils
Class CommandExecutor
java.lang.Object
com.atlassian.bamboo.testutils.CommandExecutor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionA naive exec method that splits the passed command at each space.startDaemon
(String[] command, Duration timeout) void
stopDaemon
(ProcessDescriptor processDescriptor)
-
Constructor Details
-
CommandExecutor
public CommandExecutor()
-
-
Method Details
-
startDaemon
- Throws:
IOException
-
stopDaemon
- Throws:
InterruptedException
-
exec
public ProcessDescriptor exec(String[] command, @Nullable @Nullable File workingDirectory, Duration timeout) throws IOException, TimeoutException, InterruptedException -
exec
public ProcessDescriptor exec(String[] command) throws TimeoutException, IOException, InterruptedException -
exec
public ProcessDescriptor exec(String command) throws TimeoutException, IOException, InterruptedException A naive exec method that splits the passed command at each space. Thus will break if any single value is a space- Parameters:
command
-- Throws:
TimeoutException
IOException
InterruptedException
-