? flush_stdout_when_executing_tasks.patch
? test/test_flush.rb
? test/data/flush
Index: lib/rake.rb
===================================================================
RCS file: /var/cvs/rake/rake/lib/rake.rb,v
retrieving revision 1.139
diff -u -r1.139 rake.rb
--- lib/rake.rb	22 May 2006 09:54:46 -0000	1.139
+++ lib/rake.rb	27 May 2006 16:44:07 -0000
@@ -378,10 +378,12 @@
     def execute
       if application.options.dryrun
         puts "** Execute (dry run) #{name}"
+        $stdout.flush
         return
       end
       if application.options.trace
         puts "** Execute #{name}"
+        $stdout.flush
       end
       application.enhance_with_matching_rule(name) if @actions.empty?
       @actions.each { |act| result = act.call(self) }



