blob: 80a73d75aed66bd64c5b6bab0b453855c666c67d [file] [log] [blame]
Mark Slee95771002006-06-07 06:53:25 +00001<project name="thrifttest" default="test" basedir=".">
2
3 <description>Thrift Test Build File</description>
4
5 <property name="src" location="src" />
6 <property name="gen" location="gen-java" />
7 <property name="build" location="build" />
8 <property name="cpath" location="/usr/local/lib/libthrift.jar" />
9
10 <target name="init">
11 <tstamp />
12 <mkdir dir="${build}"/>
13 </target>
14
15 <target name="generate">
16 <exec executable="thrift">
17 <arg line="-java ../ThriftTest.thrift" />
18 </exec>
19 </target>
20
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>
25
26 <target name="test" depends="compile">
27 <jar jarfile="thrifttest.jar" basedir="${build}"/>
28 </target>
29
30 <target name="clean">
31 <delete dir="gen-java" />
32 <delete dir="${build}" />
33 <delete file="thrifttest.jar" />
34 </target>
35
36</project>