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/05 17:59:42 UTC
svn commit: r1055525 - in /ode/branches/ode-1.3.5.x: Rakefile tasks/bnd.rake
Author: vanto
Date: Wed Jan 5 16:59:42 2011
New Revision: 1055525
URL: http://svn.apache.org/viewvc?rev=1055525&view=rev
Log:
osgi bundling fix.
Modified:
ode/branches/ode-1.3.5.x/Rakefile
ode/branches/ode-1.3.5.x/tasks/bnd.rake
Modified: ode/branches/ode-1.3.5.x/Rakefile
URL: http://svn.apache.org/viewvc/ode/branches/ode-1.3.5.x/Rakefile?rev=1055525&r1=1055524&r2=1055525&view=diff
==============================================================================
--- ode/branches/ode-1.3.5.x/Rakefile (original)
+++ ode/branches/ode-1.3.5.x/Rakefile Wed Jan 5 16:59:42 2011
@@ -450,11 +450,10 @@ define "ode" do
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.jbi"
+ bnd['Require-Bundle'] = "org.apache.ode.ode-jbi-bundle;version=#{VERSION_NUMBER}"
bnd['Import-Package'] = "org.osgi.service.command,*"
bnd['Private-Package'] = "org.apache.ode.karaf.commands;version=#{VERSION_NUMBER}"
bnd['Include-Resource'] = _('src/main/resources')
- bnd['-removeheaders'] = "Include-Resource"
end
end
@@ -478,9 +477,6 @@ define "ode" do
filter('src/main/filtered-resources').into('target').using(BUNDLE_VERSIONS)
package(:bundle).tap do |bnd|
- # inline log4j helper classes
- #bnd['log4j.jar'] = artifact(LOG4J).to_s
-
# 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}
@@ -495,16 +491,15 @@ define "ode" do
# 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'] = '!com.sun.mirror*, !org.apache.axis2.client*, javax.jbi*;version="1.0", javax.transaction*;version="1.1", org.tranql.connector.jdbc, org.apache.commons.httpclient*;version="3.0", org.apache.commons.logging*;version="1.1", org.apache.commons*, org.apache.geronimo.transaction.manager;version="2.0", org.osgi.service.command;version="[0.2,1)", org.springframework.beans.factory.xml;version="2.5", org.apache.geronimo.transaction.manager,org.tranql.connector.jdbc,org.w3c.dom, org.xml.sax, org.xml.sax.ext, org.xml.sax.helpers, org.jaxen.saxpath,net.sf.saxon.xpath,*;resolution:=optional'
+ bnd['Import-Package'] = '!com.sun.mirror*, !org.apache.axis2.client*, javax.jbi*;version="1.0", javax.transaction*;version="1.1", org.tranql.connector.jdbc, org.apache.commons.httpclient*;version="3.0", org.apache.commons.logging*;version="1.1", org.apache.commons*, org.apache.geronimo.transaction.manager;version="2.0", org.osgi.service.command;version="[0.2,1)", org.springframework.beans.factory.xml;version="2.5", org.w3c.dom, org.xml.sax, org.xml.sax.ext, org.xml.sax.helpers, org.jaxen.saxpath,net.sf.saxon.xpath,*;resolution:=optional'
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.classpath = [project.compile.target, ode_libs, artifacts(project("jbi").package(:jar)), libs].flatten
+ bnd.classpath = [project.compile.target, bnd_libs, artifacts(project("jbi").package(:jar)), libs].flatten
BUNDLE_VERSIONS.each {|key, value| bnd[key] = value }
end
Modified: ode/branches/ode-1.3.5.x/tasks/bnd.rake
URL: http://svn.apache.org/viewvc/ode/branches/ode-1.3.5.x/tasks/bnd.rake?rev=1055525&r1=1055524&r2=1055525&view=diff
==============================================================================
--- ode/branches/ode-1.3.5.x/tasks/bnd.rake (original)
+++ ode/branches/ode-1.3.5.x/tasks/bnd.rake Wed Jan 5 16:59:42 2011
@@ -55,7 +55,7 @@ module Buildr
def to_params
params = self.project.manifest.merge(@params).reject { |k, v| v.nil? }
params["-classpath"] ||= self.classpath.collect(&:to_s).join(", ")
- params['Bundle-SymbolicName'] ||= [self.project.group, self.project.name.gsub(':', '.')].join('.')
+ params['Bundle-SymbolicName'] ||= [self.project.group, self.project.name.gsub(':', '-')].join('.')
params['Bundle-Name'] ||= self.project.comment || self.project.name
params['Bundle-Description'] ||= self.project.comment
params['Bundle-Version'] ||= self.project.version