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:18 UTC
svn commit: r1404422 -
/pig/trunk/src/org/apache/pig/parser/StreamingCommandUtils.java
Author: daijy
Date: Wed Oct 31 23:40:18 2012
New Revision: 1404422
URL: http://svn.apache.org/viewvc?rev=1404422&view=rev
Log:
PIG-2953: "which" utility does not exist on Windows (daijy)
Modified:
pig/trunk/src/org/apache/pig/parser/StreamingCommandUtils.java
Modified: pig/trunk/src/org/apache/pig/parser/StreamingCommandUtils.java
URL: http://svn.apache.org/viewvc/pig/trunk/src/org/apache/pig/parser/StreamingCommandUtils.java?rev=1404422&r1=1404421&r2=1404422&view=diff
==============================================================================
--- pig/trunk/src/org/apache/pig/parser/StreamingCommandUtils.java (original)
+++ pig/trunk/src/org/apache/pig/parser/StreamingCommandUtils.java Wed Oct 31 23:40:18 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 =