ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: Trouble writing a FilterReader
Date Mon, 15 Jul 2002 17:24:39 GMT
Maybe this is a place where we can refactor to use DynamicConfigurator 
for 1.6?

Magesh Umasankar 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
> 
> *************************************************
> *  Politician: One who shakes your hand before  *
> *  elections and your confidence after.         *
> *************************************************
> ----- Original Message ----- 
> From: "Jani Kaarela" <janikaarela@yahoo.com>
> To: <ant-dev@jakarta.apache.org>
> Sent: Monday, July 15, 2002 4:57 AM
> Subject: Trouble writing a FilterReader
> 
> 
> 
>>Hi,
>>
>>I'm writing a FilterReader which extends
>>BaseParamFilterReader. It should support a nested
>>element, similar to LineContains which I naturally
>>studied to get some ideas how to do it...
>>The problem is that when trying to use the filter with
>>a nested element, Ant says it's not supported. I have
>>the appropriate addConfiguredXXX method etc.
>>
>>Are there some kind of "special steps" to make
>>filters' nested elements work, or am I missing
>>something completely obvious here?!
>>
>>
>>Thanks,
>>
>>Jani Kaarela
>>
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
> 
> 
> 



--
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