Grokbase Groups Ant user May 2009
Hello All!

I am trying to capture ALL of the output that comes when I am running my
build using the Ant API. I have associated a DefaultLogger with the ant
project, but that seems to miss a lot of the output from javac errors
and warnings. Any ideas how I can do this? I have tried to look into
using DemuxOutputStream but I must not be doing it right, because it is
still not being written into my log file.

This is what I had used before:

System.setOut(new PrintStream(new DemuxOutputStream(antproject,

System.setErr(new PrintStream(new DemuxOutputStream(antproject, true)));

This does at least keep it from all going to the file, but my
understanding is that DemuxOutputStream should redirect the output to
the antproject, which would then log it with my default logger..but its
not working like that. Any ideas?

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
postedMay 14, '09 at 8:01p
activeMay 14, '09 at 8:01p

1 user in discussion

Cole, Derek E: 1 post



site design / logo © 2018 Grokbase