From dev-return-82777-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Mon Jun 02 12:13:47 2008 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 7595 invoked from network); 2 Jun 2008 12:13:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jun 2008 12:13:47 -0000 Received: (qmail 86374 invoked by uid 500); 2 Jun 2008 12:13:48 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 86329 invoked by uid 500); 2 Jun 2008 12:13:48 -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 86317 invoked by uid 99); 2 Jun 2008 12:13:48 -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 05:13:48 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.fuller.2007@gmail.com designates 216.239.58.187 as permitted sender) Received: from [216.239.58.187] (HELO gv-out-0910.google.com) (216.239.58.187) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 12:13:00 +0000 Received: by gv-out-0910.google.com with SMTP id n29so131621gve.16 for ; Mon, 02 Jun 2008 05:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=WycotE6hd/OQItHLWPJcF+c/S3cdUm3ApvYcPaHdW5o=; b=rFIuOSUaGvoJHdZb2Pl0reLcjFOvw4qh5BJo7qYIGxwdPo7GPjsBFjgk0GcYvIlbxuT5jY5WFejz2lryHe0J2o5ADLZEC+IilqmShlG/L8xkSOK/cSt5sRkyWEENIoNvjY74K/K0QGHfdpVvqrMwrC9qcQUC47FCMs8NKiij+tY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kIrNcqiYz0vnAGR+5vdE0Dd57Zti3XbDstAQt5eQ50DrAHczfEw5KSZ/EFve7NRAkNFBseaIQI6GfYBJIM0JuVtxHT+/sWVtmtuWMM0gs59itMyBmhbT54gB1rMdZlG1TTJ+++Cc9vCcn5F/hqHcE5oAzYsy+u9QeRdPoH89c6c= Received: by 10.78.144.11 with SMTP id r11mr2717207hud.49.1212408795798; Mon, 02 Jun 2008 05:13:15 -0700 (PDT) Received: by 10.78.131.18 with HTTP; Mon, 2 Jun 2008 05:13:15 -0700 (PDT) Message-ID: Date: Mon, 2 Jun 2008 14:13:15 +0200 From: "James Fuller" To: "Ant Developers List" Subject: Re: Adding magic properties for targets? In-Reply-To: <4843D584.6040608@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <255d8d690805300756s4c4c8723i873071c73afb7b1e@mail.gmail.com> <4843D584.6040608@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Jun 2, 2008 at 1:12 PM, Steve Loughran wrote: > 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 >> >> I'm +0 on adding these "static" properties. >> >> 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. Exposing them via a PropertyHelper to made it >> clear they are dynamic perhaps? ${dynamic:ant.current-target}... > > That could be very good. I'm happier with that than using something that > looks like an existing property and could easily stamp on existing > properties wouldn't it be great if property names were qnames and then we could do ant:default-target ant:targets-invoked though I do not think the default namespace e.g. antlib:org.apache.tools.ant is wholly appropriate as it concerns itself with ant libraries. I know ant doesn't fully subscribe to all things xml ... but there maybe benefits to not reinventing things. my 2czk, cheers, Jim Fuller --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org