lib/buildr/hibernate.rb in buildr-1.2.0 vs lib/buildr/hibernate.rb in buildr-1.2.1
- old
+ new
@@ -10,11 +10,12 @@
:collections => "commons-collections:commons-collections:jar:3.1",
:logging => "commons-logging:commons-logging:jar:1.0.3",
:dom4j => "dom4j:dom4j:jar:1.6.1",
:hibernate => "org.hibernate:hibernate:jar:3.1.2",
:xdoclet => Buildr.group("xdoclet", "xdoclet-xdoclet-module", "xdoclet-hibernate-module",
- :under=>"xdoclet", :version=>"1.2.3") + ["xdoclet:xjavadoc:jar:1.1-j5"]
+ # :under=>"xdoclet", :version=>"1.2.3") + ["xdoclet:xjavadoc:jar:1.1-j5"]
+ :under=>"xdoclet", :version=>"1.2.3") + ["xdoclet:xjavadoc:jar:1.1"]
)
class << self
include Buildr::Ant
@@ -48,13 +49,13 @@
# Runs the Hibernate SchemaExportTask with the specified properties. For example:
# Buildr::Hibernate.schemaexport(:properties=>properties.to_s, :quiet=>"yes", :text=>"yes", :delimiter=>";",
# :drop=>"no", :create=>"yes", :output=>target) do
# fileset :dir=>source.to_s, :includes=>"**/*.hbm.xml"
# end
- def schemaexport(options = nil, &block)
+ def schemaexport(options = nil)
ant "schemaexport" do |ant|
ant.taskdef :name=>"schemaexport", :classname=>"org.hibernate.tool.hbm2ddl.SchemaExportTask", :classpath=>requires
- ant.schemaexport options, &block if options
+ ant.schemaexport(options) { yield ant if block_given? } if options
end
end
protected