Method: Rake::Application#load_imports

Defined in:
lib/rake/application.rb

#load_importsObject

Load the pending list of imported files.



704
705
706
707
708
709
710
711
712
713
# File 'lib/rake/application.rb', line 704

def load_imports
  while fn = @pending_imports.shift
    next if @imported.member?(fn)
    fn_task = lookup(fn) and fn_task.invoke
    ext = File.extname(fn)
    loader = @loaders[ext] || @default_loader
    loader.load(fn)
    @imported << fn
  end
end