You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by va...@apache.org on 2011/01/06 18:42:58 UTC

svn commit: r1055955 - in /ode/branches/ode-1.3.5.x: Rakefile dependencies.rb jbi-bundle/pom.xml jbi-bundle/src/main/filtered-resources/features.xml jbi-karaf/src/main/resources/features.xml

Author: vanto
Date: Thu Jan  6 17:42:57 2011
New Revision: 1055955

URL: http://svn.apache.org/viewvc?rev=1055955&view=rev
Log:
jbi osgi bundling fix.

Removed:
    ode/branches/ode-1.3.5.x/jbi-bundle/src/main/filtered-resources/features.xml
Modified:
    ode/branches/ode-1.3.5.x/Rakefile
    ode/branches/ode-1.3.5.x/dependencies.rb
    ode/branches/ode-1.3.5.x/jbi-bundle/pom.xml
    ode/branches/ode-1.3.5.x/jbi-karaf/src/main/resources/features.xml

Modified: ode/branches/ode-1.3.5.x/Rakefile
URL: http://svn.apache.org/viewvc/ode/branches/ode-1.3.5.x/Rakefile?rev=1055955&r1=1055954&r2=1055955&view=diff
==============================================================================
--- ode/branches/ode-1.3.5.x/Rakefile (original)
+++ ode/branches/ode-1.3.5.x/Rakefile Thu Jan  6 17:42:57 2011
@@ -461,6 +461,17 @@ define "ode" do
   define "jbi-karaf" do
     resources.filter.using(BUNDLE_VERSIONS)
     package :jar
+    # Generate features.xml
+    def package_as_feature(file_name)
+      file file_name => [_("src/main/resources/features.xml")] do
+        filter(_("src/main/resources")).include("features.xml").into(_("target")).using(BUNDLE_VERSIONS).run
+        mv _("target/features.xml"), file_name
+      end
+    end
+    def package_as_feature_spec(spec)
+      spec.merge({ :type=>:xml, :classifier=>'features' })
+    end
+    package(:feature)
   end
 
   desc "ODE JBI Bundle"
@@ -473,8 +484,7 @@ define "ode" do
                      COMMONS.primitives, COMMONS.io, DERBY, GERONIMO.connector, GERONIMO.transaction, JAXEN, JAVAX.connector, 
                      JAVAX.ejb, JAVAX.jms, JAVAX.persistence, JAVAX.stream, JAVAX.transaction, LOG4J, OPENJPA, 
                      SAXON, TRANQL, XALAN, XERCES, XMLBEANS, WSDL4J, KARAF)
-    compile.with projects("bpel-schemas", "jbi"), JBI, libs
-    filter('src/main/filtered-resources').into('target').using(BUNDLE_VERSIONS)
+    compile.with projects("bpel-schemas", "jbi", "bpel-api"), JBI, libs, KARAF, SPRING, SPRING_OSGI
 
     package(:bundle).tap do |bnd|
       # inline dao zip files
@@ -499,6 +509,7 @@ define "ode" do
       bnd['Bundle-Vendor'] = 'Apache Software Foundation'
       bnd['Bundle-License'] = 'http://www.apache.org/licenses/LICENSE-2.0'
       bnd['Bundle-DocURL'] = 'http://ode.apache.org'
+      bnd['Bundle-Name'] = 'Apache ODE :: BPEL Service Engine'
       bnd.classpath = [project.compile.target, bnd_libs, artifacts(project("jbi").package(:jar)), libs].flatten
 
       BUNDLE_VERSIONS.each {|key, value| bnd[key] = value }

