# File lib/ant_task.rb, line 74
    def add_attributes(attributes)
      
      return if attributes == nil
      
      wrapper = ApacheAnt::RuntimeConfigurable.new(@unknown_element, @unknown_element.getTaskName());
      
      if(@project_wrapper.ant_version >= 1.6)
        attributes.each do |key, val| 
          apply_to_wrapper(wrapper, key.to_s, val){ |k,v| wrapper.setAttribute(k, v)}
        end
      else  
        @unknown_element.setRuntimeConfigurableWrapper(wrapper)
        attribute_list = XmlSax::AttributeListImpl.new()
        attributes.each do |key, val| 
          apply_to_wrapper(wrapper, key.to_s, val){ |k,v| attribute_list.addAttribute(k, 'CDATA', v)}
        end
        wrapper.setAttributes(attribute_list)
      end
      
    end