Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 23956 invoked from network); 21 Feb 2007 18:20:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2007 18:20:06 -0000 Received: (qmail 33234 invoked by uid 500); 21 Feb 2007 18:20:13 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 33207 invoked by uid 500); 21 Feb 2007 18:20:13 -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 33196 invoked by uid 99); 21 Feb 2007 18:20:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2007 10:20:13 -0800 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=HTML_MESSAGE,HTML_TAG_EXIST_TBODY,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of vvishnoi@bea.com designates 66.248.192.22 as permitted sender) Received: from [66.248.192.22] (HELO usremg02.bea.com) (66.248.192.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2007 10:20:02 -0800 Received: from usremr02.bea.com (mailrelay.bea.com [10.160.29.92]) by usremg02.bea.com (Switch-3.2.2/Switch-3.2.2) with ESMTP id l1LIJe8r021691 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 21 Feb 2007 10:19:40 -0800 Received: from repbex01.amer.bea.com (repbex01.bea.com [10.160.26.98]) by usremr02.bea.com (Switch-3.2.2/Switch-3.2.2) with ESMTP id l1LIJL8V001988 for ; Wed, 21 Feb 2007 10:19:39 -0800 Received: from [127.0.0.1] ([10.43.242.11]) by repbex01.amer.bea.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Feb 2007 10:18:01 -0800 Message-ID: <45DC8CD2.9000502@bea.com> Date: Wed, 21 Feb 2007 13:17:54 -0500 From: Vishal Vishnoi User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: dev@ant.apache.org Subject: [Fwd: how to get the configured nested tasks from Macrodef?] Content-Type: multipart/alternative; boundary="------------050508040102080908040800" X-OriginalArrivalTime: 21 Feb 2007 18:18:02.0034 (UTC) FILETIME=[9F81D920:01C755E4] X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.2.21.90434 X-Virus-Checked: Checked by ClamAV on apache.org --------------050508040102080908040800 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Can someone from Ant's dev team respond to this. Thanks, --Vishal -------- Original Message -------- Subject: how to get the configured nested tasks from Macrodef? Date: Mon, 19 Feb 2007 16:19:15 +0800 From: Xu Xin Reply-To: Ant Users List To: user@ant.apache.org 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 _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --------------050508040102080908040800--