# File lib/rake.rb, line 1134
1134:   def when_writing(msg=nil)
1135:     if RakeFileUtils.nowrite_flag
1136:       puts "DRYRUN: #{msg}" if msg
1137:     else
1138:       yield
1139:     end
1140:   end