Hi Jonathan,

That's the problem.

NAnt.Core.Filters.PhysicalTextReader is an Internal Class to that
Namespace.  You are not going to get access to that Class in its
current state I'm afraid.

That said, I'm wondering if this should be changed in the future so
other projects could take advantage of this class.  I don't think that
the wheel should be reinvented for something this simple.  Thoughts?

In the meantime Jonathan, looks like you are going to have to create a
custom filter class for your project that inherits the
NAnt.Core.Filters.Filter (or .ChainableReader) abstract class and pass
the TextReader to the Base Class Chain method.

Hope this helps.

Thanks,
Ryan

On Sat, Apr 10, 2010 at 10:12 AM, jnewton <jonathan.new...@ni.com> wrote:
>
> Hi Ryan,
>
> Yeah, I get an error saying
> Error   2       'NAnt.Core.Filters.PhysicalTextReader' is inaccessible due to 
> its
> protection level
>
> This sorta makes sense to me but I'm not sure how to get around it or do it
> properly. So I guess what I am really asking is whats the best way to apply
> a filterchain to my custom task. Maybe I just missed something.
> --
> View this message in context: 
> http://old.nabble.com/Writing-Your-Own-Task-that-Uses-a-FilterChain-tp28203172p28203413.html
> Sent from the NAnt - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> NAnt-users mailing list
> nant-us...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to