Skip to content

Commit

Permalink
Fix 21922 -- Task#prerequistes returns namespace-unqualifed task names
Browse files Browse the repository at this point in the history
  • Loading branch information
quix committed Sep 12, 2008
1 parent 1aa0934 commit 0e9fa0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rake/parallel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ def invoke_parallel_tasks
parallel_tasks.each_pair { |task_name, task_args|
task = self[task_name]
children_names = task.prerequisites.map { |child|
child.to_sym
if child_name = (lookup(child) or lookup(child, task.scope))
child_name.name.to_sym
else
raise "couldn't resolve #{task_name} prereq: #{child_name}"
end
}
driver.define(task_name.to_sym, *children_names) {
task.execute(task_args)
Expand Down

0 comments on commit 0e9fa0e

Please sign in to comment.