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 Wed, 04 Jun 2008 09:47:15 GMT
On Mon, 2 Jun 2008, Dominique Devienne <> wrote:

>>> 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
> Right.
>> and a list of targets that have already been executed, right?
> No, I meant the top-level target (which should thus be among the
> ones in ant.invoked-targets) which indirectly triggered the
> execution of dynamic:ant.current-target.

Hmm, this may not be unique.  If the command line specified two
targets with a common dependency, then this property would be ambiguos
while executing the current target.

> But I'm not too sure how this one could be useful ;-) --DD

Me neither.


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

View raw message