mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 18:58:51 +00:00
68db166dd4
Reviewed By: Slee git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664788 13f79535-47bb-0310-9956-ffa450edef68
42 lines
1.2 KiB
XML
42 lines
1.2 KiB
XML
<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" />
|
|
<property name="cpath" location="../../lib/java/libthrift.jar" />
|
|
|
|
<target name="init">
|
|
<tstamp />
|
|
<mkdir dir="${build}"/>
|
|
</target>
|
|
|
|
<target name="generate">
|
|
<exec executable="../../compiler/cpp/bin/thrift">
|
|
<arg line="--java ../ThriftTest.thrift" />
|
|
</exec>
|
|
</target>
|
|
|
|
<target name="compile" depends="init,generate">
|
|
<javac srcdir="${gen}" destdir="${build}" classpath="${cpath}" />
|
|
<javac srcdir="${src}" destdir="${build}" classpath="${cpath}:${gen}" />
|
|
</target>
|
|
|
|
<target name="compileonly">
|
|
<javac srcdir="${gen}" destdir="${build}" classpath="${cpath}" />
|
|
<javac srcdir="${src}" destdir="${build}" classpath="${cpath}:${gen}" />
|
|
</target>
|
|
|
|
<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>
|