Bugs item #957691, was opened at 2004-05-20 21:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=491356&aid=957691&group_id=59548
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Stefan Groschupf (joa23)
Assigned to: Nobody/Anonymous (nobody)
Summary: one folder have to be in the plugin folder
Initial Comment:
Theoretically it is possible to install plugin dynamically until
runtime by using the API of the PluginRepository.
But this throws an NullpointerException since at startup the
PluginManifestParser need at least one Folder in Plugin-Folder.
This patch fix this bug.
In case the patch file will not uploaded just copy past this snippet.
<start>
Index: PluginManifestParser.java
=========================================
==========================
RCS file: /cvsroot/nutch/nutch/src/java/net/nutch/plugin/
PluginManifestParser.java,v
retrieving revision 1.1
diff -u -r1.1 PluginManifestParser.java
--- PluginManifestParser.java 20 May 2004 18:19:04 -0000
1.1
+++ PluginManifestParser.java 20 May 2004 21:40:04 -0000
@@ -40,6 +40,10 @@
throw new IllegalArgumentException("no plugin folder
setuped...");
File file = new File(pluginFolder);
File[] files = file.listFiles();
+
+ if (files == null) {
+ return list;
+ }
for (int i = 0; i < files.length; i++) {
File oneSubFolder = files[i];
if (oneSubFolder.isDirectory()) {
</end>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=491356&aid=957691&group_id=59548
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Nutch-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-developers