# File lib/rake.rb, line 1983 1983: def const_warning(const_name) 1984: @const_warning ||= false 1985: if ! @const_warning 1986: $stderr.puts %{WARNING: Deprecated reference to top-level constant '#{const_name}' } + 1987: %{found at: #{rakefile_location}} # ' 1988: $stderr.puts %{ Use --classic-namespace on rake command} 1989: $stderr.puts %{ or 'require "rake/classic_namespace"' in Rakefile} 1990: end 1991: @const_warning = true 1992: end