Skip to content

Commit

Permalink
updated changes, switch to Task.task_defined? in rules test.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/rake/trunk@398 5af023f1-ac1a-0410-98d6-829a145c37ef
  • Loading branch information
jimweirich committed Apr 8, 2005
1 parent 21757cf commit a0f54b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rake/CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
== Pre-Version 0.5.2

* Added support for importing Rakefile and other dependencies.
* Fixed bug so that now rules can chain off of existing tasks as well
as existing files.

== Version 0.5.1

Expand Down
2 changes: 1 addition & 1 deletion rake/lib/rake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def enhance_with_matching_rule(task_name, level=0)
else
fail "Don't know how to handle rule dependent: #{ext.inspect}"
end
if File.exist?(source) || TASKS.has_key?(source)
if File.exist?(source) || Task.task_defined?(source)
task = FileTask.define_task({task_name => [source]}, &block)
task.source = source
return task
Expand Down

0 comments on commit a0f54b8

Please sign in to comment.