class Cucumber::Rake::Task

def self.deprecate_accessor(attribute) # :nodoc:

:nodoc:
TODO: remove depreated accessors for 0.4.0
def self.deprecate_accessor(attribute) # :nodoc:
  attr_reader attribute
  class_eval <<-EOF, __FILE__, __LINE__ + 1
    def #{attribute}=(value)
      @#{attribute} = value
      warn("Cucumber::Rake::Task##{attribute} is deprecated and will be removed in 0.4.0.  Please use profiles for complex settings: http://wiki.github.com/aslakhellesoy/cucumber/using-rake#profiles")
    end
  EOF
end