Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 82415 invoked from network); 2 Nov 2000 08:26:10 -0000 Received: from public.ndh.net (HELO public.ndh.com) (195.94.90.21) by locus.apache.org with SMTP; 2 Nov 2000 08:26:10 -0000 Received: from sbodewig.bost.de ([195.227.98.11]) by public.ndh.com (8.9.3/8.8.0) with ESMTP id JAA23155 for ; Thu, 2 Nov 2000 09:25:46 +0100 (MET) Received: (from bodewig@localhost) by sbodewig.bost.de (8.9.3/8.9.3) id JAA03695; Thu, 2 Nov 2000 09:25:47 +0100 X-Authentication-Warning: sbodewig.bost.de: bodewig set sender to bodewig@bost.de using -f To: ant-user@jakarta.apache.org Subject: Re: why can references only be defined at the target level? References: <6DDA62170439D31185750000F80826AC0439B00B@zmerd004.ca.nortel.com> From: Stefan Bodewig Date: 02 Nov 2000 09:25:47 +0100 In-Reply-To: "Jay Glanville"'s message of "Tue, 31 Oct 2000 12:24:40 -0600" Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N >>>>> "JG" == Jay Glanville writes: JG> Boy, when your subject line says it all ... So I have less to quote 8-) Basically the concept of references in Ant is supposed to be used just like the one in XML. Each element in XML can have an attribute of the ID type (this attribute has the name id in Ant build files) which has one special property, it has to be unique in the document. So if references have to be unique - viewed from the document, not the way Ant parses the document - they are global in scope by definition. Putting them into targets would make them look something different (just like putting tags into targets led to very counterintuitive situations in Ant 1.1). Stefan