# File addon/buildr/hibernate.rb, line 120 def hibernate_schemaexport(args, &block) path, arg_names, deps = Rake.application.resolve_args([args]) file(path).enhance { |task| unless task.respond_to? :ant #this is a hack. A better way to do the job is to create a real task for all this. class << task ; attr_accessor :ant ; end task.ant = Hibernate.schemaexport(hib_resolve_classpath) end } if block file(path).enhance(deps) { |task| block.call task, task.ant } else file(path).enhance deps end end