buildr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ittay Dror <ittay.d...@gmail.com>
Subject reuse of project task definitions
Date Tue, 22 Jul 2008 10:34:25 GMT
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.

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