Modified: ode/branches/ode-1.3.5.x/dependencies.rb
URL: http://svn.apache.org/viewvc/ode/branches/ode-1.3.5.x/dependencies.rb?rev=1055955&r1=1055954&r2=1055955&view=diff
==============================================================================
--- ode/branches/ode-1.3.5.x/dependencies.rb (original)
+++ ode/branches/ode-1.3.5.x/dependencies.rb Thu Jan  6 17:42:57 2011
@@ -79,6 +79,7 @@ JENCKS              = "org.jencks:jencks
 JIBX                = "org.jibx:jibx-run:jar:1.1.5"
 KARAF               = [
                         "org.apache.felix:org.osgi.core:jar:1.4.0",
+                        "org.apache.felix:org.osgi.compendium:jar:1.4.0",
                         "org.apache.felix.karaf.shell:org.apache.felix.karaf.shell.console:jar:1.0.0",
                         group("org.apache.felix.gogo.commands","org.apache.felix.gogo.runtime", 
                           :under=>"org.apache.felix.gogo", :version=>"0.2.0")
@@ -117,6 +118,7 @@ SERVICEMIX          = [
                         ]
 SLF4J = group(%w{ slf4j-api slf4j-log4j12 jcl104-over-slf4j }, :under=>"org.slf4j", :version=>"1.4.3")                        
 SPRING              = ["org.springframework:spring:jar:2.5.6"]
+SPRING_OSGI         = ["org.springframework.osgi:spring-osgi-core:jar:1.2.0"]
 TRANQL              = [ "tranql:tranql-connector:jar:1.1", COMMONS.primitives ]
 WOODSTOX            = "woodstox:wstx-asl:jar:3.2.4"
 WSDL4J              = "wsdl4j:wsdl4j:jar:1.6.2"

Modified: ode/branches/ode-1.3.5.x/jbi-bundle/pom.xml
URL: http://svn.apache.org/viewvc/ode/branches/ode-1.3.5.x/jbi-bundle/pom.xml?rev=1055955&r1=1055954&r2=1055955&view=diff
==============================================================================
--- ode/branches/ode-1.3.5.x/jbi-bundle/pom.xml (original)
+++ ode/branches/ode-1.3.5.x/jbi-bundle/pom.xml Thu Jan  6 17:42:57 2011
@@ -126,5 +126,20 @@ src/main/resources,
             <groupId>commons-io</groupId>
             <artifactId>commons-io</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.core</artifactId>
+            <version>4.2.0</version>
+        </dependency>
+        <dependency>
+           <groupId>org.osgi</groupId>
+           <artifactId>org.osgi.compendium</artifactId>
+           <version>4.2.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.osgi</groupId>
+            <artifactId>spring-osgi-core</artifactId>
+            <version>1.2.0</version>
+        </dependency>
     </dependencies>
 </project>

Modified: ode/branches/ode-1.3.5.x/jbi-karaf/src/main/resources/features.xml
URL: http://svn.apache.org/viewvc/ode/branches/ode-1.3.5.x/jbi-karaf/src/main/resources/features.xml?rev=1055955&r1=1055954&r2=1055955&view=diff
==============================================================================
--- ode/branches/ode-1.3.5.x/jbi-karaf/src/main/resources/features.xml (original)
+++ ode/branches/ode-1.3.5.x/jbi-karaf/src/main/resources/features.xml Thu Jan  6 17:42:57 2011
@@ -23,7 +23,7 @@
         <bundle>mvn:commons-beanutils/commons-beanutils/1.8.2</bundle>
         <bundle>mvn:commons-io/commons-io/1.4</bundle>
         <bundle>wrap:mvn:jaxen/jaxen/1.1.1</bundle>
-        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/9.1.0.8_1-SNAPSHOT</bundle>
+        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/9.1.0.8_1</bundle>
     </feature>
     <feature name="ode-core" version="${ode.version}">
         <bundle>mvn:org.apache.ode/ode-jbi-bundle/${ode.version}</bundle>
@@ -69,6 +69,9 @@
         <feature version="${ode.version}">ode-core-deps</feature>
         <feature version="${ode.version}">ode-core</feature>
     </feature>
+    <feature name="ode-commands" version="${ode.version}">
+        <bundle>mvn:org.apache.ode/ode-jbi-karaf-commands/${ode.version}</bundle>
+    </feature>
     <feature name="examples-ode-ping-pong" version="${ode.version}">
         <feature version="${ode.version}">ode</feature>
         <bundle>mvn:org.apache.ode.examples/ping-pong-bundle/${ode.version}</bundle>