ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject Re: javac compile errors logs with priority="warn"
Date Tue, 28 Nov 2006 13:34:06 GMT
On 11/27/06, John Norvell <> wrote:
> > The javac task seems to log compile errors using the "warn" logging
> > priority level with echo.
> Does anyone know if this behavior is a bug or intentional?

Haven't checked the code, but the levels correspond to Ant's log
levels. All output from Javac is grabbed from stdout and stderr, and
it's very possible that stderr is mapped to Ant's warn level, since
for example both warnings and errors are logged to stderr by Javac. So
yes, my guess is that it's intentional.

You can always make your XSL more complex by looking for the
"Filename:#: Warning: " prefix to separate messages in different
classes (there's also the unchecked class of warnings with 1.5+). I
did that a while back to have Javac messages in several colors in the
CruiseControl notification email. Different job now though, so not
easy get to that. --DD

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

View raw message