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" />
12 <mkdir dir="${build}"/>
15 <target name="generate">
16 <exec executable="../../compiler/cpp/thrift">
17 <arg line="--java ../ThriftTest.thrift" />
21 <target name="compile" depends="init,generate">
22 <javac srcdir="${gen}" destdir="${build}" classpath="${cpath}" />
23 <javac srcdir="${src}" destdir="${build}" classpath="${cpath}:${gen}" />
26 <target name="compileonly">
27 <javac srcdir="${gen}" destdir="${build}" classpath="${cpath}" />
28 <javac srcdir="${src}" destdir="${build}" classpath="${cpath}:${gen}" />
31 <target name="test" depends="compile">
32 <jar jarfile="thrifttest.jar" basedir="${build}"/>
36 <delete dir="gen-java" />
37 <delete dir="${build}" />
38 <delete file="thrifttest.jar" />