lib/buildr/core/compile.rb in vic-buildr-1.3.3 vs lib/buildr/core/compile.rb in vic-buildr-1.3.4
- old
+ new
@@ -405,11 +405,11 @@
def initialize(*args) #:nodoc:
super
@filter = Buildr::Filter.new
@filter.using Buildr.settings.profile['filter'] if Hash === Buildr.settings.profile['filter']
enhance do
- filter.run if target
+ target.invoke if target
end
end
# :call-seq:
# include(*files) => self
@@ -488,15 +488,9 @@
compile.send :associate_with, project, :main
project.recursive_task('compile')
end
after_define do |project|
- # TODO: Is this necessary?
- #if project.resources.target
- # file project.resources.target.to_s=>project.resources do |task|
- # mkpath task.name, :verbose=>false
- # end
- #end
if project.compile.target
# This comes last because the target path is set inside the project definition.
project.build project.compile.target
project.clean do
rm_rf project.compile.target.to_s, :verbose=>false