Child pages
  • How to call Ant scripts
Skip to end of metadata
Go to start of metadata

How to call Ant scripts

To call an Ant script from Buildr, simply call Ant's main method using the Ruby-Java bridge (RJB):

define "my-project" do

 task :call_ant do
   p 'calling ant..' ['-file', 'build.xml', 'my-target'] )

And from the command-line you can call this task directly:

buildr my-project:call_ant
  • No labels