Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Copyright for third parties included in the distro with a direct poin…

…ter from the main LICENSE file. We're down with Copyright Law.

git-svn-id: https://svn.apache.org/repos/asf/ode/trunk@562189 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit a024c83ebbdfe564435418a77b8f8c1780108981 1 parent 8589ad8
@matthieu matthieu authored
Showing with 16 additions and 1 deletion.
  1. +7 −1 LICENSE
  2. +9 −0 Rakefile
View
8 LICENSE
@@ -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
+ END OF TERMS AND CONDITIONS
+
+=======================================================================
+
+Third-party licenses are reproduced in the lib directory of the binary
+distributions.
+
View
9 Rakefile
@@ -484,6 +484,7 @@ define "apache-ode" do
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 @@ define "apache-ode" do
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
Please sign in to comment.
Something went wrong with that request. Please try again.