Author: boisvert
Date: Thu Oct 15 04:51:49 2009
New Revision: 825392

URL: http://svn.apache.org/viewvc?rev=825392&view=rev
Log:
Make sure HBM files are tweaked before tests

Modified:
    ode/branches/APACHE_ODE_1.X/Rakefile

Modified: ode/branches/APACHE_ODE_1.X/Rakefile
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/Rakefile?rev=825392&r1=825391&r2=825392&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/Rakefile (original)
+++ ode/branches/APACHE_ODE_1.X/Rakefile Thu Oct 15 04:51:49 2009
@@ -379,7 +379,7 @@
     resources hibernate_doclet(:package=>"org.apache.ode.daohib.bpel.hobj", 
:excludedtags=>"@version,@author,@todo")
 
     # doclet does not support not-found="ignore"
-    build {
+    task "hbm-hack" do |task|
       process_instance_hbm_file = 
project.path_to("target/classes/org/apache/ode/daohib/bpel/hobj/HProcessInstance.hbm.xml")
 
       process_instance_hbm = File.read(process_instance_hbm_file)
       if !process_instance_hbm.include? "not-found=\"ignore\""
@@ -395,7 +395,8 @@
         content.insert(content.index("<class") - 1, typedef)
         File.open(hbm, "w") { |f| f << content }
       end
-    }
+    end
+    task "test" => "hbm-hack"
 
     test.with project("bpel-epr"), BACKPORT, COMMONS.collections, 
COMMONS.lang, HSQLDB,
       GERONIMO.transaction, GERONIMO.kernel, GERONIMO.connector, 
JAVAX.connector, JAVAX.ejb, SPRING


Reply via email to