Call jruby from ant

I was asked to call buildr from ant (eclipse) and generally make some
work out-of-the-box, so that others that will use my buildfile, won’t
to move jar files around or configure anything.

I would like jruby to run on the same JVM instance as eclipse. The java
task does that by default but what are the necessary arguments
etc)? As the bsf thing needs downloading the jar etc, it is not an


<?xml version="1.0"?> ----------------buildfile--------------------- Project.local_task :hi define 'MyProject' do task :hi do |task| puts "buildr says hello"; end end

thank you for your time,

I’m pretty sure that Ant doesn’t run in the same instance as Eclipse
tried, the debug view shows that a new JVM is created).
Rather than using Ant, you can run programs directly in External Tools.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs