Author: boisvert
Date: Fri Aug  3 21:05:34 2007
New Revision: 562652

URL: http://svn.apache.org/viewvc?view=rev&rev=562652
Log:
ODE-165: Add database schemas to distro's, plus check 'n balance.

Modified:
    ode/trunk/Rakefile

Modified: ode/trunk/Rakefile
URL: 
http://svn.apache.org/viewvc/ode/trunk/Rakefile?view=diff&rev=562652&r1=562651&r2=562652
==============================================================================
--- ode/trunk/Rakefile (original)
+++ ode/trunk/Rakefile Fri Aug  3 21:05:34 2007
@@ -251,7 +251,7 @@
   define "scheduler-simple" do
     compile.with projects("bpel-api", "utils"), COMMONS.collections, 
COMMONS.logging, JAVAX.transaction
        test.compile.with HSQLDB, GERONIMO.kernel, GERONIMO.transaction
-       test.with HSQLDB, JAVAX.transaction, JAVAX.resource, JAVAX.connector, 
LOG4J, 
+       test.with HSQLDB, JAVAX.transaction, JAVAX.resource, JAVAX.connector, 
LOG4J,
           GERONIMO.kernel, GERONIMO.transaction, BACKPORT, JAVAX.ejb
     package :jar
   end
@@ -488,7 +488,14 @@
       # Including third party licenses
       Dir["#{project.path_to("license")}/*LICENSE"].each { |l| zip.include(l, 
:path=>"lib") }
       zip.include(project.path_to("target/LICENSE"))
+      # 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/
+      end
       yield zip
+      project.check zip, "should contain mysql.sql" do
+        it.should contain("sql/mysql.sql")
+      end
     end
   end
 
@@ -501,7 +508,7 @@
     build do
       Dir.mkdir(project.path_to("target")) unless 
File.exist?(project.path_to("target"))
       cp parent.path_to("LICENSE"), project.path_to("target/LICENSE")
-      File.open(project.path_to("target/LICENSE"), "a+") do |l| 
+      File.open(project.path_to("target/LICENSE"), "a+") do |l|
         l <<  Dir["#{project.path_to("license")}/*LICENSE"].map { |f| 
"lib/"+f[/[^\/]*$/] }.join("\n")
       end
     end


Reply via email to