# File lib/rake.rb, line 704
704:   def when_writing(msg=nil)
705:     if $fileutils_nowrite
706:       puts "DRYRUN: #{msg}" if msg
707:     else
708:       yield
709:     end
710:   end