Module | Buildr::Extension::ClassMethods |
In: |
lib/buildr/core/project.rb
(CVS)
|
Methods added to the extension module when including Extension.
This block is called once for the project with the project instance, right after running the project definition. You can use this to do any post-processing that depends on the project definition.
The block may be named and dependencies may be declared similar to Rake task dependencies:
after_define(:my_setup) do |project| # do stuff on project end # my_setup code must run before :compile (but only after project is defined) after_define(:compile => :my_setup)
This block is called once for the project with the project instance, right before running the project definition. You can use this to add tasks and set properties that will be used in the project definition.
The block may be named and dependencies may be declared similar to Rake task dependencies:
before_define(:my_setup) do |project| # do stuff on project end # my_setup code must run before :compile before_define(:compile => :my_setup)
This block will be called once for any particular extension included in Project. You can use this to setup top-level and local tasks.