<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -46,7 +46,7 @@ module Buildr
       
       JRUBY_VERSION = '1.3.1'
       
-      class &lt;&lt; self
+      class &lt;&lt; self        
         def lang
           :none
         end
@@ -97,7 +97,7 @@ module Buildr
           }
         else
           cp = project.compile.dependencies + [
-              &quot;org.jruby:jruby-complete:jar:#{JRUBY_VERSION}&quot;,
+              jruby_artifact,
               project.path_to(:target, :classes)
             ]
           
@@ -110,8 +110,14 @@ module Buildr
       end
     private
       def jruby_home
-        @home ||= ENV['JRUBY_HOME']
+        @jruby_home ||= RUBY_PLATFORM =~ /java/ ? Config::CONFIG['prefix'] : ENV['JRUBY_HOME']
+      end
+
+      def jruby_artifact
+        version = Buildr.settings.build['jruby'] || JRUBY_VERSION
+        &quot;org.jruby:jruby-complete:jar:#{version}&quot;
       end
+    
     end
     
     class Clojure &lt; Base</diff>
      <filename>lib/buildr/core/shell.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>35439240de7d5727b63046642192877da98e01c9</id>
    </parent>
  </parents>
  <author>
    <name>Victor Borja</name>
    <email>vborja@apache.org</email>
  </author>
  <url>http://github.com/vic/buildr/commit/16df25739e729dbc5519b9f8412065cdae103390</url>
  <id>16df25739e729dbc5519b9f8412065cdae103390</id>
  <committed-date>2009-07-25T20:33:15-07:00</committed-date>
  <authored-date>2009-07-25T20:33:15-07:00</authored-date>
  <message>Don't download the jruby-complete artifact if running Buildr with jruby. Allow jruby version to be customized on build.yml settings (like jruby based test frameworks)

git-svn-id: https://svn.apache.org/repos/asf/buildr/trunk@797862 13f79535-47bb-0310-9956-ffa450edef68</message>
  <tree>ae2c1ba09bcd24a2532df4899c22344e0fae73ca</tree>
  <committer>
    <name>Victor Borja</name>
    <email>vborja@apache.org</email>
  </committer>
</commit>
