//CommandLineUtils.StringStreamConsumer consumer = new CommandLineUtils.StringStreamConsumer();
Writer writer = new FileWriter( output );
StreamConsumer consumer = new WriterStreamConsumer( writer );
int exitCode = CommandLineUtils.executeCommandLine( cl, consumer, consumer );
writer.flush();