# File lib/rake.rb, line 1047
1047:   def when_writing(msg=nil)
1048:     if RakeFileUtils.nowrite_flag
1049:       puts "DRYRUN: #{msg}" if msg
1050:     else
1051:       yield
1052:     end
1053:   end