THRIFT-292. Auto-generate the Java gen-code in build.xml
authorDavid Reiss <dreiss@apache.org>
Sat, 7 Feb 2009 02:36:54 +0000 (02:36 +0000)
committerDavid Reiss <dreiss@apache.org>
Sat, 7 Feb 2009 02:36:54 +0000 (02:36 +0000)
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

contrib/fb303/java/build.xml

index 3701569..36923f9 100755 (executable)
   <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 -->