hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r425339 - /lucene/hadoop/trunk/src/contrib/streaming/src/java/org/apache/hadoop/streaming/Environment.java
Date Tue, 25 Jul 2006 09:06:18 GMT
Author: cutting
Date: Tue Jul 25 02:06:18 2006
New Revision: 425339

URL: http://svn.apache.org/viewvc?rev=425339&view=rev
Log:
HADOOP-383.  Fix a bug in the streaming contrib module on Windows.

Modified:
    lucene/hadoop/trunk/src/contrib/streaming/src/java/org/apache/hadoop/streaming/Environment.java

Modified: lucene/hadoop/trunk/src/contrib/streaming/src/java/org/apache/hadoop/streaming/Environment.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/streaming/src/java/org/apache/hadoop/streaming/Environment.java?rev=425339&r1=425338&r2=425339&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/contrib/streaming/src/java/org/apache/hadoop/streaming/Environment.java
(original)
+++ lucene/hadoop/trunk/src/contrib/streaming/src/java/org/apache/hadoop/streaming/Environment.java
Tue Jul 25 02:06:18 2006
@@ -33,7 +33,7 @@
       String command = null;
       String OS = System.getProperty("os.name");
       String lowerOs = OS.toLowerCase();
-      if (OS.equals("Windows NT")) {
+      if (OS.indexOf("Windows") > -1) {
          command = "cmd /C set";
       } else if (OS.indexOf("ix") > -1 || OS.indexOf("inux") > -1) {
          command = "env";



Mime
View raw message