addon/buildr/path.rb
# ITTAY: using this increases run time by a large factor (30%). another alternative is to cache the tasks
#    # Lookup for a task using the given task_name.
#    # This method extends Rake's functionality to obtain the task for a file path
#    # or the build task if given a project basedir.
#    def lookup(task_name, initial_scope=nil) #nodoc:
#      unless task = super
#        original = File.expand_path(options.requested_workdir || '', original_dir)
#        path = File.expand_path(task_name, original)
#        if !(task = @tasks[path]) && project = Buildr::Project.local_projects(path).first
#          project_path = project.path_to(nil)
#          if project_path == path
#            task = @tasks[project.name + ':build']
#          else
#            project_task = path.sub(/^#{project_path}\/?/, '').gsub('/',':')
#            task = @tasks[project.name + ':' + project_task] || @tasks[project_task]
#          end
#        end
#      end
#      task
#    end
using this increases run time by a large factor (30%). another alternative is to cache the tasks
Lookup for a task using the given task_name.
This method extends Rake's functionality to obtain the task for a file path
or the build task if given a project basedir.
using this increases run time by a large factor ( 30% ) . another alternative is to cache the tasks Lookup for a task using the given task_name . This method extends Rake ' s functionality to obtain the task for a file path or the build task if given a project basedir .
def top_level 
      if options.requested_workproj
        @launch_dir = original_dir
        project = Project.resolve_project(options.requested_workproj)
        path = project.path_to(nil)
        Dir.chdir(@original_dir = path) if File.directory? path
      end
      super
    end
def top_level if options . requested_workproj @launch_dir = original_dir project = Project . resolve_project ( options . requested_workproj ) path = project . path_to ( nil ) Dir . chdir ( @original_dir = path ) if File . directory? path end super end
ITTAY: using this increases run time by a large factor (30%).
ITTAY : using this increases run time by a large factor ( 30% ) .
#:nodoc: