Process p = Runtime.getRuntime().exec(commandline);
new Thread(new StreamPumper(p.getInputStream())).start();
new Thread(new StreamPumper(p.getErrorStream())).start();
p.waitFor();
} catch (IOException e) {
throw new CruiseControlException("Problem trying to execute command line process", e);
} catch (InterruptedException e) {
throw new CruiseControlException("Problem trying to execute command line process", e);
}
}