Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 61642 invoked from network); 11 Apr 2005 18:47:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Apr 2005 18:47:58 -0000 Received: (qmail 68918 invoked by uid 500); 11 Apr 2005 18:47:55 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 68882 invoked by uid 500); 11 Apr 2005 18:47:55 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 68867 invoked by uid 99); 11 Apr 2005 18:47:55 -0000 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,FORGED_YAHOO_RCVD X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web30908.mail.mud.yahoo.com (HELO web30908.mail.mud.yahoo.com) (68.142.200.161) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 11 Apr 2005 11:47:54 -0700 Received: (qmail 93206 invoked by uid 60001); 11 Apr 2005 18:47:52 -0000 Message-ID: <20050411184752.93204.qmail@web30908.mail.mud.yahoo.com> Received: from [65.247.233.95] by web30908.mail.mud.yahoo.com via HTTP; Mon, 11 Apr 2005 11:47:52 PDT Date: Mon, 11 Apr 2005 11:47:52 -0700 (PDT) From: Matt Benson Subject: Re: Suggested change to Move.java to check failonerror flag when unable to delete source file as part of move To: Ant Developers List In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --- 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 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