You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2011/07/26 15:22:22 UTC

svn commit: r1151086 - /buildr/trunk/Rakefile

Author: donaldp
Date: Tue Jul 26 13:22:21 2011
New Revision: 1151086

URL: http://svn.apache.org/viewvc?rev=1151086&view=rev
Log:
Fix the way that JAVA_HOME is guessed on jruby platform

Modified:
    buildr/trunk/Rakefile

Modified: buildr/trunk/Rakefile
URL: http://svn.apache.org/viewvc/buildr/trunk/Rakefile?rev=1151086&r1=1151085&r2=1151086&view=diff
==============================================================================
--- buildr/trunk/Rakefile (original)
+++ buildr/trunk/Rakefile Tue Jul 26 13:22:21 2011
@@ -16,7 +16,7 @@
 # We need JAVA_HOME for most things (setup, spec, etc).
 unless ENV['JAVA_HOME']
   if RUBY_PLATFORM[/java/]
-    ENV['JAVA_HOME'] = java.lang.System.getProperty('java.home')
+    ENV['JAVA_HOME'] = Java.java.lang.System.getProperty('java.home')
   elsif RUBY_PLATFORM[/darwin/]
     ENV['JAVA_HOME'] = '/System/Library/Frameworks/JavaVM.framework/Home'
   else