mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r1150124 - /mahout/trunk/bin/mahout
Date Sat, 23 Jul 2011 15:28:41 GMT
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



Mime
View raw message