You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2007/04/05 00:49:13 UTC

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

Author: mriou
Date: Wed Apr  4 15:49:12 2007
New Revision: 525635

URL: http://svn.apache.org/viewvc?view=rev&rev=525635
Log:
Fixing OpenJPA enhancement, classes to be enhanced must be in the classpath.

Modified:
    incubator/ode/trunk/Rakefile

Modified: incubator/ode/trunk/Rakefile
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/Rakefile?view=diff&rev=525635&r1=525634&r2=525635
==============================================================================
--- incubator/ode/trunk/Rakefile (original)
+++ incubator/ode/trunk/Rakefile Wed Apr  4 15:49:12 2007
@@ -57,6 +57,7 @@
                        "net.sourceforge.serp:serp:jar:1.12.0"]
 QUARTZ              = "quartz:quartz:jar:1.5.2"
 SAXON               = group("saxon", "saxon-xpath", "saxon-dom", :under=>"net.sf.saxon", :version=>"8.7")
+SERVICEMIX          = group("servicemix-core", "servicemix-shared", :under=>"org.apache.servicemix", :version=>"3.1-incubating")
 TRANQL              = [ "tranql:tranql-connector:jar:1.1", "axion:axion:jar:1.0-M3-dev", COMMONS.primitives ]
 "regexp:regexp:jar:1.3"
 WOODSTOX            = "woodstox:wstx-asl:jar:3.0.1"
@@ -237,7 +238,7 @@
       COMMONS.logging, JAVAX.persistence, JAVAX.stream, HIBERNATE, HSQLDB, XMLBEANS, XERCES, WSDL4J
 
     compile do |task|
-      Java::OpenJPA.enhance(:output=>compile.target, :classpath=>compile.classpath,
+      Java::OpenJPA.enhance(:output=>compile.target, :classpath=>[compile.classpath, path_to(:java_target_dir)],
         :properties=>path_to(:resources_dir, "META-INF/persistence.xml"))
     end
 
@@ -310,7 +311,7 @@
       OPENJPA, XERCES
 
     compile do |task|
-      Java::OpenJPA.enhance :output=>compile.target, :classpath=>compile.classpath,
+      Java::OpenJPA.enhance :output=>compile.target, :classpath=>[compile.classpath, path_to(:java_target_dir)],
         :properties=>path_to(:resources_dir, "META-INF/persistence.xml" )
     end
     package :jar
@@ -410,6 +411,7 @@
       jbi.merge project("ode:dao-hibernate-db").package(:zip)
       jbi.merge project("ode:dao-jpa-ojpa-derby").package(:zip)
     end
+    tests.compile.with SERVICEMIX
   end
 
   desc "ODE JCA Resource Archive"