class Rake::Task
def execute(args=nil)
def execute(args=nil) args ||= EMPTY_TASK_ARGS if application.options.dryrun $stderr.puts "** Execute (dry run) #{name}" return end if application.options.trace $stderr.puts "** Execute #{name}" end application.enhance_with_matching_rule(name) if @actions.empty? @actions.each do |act| case act.arity when 1 act.call(self) else act.call(self, args) end end end