On Tue, Jul 22, 2008 at 3:34 AM, Ittay Dror <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> > > >
