Apache Nutch is an extensible and scalable web crawler
NUTCH-586 - Add option to run compiled classes without job file.
Andrzej Bialeckica8be904e67c
diff --git a/CHANGES.txt b/CHANGES.txtindex e1a79979b..d7a3144af 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -176,6 +176,9 @@ Unreleased changes (1.0-dev)60. NUTCH-581 - DistributedSearch does not update search servers added tosearch-servers.txt on the fly. (Rohan Mehta via kubes)+61. NUTCH-586 - Add option to run compiled classes without job file+ (enis via ab)+Release 0.9 - 2007-04-021. Changed log4j confiquration to log to stdout on commandlinediff --git a/bin/nutch b/bin/nutchindex 797375ff8..1daac5649 100755--- a/bin/nutch+++ b/bin/nutch@@ -30,7 +30,7 @@ done# if no args specified, show usageif [ $# = 0 ]; then- echo "Usage: nutch COMMAND"+ echo "Usage: nutch [-core] COMMAND"echo "where COMMAND is one of:"echo " crawl one-step crawler for intranets"echo " readdb read / dump crawl db"@@ -56,9 +56,20 @@ if [ $# = 0 ]; thenecho " or"echo " CLASSNAME run the class named CLASSNAME"echo "Most commands print help when invoked w/o parameters."+ echo ""+ echo "Expert: -core option is for developers only. It avoids building the job jar, "+ echo " instead it simply includes classes compiled with ant compile-core. "+ echo " NOTE: this works only for jobs executed in 'local' mode"exit 1fi+IS_CORE=0+#check for -core option+if [ "$1" == "-core" ] ; then+ IS_CORE=1+ shift+fi+# get argumentsCOMMAND=$1shift@@ -99,17 +110,23 @@ IFS=if [ -d "$NUTCH_HOME/build/plugins" ]; thenCLASSPATH=${CLASSPATH}:$NUTCH_HOME/buildfi-for f in $NUTCH_HOME/build/nutch-*.job; do- CLASSPATH=${CLASSPATH}:$f;-doneif [ -d "$NUTCH_HOME/build/test/classes" ]; thenCLASSPATH=${CLASSPATH}:$NUTCH_HOME/build/test/classesfi-# for releases, add Nutch job to CLASSPATH-for f in $NUTCH_HOME/nutch-*.job; do- CLASSPATH=${CLASSPATH}:$f;-done+if [ $IS_CORE == 0 ]+then+ for f in $NUTCH_HOME/build/nutch-*.job; do+ CLASSPATH=${CLASSPATH}:$f;+ done++ # for releases, add Nutch job to CLASSPATH+ for f in $NUTCH_HOME/nutch-*.job; do+ CLASSPATH=${CLASSPATH}:$f;+ done+else+ CLASSPATH=${CLASSPATH}:$NUTCH_HOME/build/classes+fi# add plugins to classpathif [ -d "$NUTCH_HOME/plugins" ]; then