public class

CommandExecutor

extends Object
java.lang.Object
   ↳ com.atlassian.bamboo.testutils.CommandExecutor

Summary

Public Constructors
CommandExecutor()
Public Methods
ProcessDescriptor exec(String command)
A naive exec method that splits the passed command at each space.
ProcessDescriptor exec(String[] command)
ProcessDescriptor exec(String[] command, long timeout)
ProcessDescriptor startDaemon(String[] command, long timeout)
void stopDaemon(ProcessDescriptor processDescriptor)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CommandExecutor ()

Public Methods

public ProcessDescriptor exec (String command)

A naive exec method that splits the passed command at each space. Thus will break if any single value is a space

Throws
TimeoutException
IOException
InterruptedException
IOException
TimeoutException

public ProcessDescriptor exec (String[] command, long timeout)

public ProcessDescriptor startDaemon (String[] command, long timeout)

Throws
IOException

public void stopDaemon (ProcessDescriptor processDescriptor)