ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Extending path
Date Tue, 08 Jun 2010 14:14:59 GMT
On 2010-06-04, Jon Stevens wrote:

> What I'd like to do is be able to add a couple of attributes to the
> <file> element that lives in a <filelist> and then get access to those
> attributes in my Task.

I've seen you've already taken on Matt's Resource advice.  You may want
to look into org.apache.tools.ant.types.resources.ResourceDecorator
which wraps itself around a different Resource (specified as a nested
element inside a build file) and forwards all "normal" methods to the
wrapped Resource.

You'd only need to implement setters for your additional attributes and
should be done.

Stefan

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


Mime
View raw message