Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 71889 invoked from network); 24 Jun 2008 16:58:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jun 2008 16:58:55 -0000 Received: (qmail 99720 invoked by uid 500); 24 Jun 2008 16:58:57 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 99676 invoked by uid 500); 24 Jun 2008 16:58:57 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 99667 invoked by uid 99); 24 Jun 2008 16:58:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 09:58:57 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 16:58:15 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id E6391234C145; Tue, 24 Jun 2008 09:58:04 -0700 (PDT) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 45271] New: length task, each option leaves out empty and non-existent files X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core tasks X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: patricia_shan8@hotmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 24 Jun 2008 09:58:04 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=45271 Summary: length task, each option leaves out empty and non- existent files Product: Ant Version: 1.7.0 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Core tasks AssignedTo: notifications@ant.apache.org ReportedBy: patricia_shan8@hotmail.com The length task with parameter "mode=each" lists info only for files that exist and are not empty. Example: length empty.txt length notempty.txt length DoesNotExist length "each" length "all" Output is: [echo] length empty.txt [length] 0 [echo] length notempty.txt [length] 7 [echo] length DoesNotExist [length] c:\DoesNotExist does not exist [length] 0 [echo] length "each" [length] c:\notempty.txt : 7 [echo] length "all" [length] 7 -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.