Repository: ode Updated Branches: refs/heads/master e6082aafa -> 9a552fc44
ODE-1067: Removed JBI projects from build Project: http://git-wip-us.apache.org/repos/asf/ode/repo Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/9a552fc4 Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/9a552fc4 Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/9a552fc4 Branch: refs/heads/master Commit: 9a552fc4402137aa40419ab79633ce73c9d835b9 Parents: e6082aa Author: sathwik <[email protected]> Authored: Tue Nov 28 12:36:31 2017 +0530 Committer: sathwik <[email protected]> Committed: Tue Nov 28 12:36:31 2017 +0530 ---------------------------------------------------------------------- Rakefile | 368 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 184 insertions(+), 184 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ode/blob/9a552fc4/Rakefile ---------------------------------------------------------------------- diff --git a/Rakefile b/Rakefile index 73d3f31..ba3ce52 100644 --- a/Rakefile +++ b/Rakefile @@ -483,187 +483,187 @@ define "ode" do package(:zip).include(derby_db, h2_db) end - desc "ODE JBI Integration Layer" - define "jbi" do - compile.with projects("bpel-api", "bpel-connector", "bpel-dao", "bpel-epr", "bpel-nobj", - "bpel-runtime", "scheduler-simple", "bpel-schemas", "bpel-store", "utils", "agents"), - AXIOM, COMMONS.pool, JAVAX.transaction, GERONIMO.transaction, JBI, SLF4J, LOG4J2, WSDL4J, XERCES - - package(:jar) - package(:jbi).tap do |jbi| - libs = artifacts(package(:jar), - projects("bpel-api", "bpel-api-jca", "bpel-compiler", "bpel-connector", "bpel-dao", - "bpel-epr", "jca-ra", "jca-server", "bpel-nobj", "bpel-ql", "bpel-runtime", - "scheduler-simple", "bpel-schemas", "bpel-store", "dao-hibernate", "dao-jpa", "utils", "agents"), - ANT, AXIOM, BACKPORT, COMMONS.codec, COMMONS.collections, COMMONS.dbcp, COMMONS.lang, COMMONS.pool, - COMMONS.primitives, DERBY, GERONIMO.connector, GERONIMO.transaction, JACOB, JAVAX.connector, - JAVAX.ejb, JAVAX.jms, JAVAX.persistence, JAVAX.stream, JAVAX.transaction, JAXEN, OPENJPA, - SAXON, TRANQL, XALAN, XERCES, XMLBEANS, WSDL4J) - - jbi.component :type=>:service_engine, :name=>"OdeBpelEngine", :description=>self.comment - jbi.component :class_name=>"org.apache.ode.jbi.OdeComponent", :libs=>libs - jbi.bootstrap :class_name=>"org.apache.ode.jbi.OdeBootstrap", :libs=>libs - jbi.merge project("dao-hibernate-db").package(:zip) - jbi.merge project("dao-jpa-ojpa-derby").package(:zip) - jbi.include path_to("src/main/jbi/ode-jbi.properties") - end - - test.using :properties=>{ "java.naming.factory.initial" => "org.apache.xbean.spring.jndi.SpringInitialContextFactory", "org.apache.ode.autoRetireProcess"=>"true"}, :java_args=>(ENV['TEST_JVM_ARGS']||='').split(' ') - test.with projects("dao-jpa", "dao-hibernate", "bpel-compiler", "bpel-api-jca", "jca-ra", "jca-server", "bpel-obj"), - BACKPORT, COMMONS.lang, COMMONS.io, COMMONS.collections, DERBY, GERONIMO.connector, GERONIMO.kernel, - GERONIMO.transaction, JACOB, JAVAX.connector, JAVAX.ejb, JAVAX.persistence, JAVAX.stream, - JAVAX.transaction, JAXEN, JBI, OPENJPA, SAXON, SERVICEMIX, SPRING, TRANQL, - XALAN, XBEAN, XMLBEANS, - SLF4J, - LOG4J2, - DOM4J, - HIBERNATE, - JACKSON - test.setup unzip(_("target/test/smx/ode")=>project("dao-jpa-ojpa-derby").package(:zip)) - test.setup unzip(_("target/test/smx/ode")=>project("dao-hibernate-db").package(:zip)) - test.setup task(:prepare_jbi_tests) do |task| - cp _("src/test/jbi/ode-jbi.properties"), _("target/test/smx/ode") - cp _("src/main/jbi/hibernate.properties"), _("target/test/smx/ode") - rm_rf Dir["target/test/resources"] - cp_r _("src/test/resources"), _("target/test/") - end - test.exclude '*TestBase', 'org.apache.ode.jbi.OdeJbiComponentLifeCycleTest', 'org.apache.ode.jbi.ReplayerJbiTest' - end - - desc "ODE Commmands for Karaf" - define "jbi-karaf-commands" do - compile.with projects("bpel-schemas", "jbi"), JBI, KARAF, XMLBEANS, SLF4J, LOG4J2 - libs = artifacts(projects("bpel-schemas", "jbi"), JBI, KARAF, XMLBEANS, SLF4J, LOG4J2) - package(:bundle).tap do |bnd| - bnd.classpath = [_("target/classes"), libs].flatten - BUNDLE_VERSIONS.each {|key, value| bnd[key] = value } - bnd['Bundle-Name'] = "Apache ODE :: Commands" - bnd['Bundle-Version'] = VERSION_NUMBER - bnd['Require-Bundle'] = "org.apache.ode.ode-jbi-bundle;bundle-version=#{osgi_version_for(VERSION_NUMBER)}" - bnd['Import-Package'] = 'org.apache.karaf.shell.console,*' - bnd['Private-Package'] = "org.apache.ode.karaf.commands;version=#{VERSION_NUMBER}" - bnd['Include-Resource'] = _('src/main/resources') - bnd['-versionpolicy'] = BND_VERSION_POLICY - end - end - - desc "ODE Examples for Karaf" - define "jbi-karaf-examples", - :group => "org.apache.ode.examples", - :base_dir => "distro/src/examples-jbi/maven2" do - - define "helloworld2-osgi" do - package(:bundle, :id => "helloworld-bundle").tap do |bnd| - bnd.classpath = [KARAF, project("ode:jbi-bundle")] - bnd['Bundle-Name'] = "Apache ODE :: Hello World Example" - bnd['Bundle-SymbolicName'] = "org.apache.ode.examples-helloworld2-bundle" - bnd['Bundle-Version'] = VERSION_NUMBER - bnd['Require-Bundle'] = "org.apache.ode.ode-jbi-bundle;bundle-version=#{osgi_version_for(VERSION_NUMBER)}" - bnd['Import-Package'] = "org.apache.servicemix.cxfbc,org.apache.servicemix.common.osgi" - bnd['Export-Package'] = "" - bnd['-exportcontents'] = "" - bnd['Include-Resource'] = _('src/main/resources') - bnd['-versionpolicy'] = BND_VERSION_POLICY - end - # we package sources and javadocs separately to give them a custom id - package(:sources, :id => "helloworld-bundle") - - # This project does not contain java classes, hence there are no javadocs. - # But since Nexus will complain about a missing javadoc artifact, we make sure that an empty one is created. - package(:javadoc, :id => "helloworld-bundle").enhance { mkdir_p _("target/doc") } - end - - define "ping-pong-osgi" do - compile - package(:bundle, :id => "ping-pong-bundle").tap do |bnd| - bnd.classpath = [_("target/classes"), KARAF, project("ode:jbi-bundle")].flatten - bnd['Bundle-Name'] = "Apache ODE :: Ping-Pong Example" - bnd['Bundle-SymbolicName'] = "org.apache.ode.examples-ping-pong-bundle" - bnd['Bundle-Version'] = VERSION_NUMBER - bnd['Require-Bundle'] = "org.apache.ode.ode-jbi-bundle;bundle-version=#{osgi_version_for(VERSION_NUMBER)}" - bnd['Import-Package'] = "org.apache.servicemix.cxfbc,org.apache.servicemix.common.osgi" - bnd['Export-Package'] = "org.apache.ode.ping" - bnd['Include-Resource'] = _('src/main/resources') - bnd['-versionpolicy'] = BND_VERSION_POLICY - end - - # we package sources and javadocs separately to give them a custom id - package(:sources, :id => "ping-pong-bundle") - package(:javadoc, :id => "ping-pong-bundle") - end - end - - define "jbi-karaf-pmapi-httpbinding" do - package(:bundle).tap do |bnd| - bnd.classpath = [KARAF, project("ode:jbi-bundle")] - bnd['Bundle-Name'] = "Apache ODE :: PMAPI HTTP Binding" - bnd['Bundle-SymbolicName'] = "org.apache.ode-pmapi-httpbinding" - bnd['Bundle-Version'] = VERSION_NUMBER - bnd['Require-Bundle'] = "org.apache.ode.ode-jbi-bundle;bundle-version=#{osgi_version_for(VERSION_NUMBER)}" - bnd['Import-Package'] = "org.apache.servicemix.cxfbc,org.apache.servicemix.common.osgi" - bnd['-exportcontents'] = "" - bnd['Include-Resource'] = _('src/main/resources') - end - end - - desc "ODE JBI Packaging for Karaf" - 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" - define "jbi-bundle" do - ode_libs = artifacts(projects("bpel-api", "bpel-api-jca", "bpel-compiler", "bpel-connector", "bpel-dao", "bpel-epr", - "jca-ra", "jca-server", "bpel-nobj", "bpel-obj", "bpel-ql", "bpel-runtime", "scheduler-simple", - "bpel-schemas", "bpel-store", "dao-hibernate", "dao-jpa", "utils", "agents")) - libs = artifacts(ANT, AXIOM, BACKPORT, COMMONS.codec, COMMONS.collections, COMMONS.dbcp, COMMONS.lang, COMMONS.pool, - COMMONS.primitives, COMMONS.io, DERBY, GERONIMO.connector, GERONIMO.transaction, JACOB, JAVAX.connector, - JAVAX.ejb, JAVAX.jms, JAVAX.persistence, JAVAX.stream, JAVAX.transaction, JAXEN, LOG4J2, OPENJPA, - SAXON, TRANQL, XALAN, XERCES, XMLBEANS, WSDL4J, KARAF) - compile.with projects("bpel-schemas", "jbi", "bpel-api"), JBI, libs, KARAF, SPRING, SPRING_OSGI - - package(:bundle).tap do |bnd| - # inline dao zip files - zips = artifacts(project("dao-hibernate-db").package(:zip), project("dao-jpa-ojpa-derby").package(:zip)) - inlines = zips.map{|item| "@" + item.to_s} - - # embed jars - bnd_libs = ode_libs + artifacts(AXIOM, BACKPORT, GERONIMO.connector, JAXEN, - JAVAX.connector, JAVAX.persistence, JAVAX.ejb, - OPENJPA, SAXON, TRANQL, - XALAN, XERCES, XMLBEANS, WSDL4J) - includes = bnd_libs.map{|item| File.basename(item.to_s)} - bnd["includes"] = includes.join(', ') - - # embedd *.xsd, *.xml, xmlbeans* from ode libs - embedres = ode_libs.map {|pkg| ['**.xsd', '**.xml', 'schemaorg_apache_xmlbeans/**'].map {|x| '@' + pkg.to_s + '!/' + x}}.join(', ') - bnd['Export-Package'] = "org.apache.ode*;version=#{VERSION_NUMBER};-split-package:=merge-first" - bnd['Import-Package'] = '!org.apache.axis2.client*, !org.apache.ode*, javax.jbi*;version="1.0", javax.transaction*;version="[1.1,1.2)", javax.xml.stream;version="[1.0,2)", org.apache.axiom*;resolution:=optional, org.apache.axis2*;resolution:=optional, org.apache.commons.beanutils;version="[1.8,2)", org.apache.commons.collections*;version="[3.2,4)", org.apache.commons.httpclient*;resolution:=optional, org.apache.commons.io;version="[1.4,2)", org.apache.commons.lang;version="[2.4,3)", org.apache.commons.logging*;version="[1.1,1.2)", org.apache.derby.jdbc;resolution:=optional, org.apache.geronimo.transaction.manager;version="[2,3)", org.apache.openjpa.jdbc.kernel;version="1.2.1", org.springframework.osgi.service.exporter.support, org.osgi.service.cm, org.springframework.osgi.compendium.cm, com.ibm.wsdl*;version="[1.6,2)", org.apache.xmlbeans.impl.schema;version="[2.5,3)", org.apache.xmlbeans*;version="[2.5,3)", org.hibernate*;resolution:=optional, org.hsqldb.jdbc;resolution:=opti onal, org.osgi.framework;version="[1.5,2)", org.osgi.util.tracker;version="[1.4,2)", org.springframework.beans.factory*;version="[2.5,4)", org.springframework.context*;version="[2.5,4)", org.springframework.osgi.context;version="[1.2,2)", net.sf.saxon.event;version="[9.1,9.2)", net.sf.saxon*;version="[9.1,9.2)",javax.wsdl*;version="[1.2,2)",javax.resource*;version="[1.5, 2]",org.apache.geronimo.connector.outbound*;version="[2.1,3)",org.apache.log4j*;version="[1.2,2)",org.apache.openjpa*;version="[1.2,2)",*' - bnd['Embed-Dependency'] = '*;inline=**.xsd|schemaorg_apache_xmlbeans/**|**.xml' - bnd['DynamicImport-Package'] = '*' - bnd['Include-Resource'] = [embedres, _('src/main/resources'), inlines].flatten.join(', ') - 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['-versionpolicy'] = BND_VERSION_POLICY - bnd.classpath = [project.compile.target, bnd_libs, artifacts(project("jbi").package(:jar)), libs].flatten - - BUNDLE_VERSIONS.each {|key, value| bnd[key] = value } - end - end +# desc "ODE JBI Integration Layer" +# define "jbi" do +# compile.with projects("bpel-api", "bpel-connector", "bpel-dao", "bpel-epr", "bpel-nobj", +# "bpel-runtime", "scheduler-simple", "bpel-schemas", "bpel-store", "utils", "agents"), +# AXIOM, COMMONS.pool, JAVAX.transaction, GERONIMO.transaction, JBI, SLF4J, LOG4J2, WSDL4J, XERCES +# +# package(:jar) +# package(:jbi).tap do |jbi| +# libs = artifacts(package(:jar), +# projects("bpel-api", "bpel-api-jca", "bpel-compiler", "bpel-connector", "bpel-dao", +# "bpel-epr", "jca-ra", "jca-server", "bpel-nobj", "bpel-ql", "bpel-runtime", +# "scheduler-simple", "bpel-schemas", "bpel-store", "dao-hibernate", "dao-jpa", "utils", "agents"), +# ANT, AXIOM, BACKPORT, COMMONS.codec, COMMONS.collections, COMMONS.dbcp, COMMONS.lang, COMMONS.pool, +# COMMONS.primitives, DERBY, GERONIMO.connector, GERONIMO.transaction, JACOB, JAVAX.connector, +# JAVAX.ejb, JAVAX.jms, JAVAX.persistence, JAVAX.stream, JAVAX.transaction, JAXEN, OPENJPA, +# SAXON, TRANQL, XALAN, XERCES, XMLBEANS, WSDL4J) +# +# jbi.component :type=>:service_engine, :name=>"OdeBpelEngine", :description=>self.comment +# jbi.component :class_name=>"org.apache.ode.jbi.OdeComponent", :libs=>libs +# jbi.bootstrap :class_name=>"org.apache.ode.jbi.OdeBootstrap", :libs=>libs +# jbi.merge project("dao-hibernate-db").package(:zip) +# jbi.merge project("dao-jpa-ojpa-derby").package(:zip) +# jbi.include path_to("src/main/jbi/ode-jbi.properties") +# end +# +# test.using :properties=>{ "java.naming.factory.initial" => "org.apache.xbean.spring.jndi.SpringInitialContextFactory", "org.apache.ode.autoRetireProcess"=>"true"}, :java_args=>(ENV['TEST_JVM_ARGS']||='').split(' ') +# test.with projects("dao-jpa", "dao-hibernate", "bpel-compiler", "bpel-api-jca", "jca-ra", "jca-server", "bpel-obj"), +# BACKPORT, COMMONS.lang, COMMONS.io, COMMONS.collections, DERBY, GERONIMO.connector, GERONIMO.kernel, +# GERONIMO.transaction, JACOB, JAVAX.connector, JAVAX.ejb, JAVAX.persistence, JAVAX.stream, +# JAVAX.transaction, JAXEN, JBI, OPENJPA, SAXON, SERVICEMIX, SPRING, TRANQL, +# XALAN, XBEAN, XMLBEANS, +# SLF4J, +# LOG4J2, +# DOM4J, +# HIBERNATE, +# JACKSON +# test.setup unzip(_("target/test/smx/ode")=>project("dao-jpa-ojpa-derby").package(:zip)) +# test.setup unzip(_("target/test/smx/ode")=>project("dao-hibernate-db").package(:zip)) +# test.setup task(:prepare_jbi_tests) do |task| +# cp _("src/test/jbi/ode-jbi.properties"), _("target/test/smx/ode") +# cp _("src/main/jbi/hibernate.properties"), _("target/test/smx/ode") +# rm_rf Dir["target/test/resources"] +# cp_r _("src/test/resources"), _("target/test/") +# end +# test.exclude '*TestBase', 'org.apache.ode.jbi.OdeJbiComponentLifeCycleTest', 'org.apache.ode.jbi.ReplayerJbiTest' +# end +# +# desc "ODE Commmands for Karaf" +# define "jbi-karaf-commands" do +# compile.with projects("bpel-schemas", "jbi"), JBI, KARAF, XMLBEANS, SLF4J, LOG4J2 +# libs = artifacts(projects("bpel-schemas", "jbi"), JBI, KARAF, XMLBEANS, SLF4J, LOG4J2) +# package(:bundle).tap do |bnd| +# bnd.classpath = [_("target/classes"), libs].flatten +# BUNDLE_VERSIONS.each {|key, value| bnd[key] = value } +# bnd['Bundle-Name'] = "Apache ODE :: Commands" +# bnd['Bundle-Version'] = VERSION_NUMBER +# bnd['Require-Bundle'] = "org.apache.ode.ode-jbi-bundle;bundle-version=#{osgi_version_for(VERSION_NUMBER)}" +# bnd['Import-Package'] = 'org.apache.karaf.shell.console,*' +# bnd['Private-Package'] = "org.apache.ode.karaf.commands;version=#{VERSION_NUMBER}" +# bnd['Include-Resource'] = _('src/main/resources') +# bnd['-versionpolicy'] = BND_VERSION_POLICY +# end +# end +# +# desc "ODE Examples for Karaf" +# define "jbi-karaf-examples", +# :group => "org.apache.ode.examples", +# :base_dir => "distro/src/examples-jbi/maven2" do +# +# define "helloworld2-osgi" do +# package(:bundle, :id => "helloworld-bundle").tap do |bnd| +# bnd.classpath = [KARAF, project("ode:jbi-bundle")] +# bnd['Bundle-Name'] = "Apache ODE :: Hello World Example" +# bnd['Bundle-SymbolicName'] = "org.apache.ode.examples-helloworld2-bundle" +# bnd['Bundle-Version'] = VERSION_NUMBER +# bnd['Require-Bundle'] = "org.apache.ode.ode-jbi-bundle;bundle-version=#{osgi_version_for(VERSION_NUMBER)}" +# bnd['Import-Package'] = "org.apache.servicemix.cxfbc,org.apache.servicemix.common.osgi" +# bnd['Export-Package'] = "" +# bnd['-exportcontents'] = "" +# bnd['Include-Resource'] = _('src/main/resources') +# bnd['-versionpolicy'] = BND_VERSION_POLICY +# end +# # we package sources and javadocs separately to give them a custom id +# package(:sources, :id => "helloworld-bundle") +# +# # This project does not contain java classes, hence there are no javadocs. +# # But since Nexus will complain about a missing javadoc artifact, we make sure that an empty one is created. +# package(:javadoc, :id => "helloworld-bundle").enhance { mkdir_p _("target/doc") } +# end +# +# define "ping-pong-osgi" do +# compile +# package(:bundle, :id => "ping-pong-bundle").tap do |bnd| +# bnd.classpath = [_("target/classes"), KARAF, project("ode:jbi-bundle")].flatten +# bnd['Bundle-Name'] = "Apache ODE :: Ping-Pong Example" +# bnd['Bundle-SymbolicName'] = "org.apache.ode.examples-ping-pong-bundle" +# bnd['Bundle-Version'] = VERSION_NUMBER +# bnd['Require-Bundle'] = "org.apache.ode.ode-jbi-bundle;bundle-version=#{osgi_version_for(VERSION_NUMBER)}" +# bnd['Import-Package'] = "org.apache.servicemix.cxfbc,org.apache.servicemix.common.osgi" +# bnd['Export-Package'] = "org.apache.ode.ping" +# bnd['Include-Resource'] = _('src/main/resources') +# bnd['-versionpolicy'] = BND_VERSION_POLICY +# end +# +# # we package sources and javadocs separately to give them a custom id +# package(:sources, :id => "ping-pong-bundle") +# package(:javadoc, :id => "ping-pong-bundle") +# end +# end +# +# define "jbi-karaf-pmapi-httpbinding" do +# package(:bundle).tap do |bnd| +# bnd.classpath = [KARAF, project("ode:jbi-bundle")] +# bnd['Bundle-Name'] = "Apache ODE :: PMAPI HTTP Binding" +# bnd['Bundle-SymbolicName'] = "org.apache.ode-pmapi-httpbinding" +# bnd['Bundle-Version'] = VERSION_NUMBER +# bnd['Require-Bundle'] = "org.apache.ode.ode-jbi-bundle;bundle-version=#{osgi_version_for(VERSION_NUMBER)}" +# bnd['Import-Package'] = "org.apache.servicemix.cxfbc,org.apache.servicemix.common.osgi" +# bnd['-exportcontents'] = "" +# bnd['Include-Resource'] = _('src/main/resources') +# end +# end +# +# desc "ODE JBI Packaging for Karaf" +# 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" +# define "jbi-bundle" do +# ode_libs = artifacts(projects("bpel-api", "bpel-api-jca", "bpel-compiler", "bpel-connector", "bpel-dao", "bpel-epr", +# "jca-ra", "jca-server", "bpel-nobj", "bpel-obj", "bpel-ql", "bpel-runtime", "scheduler-simple", +# "bpel-schemas", "bpel-store", "dao-hibernate", "dao-jpa", "utils", "agents")) +# libs = artifacts(ANT, AXIOM, BACKPORT, COMMONS.codec, COMMONS.collections, COMMONS.dbcp, COMMONS.lang, COMMONS.pool, +# COMMONS.primitives, COMMONS.io, DERBY, GERONIMO.connector, GERONIMO.transaction, JACOB, JAVAX.connector, +# JAVAX.ejb, JAVAX.jms, JAVAX.persistence, JAVAX.stream, JAVAX.transaction, JAXEN, LOG4J2, OPENJPA, +# SAXON, TRANQL, XALAN, XERCES, XMLBEANS, WSDL4J, KARAF) +# compile.with projects("bpel-schemas", "jbi", "bpel-api"), JBI, libs, KARAF, SPRING, SPRING_OSGI +# +# package(:bundle).tap do |bnd| +# # inline dao zip files +# zips = artifacts(project("dao-hibernate-db").package(:zip), project("dao-jpa-ojpa-derby").package(:zip)) +# inlines = zips.map{|item| "@" + item.to_s} +# +# # embed jars +# bnd_libs = ode_libs + artifacts(AXIOM, BACKPORT, GERONIMO.connector, JAXEN, +# JAVAX.connector, JAVAX.persistence, JAVAX.ejb, +# OPENJPA, SAXON, TRANQL, +# XALAN, XERCES, XMLBEANS, WSDL4J) +# includes = bnd_libs.map{|item| File.basename(item.to_s)} +# bnd["includes"] = includes.join(', ') +# +# # embedd *.xsd, *.xml, xmlbeans* from ode libs +# embedres = ode_libs.map {|pkg| ['**.xsd', '**.xml', 'schemaorg_apache_xmlbeans/**'].map {|x| '@' + pkg.to_s + '!/' + x}}.join(', ') +# bnd['Export-Package'] = "org.apache.ode*;version=#{VERSION_NUMBER};-split-package:=merge-first" +# bnd['Import-Package'] = '!org.apache.axis2.client*, !org.apache.ode*, javax.jbi*;version="1.0", javax.transaction*;version="[1.1,1.2)", javax.xml.stream;version="[1.0,2)", org.apache.axiom*;resolution:=optional, org.apache.axis2*;resolution:=optional, org.apache.commons.beanutils;version="[1.8,2)", org.apache.commons.collections*;version="[3.2,4)", org.apache.commons.httpclient*;resolution:=optional, org.apache.commons.io;version="[1.4,2)", org.apache.commons.lang;version="[2.4,3)", org.apache.commons.logging*;version="[1.1,1.2)", org.apache.derby.jdbc;resolution:=optional, org.apache.geronimo.transaction.manager;version="[2,3)", org.apache.openjpa.jdbc.kernel;version="1.2.1", org.springframework.osgi.service.exporter.support, org.osgi.service.cm, org.springframework.osgi.compendium.cm, com.ibm.wsdl*;version="[1.6,2)", org.apache.xmlbeans.impl.schema;version="[2.5,3)", org.apache.xmlbeans*;version="[2.5,3)", org.hibernate*;resolution:=optional, org.hsqldb.jdbc;resolution:=op tional, org.osgi.framework;version="[1.5,2)", org.osgi.util.tracker;version="[1.4,2)", org.springframework.beans.factory*;version="[2.5,4)", org.springframework.context*;version="[2.5,4)", org.springframework.osgi.context;version="[1.2,2)", net.sf.saxon.event;version="[9.1,9.2)", net.sf.saxon*;version="[9.1,9.2)",javax.wsdl*;version="[1.2,2)",javax.resource*;version="[1.5, 2]",org.apache.geronimo.connector.outbound*;version="[2.1,3)",org.apache.log4j*;version="[1.2,2)",org.apache.openjpa*;version="[1.2,2)",*' +# bnd['Embed-Dependency'] = '*;inline=**.xsd|schemaorg_apache_xmlbeans/**|**.xml' +# bnd['DynamicImport-Package'] = '*' +# bnd['Include-Resource'] = [embedres, _('src/main/resources'), inlines].flatten.join(', ') +# 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['-versionpolicy'] = BND_VERSION_POLICY +# bnd.classpath = [project.compile.target, bnd_libs, artifacts(project("jbi").package(:jar)), libs].flatten +# +# BUNDLE_VERSIONS.each {|key, value| bnd[key] = value } +# end +# end desc "ODE JCA Resource Archive" define "jca-ra" do @@ -699,8 +699,8 @@ define "ode" do end # sources and javadocs of jbi-karaf-examples are packaged separately. - package_with_sources :except => ["jbi-karaf-examples:helloworld2-osgi", "jbi-karaf-examples:ping-pong-osgi"] - package_with_javadoc :except => ["jbi-karaf-examples:helloworld2-osgi", "jbi-karaf-examples:ping-pong-osgi"] unless ENV["JAVADOC"] =~ /^(no|off|false|skip)$/i +# package_with_sources :except => ["jbi-karaf-examples:helloworld2-osgi", "jbi-karaf-examples:ping-pong-osgi"] +# package_with_javadoc :except => ["jbi-karaf-examples:helloworld2-osgi", "jbi-karaf-examples:ping-pong-osgi"] unless ENV["JAVADOC"] =~ /^(no|off|false|skip)$/i # disable doclint for all projects, TODO: better fix javadoc comments #projects.each { |project| project.doc.options['Xdoclint:none'] = true } if JAVA @@ -841,7 +841,7 @@ define "apache-ode" do desc "ODE Axis2 Based Distribution" define "distro" do parent.distro(self, "-war") { |zip| zip.include project("ode:axis2-war").package(:war), :as=>"ode.war" } - parent.distro(self, "-jbi") { |zip| zip.include project("ode:jbi").package(:zip) } + #parent.distro(self, "-jbi") { |zip| zip.include project("ode:jbi").package(:zip) } parent.distro(self, "-server") { |zip| zip.include project("ode:tomee-server").package(:zip) } # Preparing third party licenses
