Jruby Ant and Rake integration

Hi,

We have a project being built with Rake while all the rest are built
with Ant. I am trying to call the rake build from within ant. I found an
interesting article on Jruby integration with ant and rake at
http://www.engineyard.com/blog/2010/rake-and-ant-together-a-pick-it-n-stick-it-approach/

Running the example, I am getting the below error. Could anyone please
point me in the right direction?

ant -v
Apache Ant version 1.7.1 compiled on June 27 2008
Buildfile: build.xml
Detected Java version: 1.6 in:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Detected OS: Mac OS X
parsing buildfile /Users/bvadavalli/build.xml with URI =
file:/Users/bvadavalli/build.xml
Project base dir set to: /Users/bvadavalli
[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apache/tools/ant/antlib.xml. It could not be found.
[rakeimport] LoadError: no such file to load – rake
[rakeimport] require at org/jruby/RubyKernel.java:1038
[rakeimport] require at
/opt/complete/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29
[rakeimport] (root) at
/opt/complete/META-INF/jruby.home/lib/ruby/site_ruby/shared/ant/tasks/raketasks.rb:2
[rakeimport] require at org/jruby/RubyKernel.java:1038
[rakeimport] (root) at
/opt/complete/META-INF/jruby.home/lib/ruby/site_ruby/shared/ant/tasks/raketasks.rb:1

BUILD FAILED
/Users/bvadavalli/build.xml:9: Could not create type rakeimport due to
org.jruby.embed.EvalFailedException: (LoadError) no such file to load –
rake
at
org.apache.tools.ant.AntTypeDefinition.createAndSet(AntTypeDefinition.java:261)
at
org.apache.tools.ant.AntTypeDefinition.icreate(AntTypeDefinition.java:202)
at
org.apache.tools.ant.AntTypeDefinition.create(AntTypeDefinition.java:189)
at
org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:238)
at
org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:216)
at
org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:414)
at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)