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/13 20:37:52 UTC
svn commit: r528578 - /incubator/ode/trunk/tasks/jbi.rake
Author: assaf
Date: Fri Apr 13 11:37:51 2007
New Revision: 528578
URL: http://svn.apache.org/viewvc?view=rev&rev=528578
Log:
Fixed jbi.rake to new package_as specification
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=528578&r1=528577&r2=528578
==============================================================================
--- incubator/ode/trunk/tasks/jbi.rake (original)
+++ incubator/ode/trunk/tasks/jbi.rake Fri Apr 13 11:37:51 2007
@@ -131,13 +131,16 @@
class Project
- def package_as_jbi(args)
- args[:type] = :zip
- file_name = args[:file] || path_to(args[:path], Artifact.hash_to_file_name(args))
+ def package_as_jbi(file_name, options)
+ file_name = file_name.ext("zip")
unless Rake::Task.task_defined?(file_name)
- JBITask.define_task(file_name).tap { |jbi| package_extend jbi, args }
+ JBITask.define_task(file_name).tap do |jbi|
+ jbi.include options[:include] if options[:include]
+ [:component, :bootstrap].each { |key| jbi[key] = options[key] if options[key] }
+ yield jbi
+ end
end
- file(file_name).tap { |jbi| jbi.include args[:include] if args[:include] }
+ file(file_name)
end
end