You can get the PluginRepository and then from there get the plugin
descriptor and its path. From there resources inside the plugin folder.
Change out parse-html with your plugin id.
Configuration conf = NutchConfiguration.create();
PluginRepository rep = PluginRepository.get(conf);
PluginDescriptor desc = rep.getPluginDescriptor("parse-html");
String path = desc.getPluginPath();
System.out.println(path);
Dennis Kubes
Scott Green wrote:
Can someone give a answer? I dont think it is good idea we put all
configuration/resources under "conf" dir.
On 1/15/07, Scott Green <[EMAIL PROTECTED]> wrote:
Hi,
I need to load some resources from mine plugin's sub-directory. Any
avaiable method to get the specified plugin's root directory now?
thanks
- scott