ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Suggested change to Move.java to check failonerror flag when unable to delete source file as part of move
Date Mon, 11 Apr 2005 18:47:52 GMT
--- GBartlett@harland.net wrote:
[SNIP]
> 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.

-Matt


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message