avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r1160350 - /avro/trunk/lang/java/mapred/src/test/java/org/apache/avro/mapred/tether/TestWordCountTether.java
Date Mon, 22 Aug 2011 18:00:29 GMT
Author: cutting
Date: Mon Aug 22 18:00:29 2011
New Revision: 1160350

URL: http://svn.apache.org/viewvc?rev=1160350&view=rev
Log:
AVRO-879: Try locating the java executable from java.home system property rather than $PATH.

Modified:
    avro/trunk/lang/java/mapred/src/test/java/org/apache/avro/mapred/tether/TestWordCountTether.java

Modified: avro/trunk/lang/java/mapred/src/test/java/org/apache/avro/mapred/tether/TestWordCountTether.java
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/mapred/src/test/java/org/apache/avro/mapred/tether/TestWordCountTether.java?rev=1160350&r1=1160349&r2=1160350&view=diff
==============================================================================
--- avro/trunk/lang/java/mapred/src/test/java/org/apache/avro/mapred/tether/TestWordCountTether.java
(original)
+++ avro/trunk/lang/java/mapred/src/test/java/org/apache/avro/mapred/tether/TestWordCountTether.java
Mon Aug 22 18:00:29 2011
@@ -86,7 +86,8 @@ public class TestWordCountTether {
     // create the input file
     WordCountUtil.writeLinesFile();
 
-    java.net.URI exec= new java.net.URI("java");
+    java.net.URI exec =
+      new java.net.URI(System.getProperty("java.home")+"/bin/java");
 
     //input path
     String in=dir+"/in";



Mime
View raw message