I've had this problem before.  What you can do is copy the regex url
filter and prefix url filter jars over to the lib directory of your
new plugin, and reference them in plugin.xml.

It's kind of a hack, but it works.  I haven't been able to think of
any other way to subclass plugin classes within this dynamic
classloading plugin architecture.  Anybody else have any ideas?

On 6/15/05, Jakob Heidebrecht <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I have written a special urlfilter,it imports net.nutch.net.PrefixURLFilter
> and net.nutch.net.RegexURLFilter.
> 
> Since nutch is at apache this two classes are plugins, so i wrote my
> urlfilter as a plugin too.
> 
> I tried to import this two filters like: org.apache.nutch.net.RegexURLFilter
> but I get a error at building with ant:
> 
> *** Semantic Error: The import "org/apache/nutch/net/RegexURLFilter" is not
> valid, since it does not name a type in a package.
> 
> My question is:
> Can I import a class from a plugin? And how would I do that?
> 
> Regards
> Jakob
> 
> --
> Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
> Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
>


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Nutch-developers mailing list
Nutch-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to