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/04/18 19:37:28 UTC
svn commit: r530099 - /incubator/ode/trunk/tasks/jbi.rake
Author: assaf
Date: Wed Apr 18 10:37:27 2007
New Revision: 530099
URL: http://svn.apache.org/viewvc?view=rev&rev=530099
Log:
Even better fix for JBI task
Modified:
incubator/ode/trunk/tasks/jbi.rake
Modified: incubator/ode/trunk/tasks/jbi.rake
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/tasks/jbi.rake?view=diff&rev=530099&r1=530098&r2=530099
==============================================================================
--- incubator/ode/trunk/tasks/jbi.rake (original)
+++ incubator/ode/trunk/tasks/jbi.rake Wed Apr 18 10:37:27 2007
@@ -107,6 +107,9 @@
# Create a JBI descriptor (jbi.xml) from the component/bootstrap specification.
def descriptor()
delegation = lambda { |key| "#{key || :parent}-first" }
+ path_elements = lambda do |xml, libs|
+ libs.each { |lib| xml.tag! "path-element", "lib/#{lib.to_s.pathmap('%f')}" }
+ end
xml = Builder::XmlMarkup.new(:indent=>2)
xml.instruct!
xml.jbi :xmlns=>"http://java.sun.com/xml/ns/jbi", :version=>"1.0" do
@@ -118,9 +121,9 @@
xml.description component.description
end
xml.tag!("component-class-name", component.class_name)
- xml.tag!("component-class-path") { component.libs.each { |lib| xml.tag! "path-element", File.basename(lib.to_s) } }
+ xml.tag!("component-class-path") { path_elements[xml, component.libs] }
xml.tag!("bootstrap-class-name", bootstrap.class_name)
- xml.tag!("bootstrap-class-path") { bootstrap.libs.each { |lib| xml.tag! "path-element", File.basename(lib.to_s) } }
+ xml.tag!("bootstrap-class-path") { path_elements[xml, bootstrap.libs] }
end
end
end