PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/tags/release-0.1-rc2/hive/external/ant/build.xml

#
XML | 53 lines | 26 code | 7 blank | 20 comment | 0 complexity | b80da0e4e34369d459a6be0a62f2ec23 MD5 | raw file
 1<?xml version="1.0"?>
 2
 3<!--
 4   Licensed to the Apache Software Foundation (ASF) under one or more
 5   contributor license agreements.  See the NOTICE file distributed with
 6   this work for additional information regarding copyright ownership.
 7   The ASF licenses this file to You under the Apache License, Version 2.0
 8   (the "License"); you may not use this file except in compliance with
 9   the License.  You may obtain a copy of the License at
10
11       http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18-->
19
20
21<!--
22Before you can run these subtargets directly, you need
23to call at top-level: ant deploy-contrib compile-core-test
24-->
25<project name="anttasks" default="jar">
26
27  <property name="src.dir"  location="${basedir}/src"/>
28  <import file="../build-common.xml"/>
29
30  <target name="init" depends="create-dirs"/>
31
32  <target name="compile" depends="init">
33    <echo message="Compiling: ${ant.project.name}"/>
34    <javac
35     encoding="${build.encoding}"
36     srcdir="${src.dir}"
37     includes="**/*.java"
38     destdir="${build.classes}"
39     debug="${javac.debug}"
40     deprecation="${javac.deprecation}">
41      <compilerarg line="${javac.args} ${javac.args.warnings}" />
42      <classpath refid="classpath"/>
43    </javac>
44  </target>
45
46  <target name="jar" depends="compile">
47    <copy file="${src.dir}/org/apache/hadoop/hive/ant/antlib.xml"
48          todir="${build.dir}/classes/org/apache/hadoop/hive/ant"/>
49    <jar destfile="${build.dir}/hive-anttasks-${version}.jar">
50      <fileset dir="${build.dir}/classes"/>
51    </jar>
52  </target>
53</project>