Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 75099 invoked from network); 8 Nov 2001 07:38:11 -0000 Received: from unknown (HELO osaka.betaversion.org) (192.18.49.133) by daedalus.apache.org with SMTP; 8 Nov 2001 07:38:11 -0000 Received: (qmail 3679 invoked from network); 8 Nov 2001 07:40:50 -0000 Received: from nagoya.betaversion.org (192.18.49.131) by osaka.betaversion.org with SMTP; 8 Nov 2001 07:40:50 -0000 Received: (qmail 22201 invoked by uid 97); 8 Nov 2001 07:38:14 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 22185 invoked by uid 97); 8 Nov 2001 07:38:14 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 22174 invoked from network); 8 Nov 2001 07:38:13 -0000 X-Authentication-Warning: bodewig.bost.de: bodewig set sender to bodewig@apache.org using -f To: ant-user@jakarta.apache.org Subject: Re: accessing attribute values not in the containing target References: <200111072302.fA7N2do03659@edoc5-pc.East.Sun.COM> From: Stefan Bodewig Date: 08 Nov 2001 08:34:19 +0100 In-Reply-To: Ed.Mooney@Sun.COM's message of "Wed, 7 Nov 2001 18:02:39 -0500 (EST)" Message-ID: Lines: 16 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.4 (Civil Service) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, 7 Nov 2001, Ed Mooney wrote: > Debugging indicates that while Ant calls the constructor for all > nested elements during parsing, it calls attribute setter methods > only for nested elements in the current target. It calls attribute setters before the task gets executed - so for all elements that are tasks (or nested into tasks) that have been run before your current task as well as your current task, they have been called - for all others, they have not been called. If you need access to attributes of tasks that have not yet been executed, invoke the maybeConfigure method of that task before accessing the attributes. Stefan -- To unsubscribe, e-mail: For additional commands, e-mail: