mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeast...@apache.org
Subject svn commit: r1053802 - /mahout/trunk/core/src/main/java/org/apache/mahout/driver/MahoutDriver.java
Date Thu, 30 Dec 2010 05:52:45 GMT
Author: jeastman
Date: Thu Dec 30 05:52:45 2010
New Revision: 1053802

URL: http://svn.apache.org/viewvc?rev=1053802&view=rev
Log:
Fixed -D ordering problem in MahoutDriver

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/driver/MahoutDriver.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/driver/MahoutDriver.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/driver/MahoutDriver.java?rev=1053802&r1=1053801&r2=1053802&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/driver/MahoutDriver.java (original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/driver/MahoutDriver.java Thu Dec 30
05:52:45 2010
@@ -172,9 +172,10 @@ public final class MahoutDriver {
         if (argMap.get(arg).length > 0 && !argMap.get(arg)[0].trim().isEmpty())
{
           arg += '=' + argMap.get(arg)[0].trim();
         }
+        argsList.add(1, arg);
       }
-      argsList.add(arg);
-      if (!arg.startsWith("-D")) {
+      else {
+        argsList.add(arg);
         argsList.addAll(Arrays.asList(argMap.get(arg)));
       }
     }



Mime
View raw message