From dev-return-82778-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Mon Jun 02 13:48:34 2008 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 52364 invoked from network); 2 Jun 2008 13:48:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jun 2008 13:48:33 -0000 Received: (qmail 68590 invoked by uid 500); 2 Jun 2008 13:48:35 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 68535 invoked by uid 500); 2 Jun 2008 13:48:35 -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 68523 invoked by uid 99); 2 Jun 2008 13:48:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 06:48:34 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [88.84.142.181] (HELO samaflost.de) (88.84.142.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 13:47:46 +0000 Received: from localhost (unknown [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id B7DEDE220016 for ; Mon, 2 Jun 2008 13:48:01 +0000 (UTC) Received: from samaflost.de ([127.0.0.1]) by localhost (v30161.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17855-07 for ; Mon, 2 Jun 2008 15:48:00 +0200 (CEST) Received: by samaflost.de (Postfix, from userid 2525) id 3AB35E220014; Mon, 2 Jun 2008 15:48:00 +0200 (CEST) To: dev@ant.apache.org Subject: Re: Adding magic properties for targets? X-Draft-From: ("nnfolder:mail.jakarta-ant" 86926) References: <255d8d690805300756s4c4c8723i873071c73afb7b1e@mail.gmail.com> From: Stefan Bodewig Date: Mon, 02 Jun 2008 15:48:00 +0200 In-Reply-To: <255d8d690805300756s4c4c8723i873071c73afb7b1e@mail.gmail.com> (Dominique Devienne's message of "Fri\, 30 May 2008 09\:56\:31 -0500") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at samaflost.de X-Virus-Checked: Checked by ClamAV on apache.org On Fri, 30 May 2008, Dominique Devienne wrote: > I'd add that those properties, if made available, should probably be > prefixed with ant., to make it clear they are "built-in". Perhaps: > > ant.default-target > ant.targets-invoked The actual patch uses ant.current.target and ant.project.target, so we should be fine WRT namespacing. We might talk about the names, but right now I'd like to see whether the feature is desired at all (looks good so far). > Since we're at it, we may also want to expose ant.current-target and > ant.invoked-target properties, but these are "dynamic" since > changing during the course of the build, so more problematic given > the property immutability rules. Just to make sure I understand what you are talking about. Those would refer to the currently excuting target and a list of targets that have already been executed, right? I don't see much harm here either. > Exposing them via a PropertyHelper to made it clear they are dynamic > perhaps? ${dynamic:ant.current-target}... Works for me. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org