ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Adding magic properties for targets?
Date Mon, 02 Jun 2008 13:48:00 GMT
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 and, 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

> Exposing them via a PropertyHelper to made it clear they are dynamic
> perhaps?  ${dynamic:ant.current-target}...

Works for me.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message