The attached patch (diff -c) to PluginManifestParser_orig.java skips plugin subfolders which begin with a period. The practical use of this is to keep Nutch from throwing warnings in the presence of hidden version-control folders like ".cvs", ".svn", ".git", etc. Like the following, for example:

2007-07-03 12:13:26,543 WARN plugin.PluginRepository - java.io.FileNotFoundException: /home/dfuhry/kddb/opidig/nutch-0.9/plugins/.svn/plugin.xml (No such file
or directory)

Thanks,

Dave Fuhry
*** /home/dfuhry/tmp/PluginManifestParser_orig.java	2007-07-03 13:15:55.000000000 -0400
--- src/java/org/apache/nutch/plugin/PluginManifestParser.java	2007-07-03 13:16:16.000000000 -0400
***************
*** 86,91 ****
--- 86,94 ----
        LOG.info("Plugins: looking in: " + directory.getAbsolutePath());
        for (File oneSubFolder : directory.listFiles()) {
          if (oneSubFolder.isDirectory()) {
+           if (oneSubFolder.getName().startsWith(".")) {
+             continue;
+           }
            String manifestPath = oneSubFolder.getAbsolutePath() + File.separator
                + "plugin.xml";
            try {
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to