ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: Location in macrodef-ed tasks
Date Mon, 11 Sep 2006 22:04:41 GMT
I have make a change to MacroInstance to check
when macrodef.backtrace = false, and if so set
the location of all the copied UEs to the MacroInstance.getLocation().
With this change, your test passes.
Peter

On 9/11/06, Stefan Bodewig <bodewig@apache.org> wrote:
>
> Hi,
>
> I pushed setLocation down to ProjectComponent and added the reflection
> logic to TaskAdapter just to realize that it doesn't help.
>
> Most assertions are macrodef tasks and they always get their location
> set to the antlib descriptor they've been defined in, which is rather
> useless.
>
> I've committed a failing testcase if anybody wants to look into it.
> IMHO we should set each nested task's location to the one of the
> invocation, at least if backtrace is set to false.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message