From dev-return-86847-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Sat Mar 3 13:09:46 2012 Return-Path: X-Original-To: apmail-ant-dev-archive@www.apache.org Delivered-To: apmail-ant-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5DCF19354 for ; Sat, 3 Mar 2012 13:09:46 +0000 (UTC) Received: (qmail 11991 invoked by uid 500); 3 Mar 2012 13:09:46 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 11891 invoked by uid 500); 3 Mar 2012 13:09:45 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 11878 invoked by uid 99); 3 Mar 2012 13:09:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2012 13:09:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jarekczek@poczta.onet.pl designates 213.180.142.146 as permitted sender) Received: from [213.180.142.146] (HELO smtpo15.poczta.onet.pl) (213.180.142.146) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2012 13:09:38 +0000 Received: from [192.168.17.5] (cj.sukcesnet.pl [95.215.234.32]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jarekczek@poczta.onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id D85EA200D8E4F for ; Sat, 3 Mar 2012 14:09:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.onet.pl; s=2011; t=1330780157; bh=9U3xHqjXZ22aS0Q4wsqFr7lz0Iqi0w+TVrs+J+vzBLE=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=U+/pIDnxS5/xjiqkA/O9EhBwCFwyvRY6ZxPmcHlyK/M5vcblPKuEHD3CDc5dBP7Rs VixhDFxDA6fhS1F9+jaqa1nz9NZMjMra0l01vmP9je9vh9FwAyCXCwB3xT0g4Jybod Qf+0uUGsPAcTWcYIk5O5f2/QybcfMzGx0KHWqZJw= Message-ID: <4F52183D.8060508@poczta.onet.pl> Date: Sat, 03 Mar 2012 14:10:21 +0100 From: Jarek Czekalski User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: dev@ant.apache.org Subject: fileset not iterable Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all When I was scripting in ant, I could write for (f: fs) where fs is a FileSet. But after switching to ant tasks in java, it is no longer available. I get a compile error: foreach not applicable to expression type I guess it's pretty easy to just write FileSet implements Iterable, but have not tried it in the source. If it is really easy, then I suggest adding it to all methods returning iterator(). Regards Jarek --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org