You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Markus Jelsma (JIRA)" <ji...@apache.org> on 2011/04/01 16:35:09 UTC
[jira] [Updated] (NUTCH-764) Add support for vfsfile:// loading of
plugins for JBoss
[ https://issues.apache.org/jira/browse/NUTCH-764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Markus Jelsma updated NUTCH-764:
--------------------------------
Bulk close of legacy issues:
http://www.lucidimagination.com/search/document/2738eeb014805854/clean_up_open_legacy_issues_in_jira
> Add support for vfsfile:// loading of plugins for JBoss
> -------------------------------------------------------
>
> Key: NUTCH-764
> URL: https://issues.apache.org/jira/browse/NUTCH-764
> Project: Nutch
> Issue Type: Improvement
> Components: searcher
> Affects Versions: 1.0.0
> Environment: JBoss AS 5.1.0
> Reporter: tcurran@approachingpi.com
> Priority: Trivial
>
> In the file:
> /src/java/org/apache/nutch/plugin/PluginManifestParser.java
> There is a check to make sure that the plugin file location is a url formatted like "file://path/plugins".
> When deployed on Jboss, the file protocol will sometimes be: "vfsfile://path/plugins". The code with vfsfile can operate the same so I propose a change to the check to also allow this protocol. This would allow Nutch to be deployed on the newer versions of JBoss without any modification.
> Here is a simple patch:
> Index: src/java/org/apache/nutch/plugin/PluginManifestParser.java
> ===================================================================
> --- src/java/org/apache/nutch/plugin/PluginManifestParser.java Mon Nov 09 20:20:51 EST 2009
> +++ src/java/org/apache/nutch/plugin/PluginManifestParser.java Mon Nov 09 20:20:51 EST 2009
> @@ -121,7 +121,8 @@
> } else if (url == null) {
> LOG.warn("Plugins: directory not found: " + name);
> return null;
> - } else if (!"file".equals(url.getProtocol())) {
> + } else if (!"file".equals(url.getProtocol()) &&
> + !"vfsfile".equals(url.getProtocol())) {
> LOG.warn("Plugins: not a file: url. Can't load plugins from: " + url);
> return null;
> }
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira