Package com.atlassian.bamboo.testutils
Class CommandExecutorHelper
java.lang.Object
com.atlassian.bamboo.testutils.CommandExecutorHelper
-
Method Summary
Modifier and TypeMethodDescriptionexecuteCommand(String[] command, @Nullable File workingDirectory, CommandExecutor commandExecutor, String message, Duration timeout) Executes commandexecuteCommandWithOsDefaultShell(String[] command, CommandExecutor commandExecutor, String message, Duration timeout) Executes commandexecuteCommandWithOsDefaultShell(String command, CommandExecutor commandExecutor, String message, Duration timeout) Executes command
-
Method Details
-
executeCommandWithOsDefaultShell
public static List<String> executeCommandWithOsDefaultShell(String[] command, CommandExecutor commandExecutor, String message, Duration timeout) throws IOException, TimeoutException, InterruptedException Executes command- Returns:
- output lines
- Throws:
IOExceptionTimeoutExceptionInterruptedException
-
executeCommandWithOsDefaultShell
public static List<String> executeCommandWithOsDefaultShell(String command, CommandExecutor commandExecutor, String message, Duration timeout) throws IOException, TimeoutException, InterruptedException Executes command- Returns:
- output lines
- Throws:
IOExceptionTimeoutExceptionInterruptedException
-
executeCommand
public static List<String> executeCommand(String[] command, @Nullable @Nullable File workingDirectory, CommandExecutor commandExecutor, String message, Duration timeout) throws IOException, TimeoutException, InterruptedException Executes command- Returns:
- output lines
- Throws:
IOExceptionTimeoutExceptionInterruptedException
-