ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shorn Tolley" <shorn_tol...@hotmail.com>
Subject Re: How do I get rid of the "Compile failed..." message from Ant when the javac task reports erros?
Date Sat, 01 Jun 2002 20:22:36 GMT
So, it's not an effect of the javac task, but an effect of the way tasks
communicate with the main Ant engine?
(that is, task has problem, prints info about problem, throws exception to
Ant to let it know task failed, Ant prints info about exception thrown?)

Would it not be feasible to turn off _the reporting_ of the fact that the
exception was thrown?

I'm not saying all the time (I have found the automatic navigation straight
to the build file to be helpful on plenty of occasions), just when you're
pretty sure you've got everything sweet on the Ant configuration front.
Say for instance, when you specify the -emacs output mode?

This is not a whinge (much), I would actually be prepared to go and play
with the code to make this happen, it's been bugging me for aaaaages.

Shorn

----- Original Message -----
From: "Erik Hatcher" <jakarta-ant@ehatchersolutions.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Saturday, June 01, 2002 8:23 PM
Subject: Re: How do I get rid of the "Compile failed..." message from Ant
when the javac task reports erros?


> If a task throws a BuildException from its execute method (or any
exception
> for that matter) it is reported along with the line number in the build
file
> that caused the error.  It can be useful to navigate directly to the build
> file in the case of an error as it could have been caused by something
> incorrectly specified there.  It just happens to do the same thing after
> compiling source code too.
>
> If you're using IDEA, why do you have compile errors in the first place?!
> :)  It shows you in the side bar with red when there are compilation
errors.
>
> Anyway, there really is no good way to avoid this as it is using the same
> mechanism for all tasks, and is not something <javac> is doing
explicitly -
> its simply notifying the engine that the build should fail.
>
>     Erik



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message