You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2009/02/07 03:36:55 UTC
svn commit: r741829 - /incubator/thrift/trunk/contrib/fb303/java/build.xml
Author: dreiss
Date: Sat Feb 7 02:36:54 2009
New Revision: 741829
URL: http://svn.apache.org/viewvc?rev=741829&view=rev
Log:
THRIFT-292. Auto-generate the Java gen-code in build.xml
r739384 deleted the generated Java code from the source tree.
With this change, it will be automatically generated when ant is run.
Modified:
incubator/thrift/trunk/contrib/fb303/java/build.xml
Modified: incubator/thrift/trunk/contrib/fb303/java/build.xml
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/contrib/fb303/java/build.xml?rev=741829&r1=741828&r2=741829&view=diff
==============================================================================
--- incubator/thrift/trunk/contrib/fb303/java/build.xml (original)
+++ incubator/thrift/trunk/contrib/fb303/java/build.xml Sat Feb 7 02:36:54 2009
@@ -27,8 +27,13 @@
<target name="thriftbuild">
<echo>generating thrift fb303 files</echo>
<exec executable="${thrift_home}/bin/thrift" failonerror="true">
- <arg line="--gen java -I ${thrift_home}/share/ -o ${build.dir} ${src.dir}/../if/fb303.thrift" />
+ <arg line="--gen java -o ${src.dir} ${src.dir}/../if/fb303.thrift" />
</exec>
+ <move todir="${src.dir}">
+ <fileset dir="${src.dir}/gen-java/com/facebook/fb303">
+ <include name="**/*.java"/>
+ </fileset>
+ </move>
</target>
<!-- compile the base and thrift generated code and jar them -->