You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by da...@apache.org on 2012/11/01 00:41:05 UTC

svn commit: r1404425 - /pig/branches/branch-0.10/src/org/apache/pig/parser/StreamingCommandUtils.java

Author: daijy
Date: Wed Oct 31 23:41:05 2012
New Revision: 1404425

URL: http://svn.apache.org/viewvc?rev=1404425&view=rev
Log:
PIG-2953: "which" utility does not exist on Windows (daijy)

Modified:
    pig/branches/branch-0.10/src/org/apache/pig/parser/StreamingCommandUtils.java

Modified: pig/branches/branch-0.10/src/org/apache/pig/parser/StreamingCommandUtils.java
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.10/src/org/apache/pig/parser/StreamingCommandUtils.java?rev=1404425&r1=1404424&r2=1404425&view=diff
==============================================================================
--- pig/branches/branch-0.10/src/org/apache/pig/parser/StreamingCommandUtils.java (original)
+++ pig/branches/branch-0.10/src/org/apache/pig/parser/StreamingCommandUtils.java Wed Oct 31 23:41:05 2012
@@ -167,7 +167,7 @@ public class StreamingCommandUtils {
      private static String which(String file) {
          try {
              String utility = "which";
-             if (Util.WINDOWS) {
+             if (System.getProperty("os.name").toUpperCase().startsWith("WINDOWS")) {
                  utility = "where";
              }
              ProcessBuilder processBuilder =