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:40:43 UTC

svn commit: r1404423 - /pig/branches/branch-0.11/src/org/apache/pig/parser/StreamingCommandUtils.java

Author: daijy
Date: Wed Oct 31 23:40:42 2012
New Revision: 1404423

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

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

Modified: pig/branches/branch-0.11/src/org/apache/pig/parser/StreamingCommandUtils.java
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.11/src/org/apache/pig/parser/StreamingCommandUtils.java?rev=1404423&r1=1404422&r2=1404423&view=diff
==============================================================================
--- pig/branches/branch-0.11/src/org/apache/pig/parser/StreamingCommandUtils.java (original)
+++ pig/branches/branch-0.11/src/org/apache/pig/parser/StreamingCommandUtils.java Wed Oct 31 23:40:42 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 =