From dev-return-63934-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Fri Feb 18 21:29:36 2005 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 23254 invoked from network); 18 Feb 2005 21:29:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Feb 2005 21:29:35 -0000 Received: (qmail 23595 invoked by uid 500); 18 Feb 2005 21:29:34 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 23558 invoked by uid 500); 18 Feb 2005 21:29:34 -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 23545 invoked by uid 99); 18 Feb 2005 21:29:34 -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 web30905.mail.mud.yahoo.com (HELO web30905.mail.mud.yahoo.com) (68.142.200.158) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 18 Feb 2005 13:29:32 -0800 Received: (qmail 91777 invoked by uid 60001); 18 Feb 2005 21:29:27 -0000 Message-ID: <20050218212927.91775.qmail@web30905.mail.mud.yahoo.com> Received: from [65.247.234.236] by web30905.mail.mud.yahoo.com via HTTP; Fri, 18 Feb 2005 13:29:26 PST Date: Fri, 18 Feb 2005 13:29:26 -0800 (PST) From: Matt Benson Subject: macro/for fun To: Ant Developers List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Anyone from ant-contrib want to add a caveat to the documentation of the for task? Being based on macrodefs, for is the only place I know of where this comes into play: since the @ character is escaped with another (@@) in macrodefs/for, nested for loops must double-escape the @ character (@@@@). This applies to for loops appearing in macros as well. Looks like the rule is an additional two '@'s per nesting level. So no nesting = @@, one level deep = @@@@, and two levels deep = @@@@@@ . -Matt __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org