com.atlassian.bamboo.testutils
Class CommandExecutor
java.lang.Object
com.atlassian.bamboo.testutils.CommandExecutor
public class CommandExecutor
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandExecutor
public CommandExecutor()
startDaemon
public ProcessDescriptor startDaemon(java.lang.String[] command,
long timeout)
throws java.io.IOException
- Throws:
java.io.IOException
stopDaemon
public void stopDaemon(ProcessDescriptor processDescriptor)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
exec
public ProcessDescriptor exec(java.lang.String[] command,
long timeout)
throws java.io.IOException,
java.util.concurrent.TimeoutException,
java.lang.InterruptedException
- Throws:
java.io.IOException
java.util.concurrent.TimeoutException
java.lang.InterruptedException
exec
public ProcessDescriptor exec(java.lang.String[] command)
throws java.util.concurrent.TimeoutException,
java.io.IOException,
java.lang.InterruptedException
- Throws:
java.util.concurrent.TimeoutException
java.io.IOException
java.lang.InterruptedException
exec
public ProcessDescriptor exec(java.lang.String command)
throws java.util.concurrent.TimeoutException,
java.io.IOException,
java.lang.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:
java.util.concurrent.TimeoutException
java.io.IOException
java.lang.InterruptedException
Copyright © 2011 Atlassian. All Rights Reserved.