Package com.atlassian.bamboo.testutils
Class CommandExecutorHelper
- java.lang.Object
-
- com.atlassian.bamboo.testutils.CommandExecutorHelper
-
public class CommandExecutorHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>
executeCommand(String[] command, @Nullable File workingDirectory, CommandExecutor commandExecutor, String message, Duration timeout)
Executes commandstatic List<String>
executeCommandWithOsDefaultShell(String[] command, CommandExecutor commandExecutor, String message, Duration timeout)
Executes commandstatic List<String>
executeCommandWithOsDefaultShell(String command, CommandExecutor commandExecutor, String message, Duration timeout)
Executes command
-
-
-
Method Detail
-
executeCommandWithOsDefaultShell
public static List<String> executeCommandWithOsDefaultShell(String[] command, CommandExecutor commandExecutor, String message, Duration timeout) throws IOException, TimeoutException, InterruptedException
Executes command- Returns:
- output lines
- Throws:
IOException
TimeoutException
InterruptedException
-
executeCommandWithOsDefaultShell
public static List<String> executeCommandWithOsDefaultShell(String command, CommandExecutor commandExecutor, String message, Duration timeout) throws IOException, TimeoutException, InterruptedException
Executes command- Returns:
- output lines
- Throws:
IOException
TimeoutException
InterruptedException
-
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:
IOException
TimeoutException
InterruptedException
-
-