<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -36,15 +36,17 @@ if (tasks_dir = ROOT.parent + 'tasks').directory?
 end
 
 # compile the extension
-begin
-  gem('rake-compiler')
-  require 'rake/extensiontask'
-  Rake::ExtensionTask.new('do_mysql_ext', HOE.spec)
-rescue LoadError
-  warn &quot;To cross-compile, install rake-compiler (gem install rake-compiler)&quot;
-  if tasks_dir.directory?
-    require tasks_dir + 'ext_helper'
-    setup_extension('do_mysql_ext', HOE.spec)
+unless JRUBY
+  begin
+    gem('rake-compiler')
+    require 'rake/extensiontask'
+    Rake::ExtensionTask.new('do_mysql_ext', HOE.spec)
+  rescue LoadError
+    warn &quot;To cross-compile, install rake-compiler (gem install rake-compiler)&quot;
+    if tasks_dir.directory?
+      require tasks_dir + 'ext_helper'
+      setup_extension('do_mysql_ext', HOE.spec)
+    end
   end
 end
 </diff>
      <filename>do_mysql/Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -35,15 +35,17 @@ if (tasks_dir = ROOT.parent + 'tasks').directory?
 end
 
 # compile the extension
-begin
-  gem('rake-compiler')
-  require 'rake/extensiontask'
-  Rake::ExtensionTask.new('do_postgres_ext', HOE.spec)
-rescue LoadError
-  warn &quot;To cross-compile, install rake-compiler (gem install rake-compiler)&quot;
-  if tasks_dir.directory?
-    require tasks_dir + 'ext_helper'
-    setup_extension('do_postgres_ext', HOE.spec)
+unless JRUBY
+  begin
+    gem('rake-compiler')
+    require 'rake/extensiontask'
+    Rake::ExtensionTask.new('do_postgres_ext', HOE.spec)
+  rescue LoadError
+    warn &quot;To cross-compile, install rake-compiler (gem install rake-compiler)&quot;
+    if tasks_dir.directory?
+      require tasks_dir + 'ext_helper'
+      setup_extension('do_postgres_ext', HOE.spec)
+    end
   end
 end
 </diff>
      <filename>do_postgres/Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -5,27 +5,27 @@ def setup_extension_java(extension_name, gem_spec = nil)
   ext_name = &quot;#{extension_name}.jar&quot;
   directory 'lib'
 
-  unless File.directory?(&quot;ext/#{extension_name}&quot;)
+  desc 'Compile Extension for current Ruby (= compile:jruby)'
+  task :compile =&gt; [ 'compile:jruby' ] if JRUBY
 
-    namespace :compile do
-      desc &quot;Compile Java Extension for JRuby&quot;
-      #task :jruby =&gt; [&quot;lib/#{ext_name}&quot;]
+  namespace :compile do
+    desc &quot;Compile Java Extension for JRuby&quot;
+    #task :jruby =&gt; [&quot;lib/#{ext_name}&quot;]
 
-      task :jruby do
-        begin
-          # gem 'buildr', '1.3.1.1'
-          # require 'buildr'
-          # FIXME: this is throwing rspec activation errors
-          sh %{jruby -S buildr package}
+    task :jruby do
+      begin
+        # gem 'buildr', '1.3.1.1'
+        # require 'buildr'
+        # FIXME: this is throwing rspec activation errors
+        sh %{jruby -S buildr package}
 
-          buildr_output = extension_name.gsub(/_(ext)$/, '-\1-java-1.0.jar')
-          cp &quot;ext-java/target/#{buildr_output}&quot;, &quot;lib/#{ext_name}&quot;
-        rescue LoadError
-          puts &quot;#{spec.name} requires the buildr gem to compile the Java extension&quot;
-        end
+        buildr_output = extension_name.gsub(/_(ext)$/, '-\1-java-1.0.jar')
+        cp &quot;ext-java/target/#{buildr_output}&quot;, &quot;lib/#{ext_name}&quot;
+      rescue LoadError
+        puts &quot;#{spec.name} requires the buildr gem to compile the Java extension&quot;
       end
     end
-    file &quot;lib/#{ext_name}&quot; =&gt; 'compile:jruby'
-
   end
+  file &quot;lib/#{ext_name}&quot; =&gt; 'compile:jruby'
+
 end</diff>
      <filename>tasks/ext_helper_java.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f8f2083d652821ee39f06f63ab37c9b870da506f</id>
    </parent>
  </parents>
  <author>
    <name>Alex Coles</name>
    <email>alex@alexcolesportfolio.com</email>
  </author>
  <url>http://github.com/sam/do/commit/bd7b3df7cdca9ab231fa5711cfcca269f681c40a</url>
  <id>bd7b3df7cdca9ab231fa5711cfcca269f681c40a</id>
  <committed-date>2009-01-04T16:10:27-08:00</committed-date>
  <authored-date>2009-01-04T16:10:27-08:00</authored-date>
  <message>[do_jdbc] A few fixes to get building on JRuby working once again

* Bracketed out rake-compiler requirement on JRuby.
* Reinstate the &quot;compile&quot; alias for compile:jruby, if running on that
  platform.

Signed-off-by: Alex Coles &lt;alex@alexcolesportfolio.com&gt;</message>
  <tree>2b5673ef3e56c24630502ddcbcc6b6dce85f9da2</tree>
  <committer>
    <name>Alex Coles</name>
    <email>alex@alexcolesportfolio.com</email>
  </committer>
</commit>
