# File lib/rake/task.rb, line 190
190:     def execute(args=nil)
191:       args ||= EMPTY_TASK_ARGS
192:       if application.options.dryrun
193:         $stderr.puts "** Execute (dry run) #{name}"
194:         return
195:       end
196:       if application.options.trace
197:         $stderr.puts "** Execute #{name}"
198:       end
199:       application.enhance_with_matching_rule(name) if @actions.empty?
200:       @actions.each do |act|
201:         case act.arity
202:         when 1
203:           act.call(self)
204:         else
205:           act.call(self, args)
206:         end
207:       end
208:     end