ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: FilenameMapper with multiple mappings?
Date Tue, 21 Jan 2003 16:43:18 GMT
On Mon, 20 Jan 2003, Angus McIntyre <angus@pobox.com> wrote:

> am I correct in thinking that mappers are local to a task ... but
> their IDs are global?

Yes.

> What I've observed is that if I define a mapper with an 'id'
> attribute in one task, then I can use 'refid' to reference it within
> that same task, but if I try to reference it from elsewhere, I get
> errors telling me that I must specify at least type or classname
> (i.e. the mapper isn't identifiable/usable outside the task where it
> was defined).

Ant 1.5.1?  I vaguely remember fixing a bug with just this symptoms.
Do you have a simple example that exposes this bug?

> I think that if mappers become more complex, it would be good to be
> able to define them globally at the project level, and then
> reference them from within tasks.

This should be possible right now.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message