# File lib/rake.rb, line 1425 1425: def const_warning(const_name) 1426: @const_warning ||= false 1427: if ! @const_warning 1428: puts %{WARNING: Deprecated reference to top-level constant '#{const_name}'} + 1429: %{found at: #{rakefile_location}} 1430: puts %{ Use --classic-namespace on rake command} 1431: puts %{ or 'require "rake/classic_namespace"' in Rakefile} 1432: end 1433: @const_warning = true 1434: end