You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by sr...@apache.org on 2011/07/23 17:28:41 UTC

svn commit: r1150124 - /mahout/trunk/bin/mahout

Author: srowen
Date: Sat Jul 23 15:28:40 2011
New Revision: 1150124

URL: http://svn.apache.org/viewvc?rev=1150124&view=rev
Log:
MAHOUT-727 fix location of examples job jar file for distribution

Modified:
    mahout/trunk/bin/mahout

Modified: mahout/trunk/bin/mahout
URL: http://svn.apache.org/viewvc/mahout/trunk/bin/mahout?rev=1150124&r1=1150123&r2=1150124&view=diff
==============================================================================
--- mahout/trunk/bin/mahout (original)
+++ mahout/trunk/bin/mahout Sat Jul 23 15:28:40 2011
@@ -124,7 +124,7 @@ then
   done
 
   # add dev targets if they exist
-  for f in $MAHOUT_HOME/*/target/mahout-examples-*-job.jar; do
+  for f in "$MAHOUT_HOME/examples/target/mahout-examples-*-job.jar" "$MAHOUT_HOME/mahout-examples-*-job.jar"; do
     CLASSPATH=${CLASSPATH}:$f;
   done
 
@@ -176,20 +176,12 @@ fi
 
 CLASS=org.apache.mahout.driver.MahoutDriver
 
-for f in $MAHOUT_HOME/examples/target/mahout-examples-*-job.jar; do
+for f in "$MAHOUT_HOME/examples/target/mahout-examples-*-job.jar" "$MAHOUT_HOME/mahout-examples-*-job.jar" ; do
   if [ -e "$f" ]; then
     MAHOUT_JOB=$f
   fi
 done
 
-if [ "$MAHOUT_JOB" = "" ]; then
-  for f in $MAHOUT_HOME/mahout-examples-*-job.jar; do
-    if [ -e "$f" ]; then
-      MAHOUT_JOB=$f
-    fi
-  done
-fi
-
 # run it
 
 if [ "$HADOOP_HOME" = "" ] || [ "$MAHOUT_LOCAL" != "" ] ; then