# File lib/rake.rb, line 876
876:   def when_writing(msg=nil)
877:     if RakeFileUtils.nowrite_flag
878:       puts "DRYRUN: #{msg}" if msg
879:     else
880:       yield
881:     end
882:   end