blob: d2a4df6f80d48611fd8ffdeaa40de1a0b6692631 [file] [log] [blame]
Mark Slee83c52a82006-06-07 06:51:18 +00001<project name="libthrift" default="dist" basedir=".">
2
3 <description>Thrift Build File</description>
4
5 <property name="src" location="src" />
6 <property name="build" location="build" />
7
8 <target name="init">
9 <tstamp />
10 <mkdir dir="${build}"/>
11 </target>
12
13 <target name="compile" depends="init">
14 <javac srcdir="${src}" destdir="${build}" />
15 </target>
16
17 <target name="dist" depends="compile">
18 <jar jarfile="libthrift.jar" basedir="${build}"/>
19 </target>
20
21 <target name="install" depends="dist">
22 <exec executable="sudo">
23 <arg line="install libthrift.jar /usr/local/lib/" />
24 </exec>
25 </target>
26
27 <target name="clean">
28 <delete dir="${build}" />
29 <delete file="libthrift.jar" />
30 </target>
31
32</project>