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 > >> > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nutch-developers mailing list Nutch-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nutch-developers