blob: 6f9d0b0926d274062e915728b923c618ce8e2bfd [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" />
David Reissf0c21a72008-07-11 01:26:16 +00007 <property name="install.path" value="/usr/local/lib" />
Mark Slee83c52a82006-06-07 06:51:18 +00008
9 <target name="init">
10 <tstamp />
11 <mkdir dir="${build}"/>
12 </target>
13
14 <target name="compile" depends="init">
David Reiss4ad40d72008-08-04 18:38:36 +000015 <javac srcdir="${src}" destdir="${build}" source="1.5" />
Mark Slee83c52a82006-06-07 06:51:18 +000016 </target>
17
18 <target name="dist" depends="compile">
19 <jar jarfile="libthrift.jar" basedir="${build}"/>
20 </target>
21
22 <target name="install" depends="dist">
Mark Slee54b7ab92007-03-06 00:06:27 +000023 <exec executable="install">
David Reissf0c21a72008-07-11 01:26:16 +000024 <arg line="libthrift.jar ${install.path}" />
Mark Slee83c52a82006-06-07 06:51:18 +000025 </exec>
26 </target>
27
28 <target name="clean">
29 <delete dir="${build}" />
30 <delete file="libthrift.jar" />
31 </target>
32
33</project>