blob: 2ee11c0c29040344c595ec7726a8a3fdbfa0ee6f [file] [log] [blame]
David Reissea2cba82009-03-30 21:35:00 +00001<!--
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18-->
Mark Sleecb39f082007-04-10 02:30:30 +000019<project name="tutorial" default="tutorial" basedir=".">
20
21 <description>Thrift Tutorial</description>
22
23 <property name="src" location="src" />
24 <property name="gen" location="../gen-java" />
25 <property name="build" location="build" />
Todd Lipcon515c2382010-09-27 18:26:07 +000026
27 <path id="libs.classpath">
Roger Meier5fc69732011-04-08 21:28:50 +000028 <fileset dir="../../lib/java/build">
29 <include name="*.jar" />
30 <exclude name="-test.jar" />
31 </fileset>
32 <fileset dir="../../lib/java/build/lib">
Todd Lipcon515c2382010-09-27 18:26:07 +000033 <include name="*.jar" />
34 </fileset>
35 </path>
36 <path id="build.classpath">
37 <path refid="libs.classpath" />
38 <pathelement path="${gen}" />
39 </path>
Mark Sleecb39f082007-04-10 02:30:30 +000040
41 <target name="init">
42 <tstamp />
43 <mkdir dir="${build}"/>
44 </target>
45
46 <target name="compile" depends="init">
Todd Lipcon515c2382010-09-27 18:26:07 +000047 <javac srcdir="${gen}" destdir="${build}" classpathref="libs.classpath" />
48 <javac srcdir="${src}" destdir="${build}" classpathref="build.classpath" />
Mark Sleecb39f082007-04-10 02:30:30 +000049 </target>
50
51 <target name="tutorial" depends="compile">
52 <jar jarfile="tutorial.jar" basedir="${build}"/>
53 </target>
54
55 <target name="clean">
56 <delete dir="${build}" />
57 <delete file="tutorial.jar" />
58 </target>
59
60</project>