/tools/Ruby/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/rule_recursion_overflow_error.rb

http://github.com/agross/netopenspace · Ruby · 20 lines · 14 code · 5 blank · 1 comment · 0 complexity · e8e274341240b4b7348aa77aac20557b MD5 · raw file

  1. module Rake
  2. # Error indicating a recursion overflow error in task selection.
  3. class RuleRecursionOverflowError < StandardError
  4. def initialize(*args)
  5. super
  6. @targets = []
  7. end
  8. def add_target(target)
  9. @targets << target
  10. end
  11. def message
  12. super + ": [" + @targets.reverse.join(' => ') + "]"
  13. end
  14. end
  15. end