Newbie question: I would like to extend the default behavior of the compile
task.

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
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
end

thank you for your time,
Nikos

Reply via email to