Return-Path: Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 8325 invoked by uid 500); 14 Aug 2003 11:57:42 -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 8181 invoked from network); 14 Aug 2003 11:57:40 -0000 Received: from gate.corvil.net (HELO corvil.com) (213.94.219.177) by daedalus.apache.org with SMTP; 14 Aug 2003 11:57:40 -0000 Received: from preilly.local.corvil.com (preilly.local.corvil.com [172.18.1.173]) by corvil.com (8.12.9/8.12.5) with ESMTP id h7EBvd13019617 for ; Thu, 14 Aug 2003 12:57:39 +0100 (IST) (envelope-from peter.reilly@corvil.com) From: peter reilly Organization: corvil To: Ant Developers List Subject: Re: [new tasks] presetdef and macrodef Date: Thu, 14 Aug 2003 13:04:41 +0100 User-Agent: KMail/1.5 References: <200308141051.11605.peter.reilly@corvil.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308141304.41446.peter.reilly@corvil.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thursday 14 August 2003 12:28, Knut Wannheden wrote: > > A question: is a special task in the sense that it seems to be > able to suppress Ant from resolving properties for it when the task is > evaluated? Is there a mechanism which allows this to be done in custom > tasks as well? The trick is that MacroDef uses TaskContainer in a nested element. This is given UnknownElements before they are executed. MacroInstance then copies and walks the tree of unknownelements, modifing attribute values and text values. Peter --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org