diff options
author | Bryan Duxbury <bryanduxbury@apache.org> | 2009-08-20 00:55:12 +0000 |
---|---|---|
committer | Bryan Duxbury <bryanduxbury@apache.org> | 2009-08-20 00:55:12 +0000 |
commit | 2f45e789f6f87d95cd17be91900476f6a50bb1c1 (patch) | |
tree | 581aa69ea22832e3a5b796ee252df2f864ef511e | |
parent | c27cda57a0347d3b7496a8ccbaf8071ead1f898e (diff) | |
download | thrift-2f45e789f6f87d95cd17be91900476f6a50bb1c1.tar.gz |
THRIFT-566. java: jar file should contain copies of LICENSE and NOTICE files
LICENSE and NOTICE are now included in the jar file by the build process.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@806013 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | lib/java/build.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/java/build.xml b/lib/java/build.xml index 6bd5e89c6..de9b018a0 100644 --- a/lib/java/build.xml +++ b/lib/java/build.xml @@ -34,6 +34,7 @@ <property name="src.test" location="test" /> <property name="build.test" location="${build}/test" /> <property name="test.thrift.home" location="../../test"/> + <property name="thrift.root" location="../../"/> <property file="${user.home}/.thrift-build.properties" /> @@ -123,9 +124,13 @@ </target> <target name="dist" depends="compile"> + <mkdir dir="${build}/META-INF"/> + <copy file="${thrift.root}/LICENSE" tofile="${build}/META-INF/LICENSE.txt"/> + <copy file="${thrift.root}/NOTICE" tofile="${build}/META-INF/NOTICE.txt"/> <jar jarfile="libthrift.jar"> <fileset dir="${build}"> <include name="**/*.class" /> + <include name="META-INF/*.txt" /> </fileset> <fileset dir="src"> <include name="**/*.java" /> |