2006-06-07 06:53:25 +00:00
|
|
|
<project name="thrifttest" default="test" basedir=".">
|
|
|
|
|
|
|
|
<description>Thrift Test Build File</description>
|
|
|
|
|
|
|
|
<property name="src" location="src" />
|
|
|
|
<property name="gen" location="gen-java" />
|
|
|
|
<property name="build" location="build" />
|
2006-09-06 00:18:29 +00:00
|
|
|
<property name="cpath" location="../../lib/java/libthrift.jar" />
|
2006-06-07 06:53:25 +00:00
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<tstamp />
|
|
|
|
<mkdir dir="${build}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="generate">
|
2007-01-25 08:01:28 +00:00
|
|
|
<exec executable="../../compiler/cpp/thrift">
|
2006-09-02 04:17:07 +00:00
|
|
|
<arg line="--java ../ThriftTest.thrift" />
|
2006-06-07 06:53:25 +00:00
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="init,generate">
|
|
|
|
<javac srcdir="${gen}" destdir="${build}" classpath="${cpath}" />
|
|
|
|
<javac srcdir="${src}" destdir="${build}" classpath="${cpath}:${gen}" />
|
|
|
|
</target>
|
|
|
|
|
2006-09-02 04:17:07 +00:00
|
|
|
<target name="compileonly">
|
|
|
|
<javac srcdir="${gen}" destdir="${build}" classpath="${cpath}" />
|
|
|
|
<javac srcdir="${src}" destdir="${build}" classpath="${cpath}:${gen}" />
|
|
|
|
</target>
|
|
|
|
|
2006-06-07 06:53:25 +00:00
|
|
|
<target name="test" depends="compile">
|
|
|
|
<jar jarfile="thrifttest.jar" basedir="${build}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="gen-java" />
|
|
|
|
<delete dir="${build}" />
|
|
|
|
<delete file="thrifttest.jar" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|