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

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

----------------build.xml---------------------
<?xml version="1.0"?>
<project default="main" basedir=".">
<target name="main">
 <exec executable="C:\jruby-1.5.2\bin\jruby.bat">
<arg value="-J-classpath" />
 <arg value="'C:\Program Files\Java\jdk1.6.0_21\lib\tools.jar'" />
<arg value="-S" />
 <arg value="buildr" />
<arg value="hi" />
 </exec>
</target>
</project>
----------------buildfile---------------------
Project.local_task :hi
define 'MyProject' do
task :hi do |task| puts "buildr says hello"; end
end

thank you for your time,
Nikos

Reply via email to