buildr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Assaf Arkin" <ar...@intalio.com>
Subject Re: reuse of project task definitions
Date Tue, 22 Jul 2008 16:38:25 GMT
On Tue, Jul 22, 2008 at 3:34 AM, Ittay Dror <ittay.dror@gmail.com> wrote:
> Hi,
>
> When creating a buildfile, several projects are identical in how they are
> built. Is there a way to define a set of tasks (and definitions) that they
> all share? in maven, this is the common lifecycle and mojo association, in
> gradle it is 'allprojects { // code to configure the projects}', i'm more
> interested in the possibility of the second choice.

http://incubator.apache.org/buildr/extending.html#creating_extensions

Assaf

>
> I thought of:
> define 'root' do
>  define 'A' do
>  end
>
>  define 'B' do
>  end
> end
>
> projects('A', 'B').each {|project| project.enhance {// code to configure the
> project }}
>
>
> But the thing is the project task is already invoked and so doesn't run the
> additional actions.
>
> Thanks
> Ittay
>
> --
> --
> Ittay Dror <ittay.dror@gmail.com>
>
>
>

Mime
View raw message