buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikos Maris <>
Subject confused with enhance
Date Fri, 08 Oct 2010 09:33:59 GMT
Newbie question: I would like to extend the default behavior of the compile

I currently enhance the compile task of all sub-projects with a function
that takes a project as an argument in order to access methods like _() and
fields like compile.dependencies :
projects.each do |proj|
  proj.compile.enhance do copy_jars_to_lib proj; end

I would like to refactor this code and be able to commit that (e.g. adding
an extension at ~/.buildr is not an option).

I would like also to refactor the following code:
projects.each do |proj|
task :eclipse do unboundVAR proj; end

thank you for your time,

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