On the Wiki [1] I wrote how the change the locale during a build. Maybe you can do that with STDOUT/STDERR, too.
A look into the sources of <javac> showed that no redirection is supported (maybe that would forgotten in the manual :-) Jan [1] http://nagoya.apache.org/wiki/apachewiki.cgi?AntOddities > -----Original Message----- > From: Digambar, Shaligram (Consultant) > [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 12, 2004 3:09 PM > To: 'Ant Users List' > Subject: RE: How to redirect javac task errors to a separate file > > > Had ANT logged system.err at different level than system.out > it would have > been easier to redirect the error output to a separate file > and generate > better build reports. If its tricky as you've mentioned, we > need to find a > workaround. Has anyone already done this? > > Thanks, > Shaligram > > As I mentioned before, the default compilers are > called within the VM and do not provide a > comprehensive call interface. Ant has no control over > their output; it wouldn't be logged at all if Ant > didn't override System.out and System.err to go to its > own log stream. It might be possible to re-override > System.err to log at ERROR level for the duration of > <javac>'s execute() method, but it could get tricky. > Again, I think the answer here is to implement output > redirection for <javac> provided an externally called > compiler type is used, but it'll be awhile. > > -Matt > > __________________________________ > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing online. > http://taxes.yahoo.com/filing.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ----------------------------------------- > This email may contain confidential and privileged material > for the sole use of the intended recipient(s). Any review, > use, retention, distribution or disclosure by others is > strictly prohibited. If you are not the intended recipient > (or authorized to receive for the recipient), please contact > the sender by reply email and delete all copies of this > message. Also, email is susceptible to data corruption, > interception, tampering, unauthorized amendment and viruses. > We only send and receive emails on the basis that we are not > liable for any such corruption, interception, tampering, > amendment or viruses or any consequence thereof. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >