ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Schwaebli <>
Subject Re: How to silence javac task?
Date Wed, 16 Aug 2006 14:05:44 GMT
It wouldn't help here because javac.exe writes to error stream both warnings and errors. javac.exe
should be quiet regarding warnings if I say so (nowarn=true), but not regarding errors. Thats
the problem.

James Abley <> wrote:
  I run 1.6.5 and haven't looked in SVN to see if it's on the roadmap, but 
would enhancing to support I/O redirectors [1] be of any use here?




Dominique Devienne wrote:
>> So 2. and 3. are _always_ logged irrespective of used loglevel
>> it's like using System.out and setloglevel has no impact.
> No true ;-) log without an explicit log level uses INFO level, so
> setting log level to WARN hides these messages, just like when running
> Ant in quiet mode (-q).
> The Javac messages are read by the stream pumper threads, and
> forwarded to the default logger. You need to replace the default
> logger with a custom one that filters out some messages and not
> others. Possible, but requires programming... --DD
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message