nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Kubes (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NUTCH-609) Allow Plugins to be Loaded from Jar File(s)
Date Tue, 12 Feb 2008 16:53:08 GMT

    [ https://issues.apache.org/jira/browse/NUTCH-609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568207#action_12568207
] 

Dennis Kubes commented on NUTCH-609:
------------------------------------

Well, as it turns out I haven't found a way to put a jar file inside of another jar file on
the classpath.  So something like jar:file:/path/to/jar.jar!/containing.jar won't work.  I
will research a little more but it looks to me like even if we have each plugin in its own
jar file, which I prefer, we would still need to unzip to a temporary directory to put them
on the classpath.  Does anybody know a different way to include a jar inside of another jar
on the classpath?

> Allow Plugins to be Loaded from Jar File(s)
> -------------------------------------------
>
>                 Key: NUTCH-609
>                 URL: https://issues.apache.org/jira/browse/NUTCH-609
>             Project: Nutch
>          Issue Type: Improvement
>    Affects Versions: 1.0.0
>         Environment: All
>            Reporter: Dennis Kubes
>            Assignee: Dennis Kubes
>             Fix For: 1.0.0
>
>
> Currently plugins cannot be loaded from a jar file.  Plugins must be unzipped in one
or more directories specified by the plugin.folders config.  I have been thinking about an
extension to PluginRepository or PluginManifestParser (or both) that would allow plugins to
packaged into multiple independent jar files and placed on the classpath.  The system would
search the classpath for resources with the correct folder name and would load any plugins
in those jars.
> This functionality would be very useful in making the nutch core more flexible in terms
of packaging.  It would also help with web applications where we don't want to have a plugins
directory included in the webapp.
> Thoughts so far are unzipping those plugin jars into a common temp directory before loading.
 Another option is using something like commons vfs to interact with the jar files.  VFS essential
uses a disk based temporary cache for jar files, so it is pretty much the same solution. 
 What are everyone else's thoughts on this?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message