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.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@741829 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/contrib/fb303/java/build.xml b/contrib/fb303/java/build.xml
index 3701569..36923f9 100755
--- a/contrib/fb303/java/build.xml
+++ b/contrib/fb303/java/build.xml
@@ -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 -->