blob: 6f9d0b0926d274062e915728b923c618ce8e2bfd [file] [log] [blame]
<project name="libthrift" default="dist" basedir=".">
<description>Thrift Build File</description>
<property name="src" location="src" />
<property name="build" location="build" />
<property name="install.path" value="/usr/local/lib" />
<target name="init">
<tstamp />
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}" source="1.5" />
</target>
<target name="dist" depends="compile">
<jar jarfile="libthrift.jar" basedir="${build}"/>
</target>
<target name="install" depends="dist">
<exec executable="install">
<arg line="libthrift.jar ${install.path}" />
</exec>
</target>
<target name="clean">
<delete dir="${build}" />
<delete file="libthrift.jar" />
</target>
</project>