diff options
author | David Reiss <dreiss@apache.org> | 2009-02-07 02:36:54 +0000 |
---|---|---|
committer | David Reiss <dreiss@apache.org> | 2009-02-07 02:36:54 +0000 |
commit | cd5284c735bec7ee98dfc27ba4d3e4d2bc9bf0e4 (patch) | |
tree | 605305e36acb7b79f6dd62437e4bb2a5d508da74 /contrib | |
parent | f6dffcdc651b9513652ca2c74c19ba85c92339fd (diff) | |
download | thrift-cd5284c735bec7ee98dfc27ba4d3e4d2bc9bf0e4.tar.gz |
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
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/fb303/java/build.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/fb303/java/build.xml b/contrib/fb303/java/build.xml index 370156952..36923f989 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 --> |