ODE-1039: Packaged OPENJPA and HIBERNATE generated database scripts in the distribution
diff --git a/Rakefile b/Rakefile
index 630cedc..a8c5f06 100644
--- a/Rakefile
+++ b/Rakefile
@@ -675,7 +675,11 @@
# Include supported database schemas
Dir["#{project("ode:dao-jpa-ojpa-derby").path_to("target")}/*.sql"].each do |f|
- zip.include(f, :path=>"sql") unless f =~ /partial/
+ zip.include(f, :path=>"sql/openjpa") unless f =~ /partial/
+ end
+
+ Dir["#{project("ode:dao-hibernate-db").path_to("target")}/*.sql"].each do |f|
+ zip.include(f, :path=>"sql/hibernate") unless f =~ /partial/
end
# Tools scripts (like bpelc and sendsoap)
@@ -690,7 +694,7 @@
yield zip
project.check zip, "should contain mysql.sql" do
- it.should contain("sql/mysql.sql")
+ it.should contain("sql/openjpa/mysql.sql")
end
project.check zip, "should contain sendsoap.bat" do
it.should contain("bin/sendsoap.bat")