final MarkedBuffer buffer = new MarkedBuffer(stdErr);
copiers.add(copier);
buffers.add(buffer);
copier.listener(new MyStreamCopier.Listener() {
@Override
public void reportProgress(long transferred, byte[] buf, int read) throws Exception {
synchronized (baos){
buffer.progress(baos.getBuffer(), baos.getLength());
}