Thanks Dennis! Your methond should work.
And I really hope there is one directly method say getPluginRootDir()
in the plugin implementation.
On 1/16/07, Dennis Kubes <[EMAIL PROTECTED]> wrote:
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
>>