David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 1 | <!-- |
| 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 Slee | cb39f08 | 2007-04-10 02:30:30 +0000 | [diff] [blame] | 19 | <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 Lipcon | 515c238 | 2010-09-27 18:26:07 +0000 | [diff] [blame] | 26 | |
| 27 | <path id="libs.classpath"> |
Roger Meier | 5fc6973 | 2011-04-08 21:28:50 +0000 | [diff] [blame] | 28 | <fileset dir="../../lib/java/build"> |
| 29 | <include name="*.jar" /> |
| 30 | <exclude name="-test.jar" /> |
| 31 | </fileset> |
| 32 | <fileset dir="../../lib/java/build/lib"> |
Todd Lipcon | 515c238 | 2010-09-27 18:26:07 +0000 | [diff] [blame] | 33 | <include name="*.jar" /> |
| 34 | </fileset> |
| 35 | </path> |
| 36 | <path id="build.classpath"> |
| 37 | <path refid="libs.classpath" /> |
| 38 | <pathelement path="${gen}" /> |
| 39 | </path> |
Mark Slee | cb39f08 | 2007-04-10 02:30:30 +0000 | [diff] [blame] | 40 | |
| 41 | <target name="init"> |
| 42 | <tstamp /> |
| 43 | <mkdir dir="${build}"/> |
| 44 | </target> |
| 45 | |
| 46 | <target name="compile" depends="init"> |
Todd Lipcon | 515c238 | 2010-09-27 18:26:07 +0000 | [diff] [blame] | 47 | <javac srcdir="${gen}" destdir="${build}" classpathref="libs.classpath" /> |
| 48 | <javac srcdir="${src}" destdir="${build}" classpathref="build.classpath" /> |
Mark Slee | cb39f08 | 2007-04-10 02:30:30 +0000 | [diff] [blame] | 49 | </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> |