Author: assaf
Date: Mon Oct 20 10:03:24 2008
New Revision: 706340

URL: http://svn.apache.org/viewvc?rev=706340&view=rev
Log:
Added comment to explain circular dependency check.

Modified:
    incubator/buildr/trunk/lib/buildr/core/application.rb

Modified: incubator/buildr/trunk/lib/buildr/core/application.rb
URL: 
http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/buildr/core/application.rb?rev=706340&r1=706339&r2=706340&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/core/application.rb (original)
+++ incubator/buildr/trunk/lib/buildr/core/application.rb Mon Oct 20 10:03:24 
2008
@@ -568,6 +568,13 @@
 
 
 module Rake #:nodoc
+  # Rake's circular dependency checks (InvocationChain) only applies to task 
prerequisites,
+  # all other cases result in the non too-descriptive thread sleeping error. 
This change can
+  # deal with circular dependencies that occur from direct task invocation, 
e.g:
+  #   task 'foo'=>'bar'
+  #   task 'bar' do
+  #     task('foo').invoke
+  #   end
   class Task #:nodoc:
     def invoke(*args)
       task_args = TaskArguments.new(arg_names, args)


Reply via email to