You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2009/08/20 02:55:12 UTC

svn commit: r806013 - /incubator/thrift/trunk/lib/java/build.xml

Author: bryanduxbury
Date: Thu Aug 20 00:55:12 2009
New Revision: 806013

URL: http://svn.apache.org/viewvc?rev=806013&view=rev
Log:
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. 


Modified:
    incubator/thrift/trunk/lib/java/build.xml

Modified: incubator/thrift/trunk/lib/java/build.xml
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/java/build.xml?rev=806013&r1=806012&r2=806013&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/java/build.xml (original)
+++ incubator/thrift/trunk/lib/java/build.xml Thu Aug 20 00:55:12 2009
@@ -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" />