| <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}" /> |
| </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> |