# File lib/rake.rb, line 1877 1877: def const_warning(const_name) 1878: @const_warning ||= false 1879: if ! @const_warning 1880: puts %{WARNING: Deprecated reference to top-level constant '#{const_name}'} + 1881: %{found at: #{rakefile_location}} # ' 1882: puts %{ Use --classic-namespace on rake command} 1883: puts %{ or 'require "rake/classic_namespace"' in Rakefile} 1884: end 1885: @const_warning = true 1886: end