You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by as...@apache.org on 2007/03/05 21:16:20 UTC

svn commit: r514848 - /incubator/ode/trunk/Rakefile

Author: assaf
Date: Mon Mar  5 12:16:19 2007
New Revision: 514848

URL: http://svn.apache.org/viewvc?view=rev&rev=514848
Log:
Fixed building of Derby DB

Modified:
    incubator/ode/trunk/Rakefile

Modified: incubator/ode/trunk/Rakefile
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/Rakefile?view=diff&rev=514848&r1=514847&r2=514848
==============================================================================
--- incubator/ode/trunk/Rakefile (original)
+++ incubator/ode/trunk/Rakefile Mon Mar  5 12:16:19 2007
@@ -1,12 +1,10 @@
 require "buildr/lib/buildr.rb"
 require "open3"
 
-
 # Keep this structure to allow the build system to update version numbers.
-VERSION_NUMBER = "2.0-SNAPSHOT"
+VERSION_NUMBER = "2.1"
 NEXT_VERSION = "2.1"
 
-
 ANNONGEN            = "annogen:annogen:jar:0.1.0"
 ANT                 = "ant:ant:jar:1.6.5"
 AXIOM               = group("axiom-api", "axiom-impl", "axiom-dom", :under=>"org.apache.ws.commons.axiom", :version=>"1.2")
@@ -104,11 +102,13 @@
       WS_COMMONS.axiom, WS_COMMONS.neethi, WS_COMMONS.xml_schema,
       XALAN, XERCES
 
-    resources(
+    resources do |task|
       unzip(artifact("#{group}:ode-dao-jpa-ojpa-derby:zip:#{version}")).
-        into(path_to(:target_dir, "resources")),
+        into(path_to(:target_dir, "resources")).invoke
       #untar(artifact("#{group}:ode-dao-hibernate-db-derby:tar:#{version}")).
       #  into(path_to(:target_dir, "resources")),
+    end
+    resources(
       filter(path_to(:base_dir, "../axis2/src/main/wsdl/*")).into(path_to(:target_dir, "resources")),
       filter(path_to(:base_dir, "../bpel-schemas/src/main/xsd/pmapi.xsd")).into(path_to(:target_dir, "resources"))
     )
@@ -305,7 +305,7 @@
         stdin.puts "exit"
         stdin.close
         # Helps when dignosing SQL errors.
-        puts stdout.read if Rake.application.options.trace
+        returning(stdout.read) { |output| puts output if Rake.application.options.trace }
       end
       # Copy the SQL files into the database directory.
       filter(task.prerequisites).into("#{task.name}/jpadb").invoke