r1445@opsdev009 (orig r76771): mcslee | 2008-01-07 13:50:30 -0800
[amiethrift.git] / test / java / build.xml
blob52b003303c18b41b7ad8fab2a1a299b4a14a0e23
1 <project name="thrifttest" default="test" basedir=".">
3   <description>Thrift Test Build File</description>
5   <property name="src" location="src" />
6   <property name="gen" location="gen-java" />
7   <property name="build" location="build" />
8   <property name="cpath" location="../../lib/java/libthrift.jar" />
10   <target name="init">
11     <tstamp />
12     <mkdir dir="${build}"/>
13   </target>
15   <target name="generate">
16     <exec executable="../../compiler/cpp/thrift">
17       <arg line="--java ../ThriftTest.thrift" />
18     </exec>
19   </target>
21   <target name="compile" depends="init,generate">
22     <javac srcdir="${gen}" destdir="${build}" classpath="${cpath}" />
23     <javac srcdir="${src}" destdir="${build}" classpath="${cpath}:${gen}" />
24   </target>
26   <target name="compileonly">
27     <javac srcdir="${gen}" destdir="${build}" classpath="${cpath}" />
28     <javac srcdir="${src}" destdir="${build}" classpath="${cpath}:${gen}" />
29   </target>
31   <target name="test" depends="compile">
32     <jar jarfile="thrifttest.jar" basedir="${build}"/>
33   </target>
35   <target name="clean">
36     <delete dir="gen-java" />
37     <delete dir="${build}" />
38     <delete file="thrifttest.jar" />
39   </target>
41 </project>