You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Jani Kaarela <ja...@yahoo.com> on 2002/08/28 13:07:31 UTC
Re: Trouble writing a FilterReader
(Uh, there was a "slight" delay, but I'm working on my
FilterReader again...)
I'm actually altering an existing FilterReader which
doesn't take any attributes or nested elements. Can I
have BOTH attributes and nested elements?
Did I understand you correctly: expanding
BaseParamFilterReader rules out the possibility of
using nested elements other than params? What about
attributes?
What I would like to achieve is:
<myfilter attrib="foo">
<nestedelem value="bar"/>
</myfilter>
Thanks,
Jani
--- Magesh Umasankar <um...@apache.org> wrote:
> Hi,
> How do you declare your filterreader in your
> build.xml file? Do you wish to use it in the long
> form (recommended):
>
> <filterreader
> classname="your.extension.of.java.io.FilterReader">
> <param name="foo" value="bar"/>
> </filterreader>
>
> or do you wish to use the short form syntax (for
> which you would need to alter
>
jakarta-ant\src\main\org\apache\tools\ant\types\FilterChain.java)
>
> <yourfilter>
> <nestedelem value="foo">
> <nestedelem value="bar">
> </yourfilter>
>
> If you are going to use the long form - as
> I suspect you are - since you extended
> BaseParamFilterReader, the _only_ nested
> element that you can use is <param>.
>
> For Ant to recognize your addConfiguredXXX, you
> would need to touch the FilterChain.java file
> and add your filter reader to it (Note: you would
> be altering Ant's codebase to achieve this.)
>
> Does this clarify things a bit?
>
> Cheers,
> Magesh
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>