buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Boisvert" <>
Subject Re: Anything Ruby Can Do?
Date Thu, 19 Jun 2008 21:46:30 GMT
On Thu, Jun 19, 2008 at 12:45 PM, Robert Stevenson <> wrote:

> Hey everyone!  I am going through the Buildr documentation and am
> stuck on the following section:
> Anything Ruby Can Do
> Where exactly in the buildfile should the "distro" method go in order
> to be able to call it from the "distro-axis2" project as in the Buildr
> manual?

The method can go in any parent scope or before the top-level project.

> Now, what if I had a method, ex "distro" that I wanted to call and
> wanted it called as the last thing in the "distro-axis2" project's
> build flow?

With Rake you can add processing to any task by using the "enhance" method,
such as:

project("foo").compile.enhance do
  # whatever you want to do

where "compile" can be any kind of project task, including "build",
"package", "test", etc.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message