blob: 66e291480ce247439c36af7aec5f4f86b8cd06ee [file] [log] [blame]
Mark Sleecb39f082007-04-10 02:30:30 +00001<project name="tutorial" default="tutorial" basedir=".">
2
3 <description>Thrift Tutorial</description>
4
5 <property name="src" location="src" />
6 <property name="gen" location="../gen-java" />
7 <property name="build" location="build" />
8 <property name="cpath" location="/usr/local/lib/libthrift.jar" />
9
10 <target name="init">
11 <tstamp />
12 <mkdir dir="${build}"/>
13 </target>
14
15 <target name="compile" depends="init">
16 <javac srcdir="${gen}" destdir="${build}" classpath="${cpath}" />
17 <javac srcdir="${src}" destdir="${build}" classpath="${cpath}:${gen}" />
18 </target>
19
20 <target name="tutorial" depends="compile">
21 <jar jarfile="tutorial.jar" basedir="${build}"/>
22 </target>
23
24 <target name="clean">
25 <delete dir="${build}" />
26 <delete file="tutorial.jar" />
27 </target>
28
29</project>