Method: Rake::Application#rakefile_location

Defined in:
lib/rake/application.rb

#rakefile_location(backtrace = caller) ⇒ Object



715
716
717
718
719
720
721
722
# File 'lib/rake/application.rb', line 715

def rakefile_location(backtrace=caller)
  backtrace.map { |t| t[/([^:]+):/, 1] }

  re = /^#{@rakefile}$/
  re = /#{re.source}/i if windows?

  backtrace.find { |str| str =~ re } || ''
end