You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2007/08/02 19:30:57 UTC
svn commit: r562189 - in /ode/trunk: LICENSE Rakefile
Author: mriou
Date: Thu Aug 2 10:30:57 2007
New Revision: 562189
URL: http://svn.apache.org/viewvc?view=rev&rev=562189
Log:
Copyright for third parties included in the distro with a direct pointer from the main LICENSE file. We're down with Copyright Law.
Modified:
ode/trunk/LICENSE
ode/trunk/Rakefile
Modified: ode/trunk/LICENSE
URL: http://svn.apache.org/viewvc/ode/trunk/LICENSE?view=diff&rev=562189&r1=562188&r2=562189
==============================================================================
--- ode/trunk/LICENSE (original)
+++ ode/trunk/LICENSE Thu Aug 2 10:30:57 2007
@@ -173,4 +173,10 @@
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
- END OF TERMS AND CONDITIONS
\ No newline at end of file
+ END OF TERMS AND CONDITIONS
+
+=======================================================================
+
+Third-party licenses are reproduced in the lib directory of the binary
+distributions.
+
Modified: ode/trunk/Rakefile
URL: http://svn.apache.org/viewvc/ode/trunk/Rakefile?view=diff&rev=562189&r1=562188&r2=562189
==============================================================================
--- ode/trunk/Rakefile (original)
+++ ode/trunk/Rakefile Thu Aug 2 10:30:57 2007
@@ -484,6 +484,7 @@
project.package(:zip, :id=>id).path("#{id}-#{version}").tap do |zip|
zip.include meta_inf + ["RELEASE_NOTES", "README"].map { |f| path_to(f) }
zip.path("examples").include project.path_to("src/examples"+postfix), :as=>"."
+ # Libraries
zip.merge project("ode:tools-bin").package(:zip)
zip.path("lib").include artifacts(COMMONS.logging, COMMONS.codec, COMMONS.httpclient,
COMMONS.pool, COMMONS.collections, JAXEN,
@@ -492,6 +493,14 @@
map(&:packages).flatten.each do |pkg|
zip.include(pkg.to_s, :as=>"#{pkg.id}.#{pkg.type}", :path=>"lib")
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
end