Update of /cvsroot/nutch/nutch/src/java/net/nutch/plugin
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15519/src/java/net/nutch/plugin

Modified Files:
        PluginManifestParser.java 
Log Message:
Added plugin.includes config parameter that determines which plugins
are included.  By default now only http, html and basic indexing and
search plugins are enabled, rather than all plugins.  This should make
default performance more predictable and reliable going forward.


Index: PluginManifestParser.java
===================================================================
RCS file: 
/cvsroot/nutch/nutch/src/java/net/nutch/plugin/PluginManifestParser.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** PluginManifestParser.java   29 Aug 2004 05:59:02 -0000      1.8
--- PluginManifestParser.java   9 Dec 2004 17:40:46 -0000       1.9
***************
*** 44,47 ****
--- 44,48 ----
      String[] pluginFolders = NutchConf.getStrings("plugin.folders");
      Pattern excludes = Pattern.compile(NutchConf.get("plugin.excludes", ""));
+     Pattern includes = Pattern.compile(NutchConf.get("plugin.includes", ""));
      if (pluginFolders == null)
        throw new IllegalArgumentException("plugin.folders is not defined");
***************
*** 59,64 ****
          if (oneSubFolder.isDirectory()) {
            
            if (excludes.matcher(oneSubFolder.getName()).matches()) {
!             LOG.info("exluding: "+oneSubFolder);
              continue;
            }
--- 60,70 ----
          if (oneSubFolder.isDirectory()) {
            
+           if (!includes.matcher(oneSubFolder.getName()).matches()) {
+             LOG.info("not including: "+oneSubFolder);
+             continue;
+           }
+ 
            if (excludes.matcher(oneSubFolder.getName()).matches()) {
!             LOG.info("excluding: "+oneSubFolder);
              continue;
            }



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Nutch-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-cvs

Reply via email to