class Rake::Application

def display_exception_backtrace(ex) # :nodoc:

:nodoc:
def display_exception_backtrace(ex) # :nodoc:
  if options.backtrace
    trace ex.backtrace.join("\n")
  else
    trace Backtrace.collapse(ex.backtrace).join("\n")
  end
end