Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 60374 invoked from network); 3 May 2010 03:54:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 May 2010 03:54:48 -0000 Received: (qmail 41095 invoked by uid 500); 3 May 2010 03:54:47 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 40749 invoked by uid 500); 3 May 2010 03:54:45 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 40737 invoked by uid 99); 3 May 2010 03:54:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 03:54:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=AWL,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 03:54:40 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 242FC28985D1 for ; Mon, 3 May 2010 05:54:19 +0200 (CEST) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 55rnGQrctGP9 for ; Mon, 3 May 2010 05:54:18 +0200 (CEST) Received: by samaflost.de (Postfix, from userid 1000) id AF11128985D2; Mon, 3 May 2010 05:54:17 +0200 (CEST) From: Stefan Bodewig To: user@ant.apache.org Subject: Re: ANT 1.7.1 property evaluation References: X-Draft-From: ("nnfolder:mail.jakarta-ant-user" 67853) Date: Mon, 03 May 2010 05:54:16 +0200 In-Reply-To: (Shawn Castrianni's message of "Fri, 30 Apr 2010 12:25:35 -0500") Message-ID: <87fx29prmf.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On 2010-04-30, Shawn Castrianni wrote: > I have never needed to know the answer to this before, but: > Is it the custom ant task's responsibility to evaluate ant properties > if passed to them OR does ANT evaluate these before passing it to the > custom ant task? Ant evaluates properties for attributes but it is the task's responsibility to expand them for nested text of elements. In you case the values are given as nested text so the task must evaluate them explicitly. It would have been better if Ant had been handling attributes and nested text the same way but unfortunately we got it wrong ten years ago and now have to live with it in order to stay backwards compatible. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org