class Rake::Application

def rakefile_location(backtrace=caller) # :nodoc:

:nodoc:
def rakefile_location(backtrace=caller) # :nodoc:
  backtrace.map { |t| t[/([^:]+):/, 1] }
  re = /^#{@rakefile}$/
  re = /#{re.source}/i if windows?
  backtrace.find { |str| str =~ re } || ""
end