ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject Re: Suggested change to to check failonerror flag when unable to delete source file as part of move
Date Mon, 11 Apr 2005 18:47:52 GMT
--- wrote:
> I have some ant scripts that manage archiving files
> between NT servers in
> our production environment.  A while back the move
> task began failing with
> an error related to deleting the source file (see
> below)
>      [move] Warning: Unable to delete file
> \\server\foo\bar.log
> Under ant 162 when this happens the move task stops
> processing the list of
> files to move  - but the ant script does not fail.
Right, the failonerror is being honored but not how
you think.  The error is thrown as soon as something
goes wrong; the failonerror flag is checked at a
higher level in the code so that the code is not
littered with failonerror checks.  A possible
workaround might be using ant-contrib's <for> task to
move your files one by one.


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

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

View raw message