Author: mriou
Date: Fri Aug 3 16:51:27 2007
New Revision: 562618
URL: http://svn.apache.org/viewvc?view=rev&rev=562618
Log:
Preparing license only when packaging distro.
Modified:
ode/trunk/Rakefile
Modified: ode/trunk/Rakefile
URL:
http://svn.apache.org/viewvc/ode/trunk/Rakefile?view=diff&rev=562618&r1=562617&r2=562618
==============================================================================
--- ode/trunk/Rakefile (original)
+++ ode/trunk/Rakefile Fri Aug 3 16:51:27 2007
@@ -487,11 +487,6 @@
end
# Including third party licenses
Dir["#{project.path_to("license")}/*LICENSE"].each { |l| zip.include(l,
:path=>"lib") }
- Dir.mkdir(project.path_to("target")) unless
File.exist?(project.path_to("target"))
- cp path_to("LICENSE"), project.path_to("target/LICENSE")
- File.open(project.path_to("target/LICENSE"), "a+") do |l|
- l << Dir["#{project.path_to("license")}/*LICENSE"].map { |f|
"lib/"+f[/[^\/]*$/] }.join("\n")
- end
zip.include(project.path_to("target/LICENSE"))
yield zip
end
@@ -501,6 +496,15 @@
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) }
+
+ # Preparing third party licenses
+ build do
+ Dir.mkdir(project.path_to("target")) unless
File.exist?(project.path_to("target"))
+ cp parent.path_to("LICENSE"), project.path_to("target/LICENSE")
+ File.open(project.path_to("target/LICENSE"), "a+") do |l|
+ l << Dir["#{project.path_to("license")}/*LICENSE"].map { |f|
"lib/"+f[/[^\/]*$/] }.join("\n")
+ end
+ end
project("ode:axis2-war").task("start").enhance do |task|
target = "#{task.path}/webapp/WEB-INF/processes"