# File lib/rake.rb, line 627
627:   def when_writing(msg=nil)
628:     if $fileutils_nowrite
629:       puts "DRYRUN: #{msg}" if msg
630:     else
631:       yield
632:     end
633:   end