[jira] [Commented] (NUTCH-2317) Plugin jars don't get added to classpath while running in local

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (NUTCH-2317) Plugin jars don't get added to classpath while running in local

JIRA jira@apache.org

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

ASF GitHub Bot commented on NUTCH-2317:
---------------------------------------

sebastian-nagel closed pull request #152: Fix for NUTCH-2317: Plugin jars don't get added to classpath
URL: https://github.com/apache/nutch/pull/152
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/bin/nutch b/src/bin/nutch
index 164906930..bd66ced07 100755
--- a/src/bin/nutch
+++ b/src/bin/nutch
@@ -159,7 +159,9 @@ if $local; then
   # local runtime
   # add plugins to classpath
   if [ -d "$NUTCH_HOME/plugins" ]; then
-     CLASSPATH="${NUTCH_HOME}:${CLASSPATH}"
+     for f in "$NUTCH_HOME/plugins"/*/*.jar; do
+      CLASSPATH="${CLASSPATH}:$f";
+    done
   fi
 fi
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


> Plugin jars don't get added to classpath while running in local
> ---------------------------------------------------------------
>
>                 Key: NUTCH-2317
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2317
>             Project: Nutch
>          Issue Type: Bug
>          Components: plugin
>            Reporter: Sujen Shah
>             Fix For: 1.14
>
>
> Currently, plugin dependencies listed in the plugin's ivy.xml don't get added to the classpath while running nutch in local mode.
> Looking into the /bin/nutch code for adding jars to classpath these lines (https://github.com/apache/nutch/blob/master/src/bin/nutch#L161-L163) show an error in syntax. The PR tries to address this issue.
> Link to mail thread on dev list regarding this issue - http://www.mail-archive.com/dev@.../msg22094.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)