ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin>
Subject Redirect output of Javac task
Date Wed, 14 Sep 2005 06:54:59 GMT

I'm using the Javac task to compile Java sources programmatically. If 
there is an compile error, the Javac tasks (more specific the compiler) prints it's error to the console 

Currently, I'm setting System.err to a new PrintStream just before I 
call Javac.execute(). After that call, I restore the old stream. I think 
this solution is not perfect, at least it is not thread safe. But I 
found no other solution. Does anybody know a better way to bar the 
compiler from printing to the console?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message