Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 15437 invoked from network); 19 Feb 2007 11:34:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2007 11:34:27 -0000 Received: (qmail 76644 invoked by uid 500); 19 Feb 2007 11:34:28 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 76504 invoked by uid 500); 19 Feb 2007 11:34:28 -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 69963 invoked by uid 99); 19 Feb 2007 08:19:48 -0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of anfernee.xu@gmail.com designates 64.233.182.189 as permitted sender) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=l1UWrk0PtQmRLiX0DOkmasAnkm5GVXeQkb8p/UmcUKACCAitFwklNZ5E+D4PydAXpwvpAfPp4lFtO8oXUxyLVUI864x8Om4bDE35VHEOVP2YA4KtqrWqh0ytFyiZQpaklFs8oMB9Az3YHfLo0B8zHMOrSlj98R2DxtpdJgOqhdw= Message-ID: <71e105540702190019t6d8034yc8c961b649e1befe@mail.gmail.com> Date: Mon, 19 Feb 2007 16:19:15 +0800 From: "Xu Xin" To: user@ant.apache.org Subject: how to get the configured nested tasks from Macrodef? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_31789_12154708.1171873155867" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_31789_12154708.1171873155867 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hellow everyone, I am working with ANT 1.6.5, have a question for MacroDef: how can I get the configured nested tasks from ? suppose I have the following macrodef template, and I have a following target: what I want is that I have a "detecting" code to search for the occurrence of a particular macro and get the well configured (element/attribute have been already substituted) nested task, so the above example, I need to the get the identical tasks from "test" target: I looked at the MacroInstance, it seems like all element/attribute substitution're performed when we actually run it. Is it possible I can still get the nested configured tasks from MacroInstance without running it? One more question: If I can get the configured tasks from marodef, suppose I will change something against them, will the changes be persisted cross multiple macro invocation? Now, MacroInstance will likely do a copy everytime it runs. -- anfernee ------=_Part_31789_12154708.1171873155867--