Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 50AF39B0D for ; Mon, 5 Mar 2012 08:07:08 +0000 (UTC) Received: (qmail 73627 invoked by uid 500); 5 Mar 2012 08:07:08 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 73555 invoked by uid 500); 5 Mar 2012 08:07:07 -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 73515 invoked by uid 99); 5 Mar 2012 08:07:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 08:07:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 08:07:05 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 274C529DA; Mon, 5 Mar 2012 08:06:45 +0000 (UTC) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 52829] New: implement Iterable interface in FileSet and others Date: Mon, 05 Mar 2012 08:06:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jarekczek@poczta.onet.pl X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: 1.9.0 X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=52829 Bug #: 52829 Summary: implement Iterable interface in FileSet and others Product: Ant Version: unspecified Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: Core AssignedTo: notifications@ant.apache.org ReportedBy: jarekczek@poczta.onet.pl Classification: Unclassified While script task is able to use the following syntax: for (f: fs) it is not possible for custom tasks written in java. Since a switch to Java5 all classes implementing iterator() should be declared as "implements Iterable". See the relevant java documentation: http://docs.oracle.com/javase/specs/jls/se5.0/html/statements.html#14.14.2 The idea is on the mailing list: http://mail-archives.apache.org/mod_mbox/ant-dev/201203.mbox/%3CCAE9L6G3-uLwA2EQV_mbdXtnZs_PYb_UMLB5iEX71N%2BqRb1C86g%40mail.gmail.com%3E and was accepted by Matt Benson. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.