ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WebServices Development <>
Subject RE: Ant javac task - error doesn't fail the build
Date Sat, 03 May 2014 11:55:58 GMT
The line that I had included in my initial question ( copied below again for reference ) -
the error is generated by javac task - it is not just me saying "it is an error because the
file size is zero". So, shouldn't the failonerror be triggered in that situation, by ant?

558	4/28/14 1:09 PM		EXEC	    [javac] error: error reading /view/dev_view/vob/comp/project/WebContent/WEB-INF/lib/somejar.jar;
zip file is empty


-----Original Message-----
From: Andreas Krey [] 
Sent: Saturday, May 03, 2014 1:46 AM
To: Ant Users List
Subject: Re: UNS: RE: Ant javac task - error doesn't fail the build

On Fri, 02 May 2014 11:05:51 +0000, WebServices Development wrote:
> But with this one, I don't get the build failure,

Possiby because this is not really an error. If a zip file you specified is empty, then it
is empty. If that does not cause any required classes to be missed, that is not a compilation

> but it doesn't compile any java files either.

With this it might be a bug in the actual compiler you are using.
ant can only fail if the compiler returns failure.


"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800

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

This email transmission and any accompanying attachments may contain CSX privileged and confidential
information intended only for the use of the intended addressee. Any dissemination, distribution,
copying or action taken in reliance on the contents of this email by anyone other than the
intended recipient is strictly prohibited. If you have received this email in error please
immediately delete it and notify sender at the above CSX email address. Sender and CSX accept
no liability for any damage caused directly or indirectly by receipt of this email.

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

View raw message