Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Fix a bug when there are spaces in CWD, as is common on Windows.

Douglass Cuttingf3797052388c
diff --git a/bin/nutch b/bin/nutch
index 5cfc30faa..f09e45643 100755
--- a/bin/nutch
+++ b/bin/nutch
@@ -82,6 +82,9 @@ fi
CLASSPATH=${NUTCH_CONF_DIR:=$NUTCH_HOME/conf}
CLASSPATH=${CLASSPATH}:$JAVA_HOME/lib/tools.jar
+# so that filenames w/ spaces are handled correctly in loops below
+IFS=
+
# for developers, add plugins, job & test code to CLASSPATH
if [ -d "$NUTCH_HOME/build/plugins" ]; then
CLASSPATH=${CLASSPATH}:$NUTCH_HOME/build
@@ -93,9 +96,6 @@ if [ -d "$NUTCH_HOME/build/test/classes" ]; then
CLASSPATH=${CLASSPATH}:$NUTCH_HOME/build/test/classes
fi
-# so that filenames w/ spaces are handled correctly in loops below
-IFS=
-
# for releases, add Nutch job to CLASSPATH
for f in $NUTCH_HOME/nutch-*.job; do
CLASSPATH=${CLASSPATH}:$f;