This repository has been archived by the owner on Oct 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.xml
49 lines (40 loc) · 1.51 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="UTF-8"?>
<project name="hive-udaf-maxrow" default="default">
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="src" location="src"/>
<property environment="env"/>
<property name="hadoop.home" location="${env.HADOOP_HOME}"/>
<property name="hive.home" location="${env.HIVE_HOME}"/>
<description>
Hive user-defined aggregate function, similar to max() -- but returns related columns too.
</description>
<path id="javac.classpath">
<fileset dir="${hadoop.home}">
<include name="*.jar"/>
<include name="lib/*.jar"/>
</fileset>
<fileset dir="${hive.home}">
<include name="*.jar"/>
<include name="lib/*.jar"/>
</fileset>
</path>
<target name="default" depends="jar" description="Build jar file by default"/>
<target name="jar" depends="compile" description="Build jar file">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/hive-udaf-maxrow.jar" basedir="${build}"/>
</target>
<target name="compile" description="Compile Java source">
<mkdir dir="${build}"/>
<javac srcdir="${src}"
destdir="${build}"
classpathref="javac.classpath"
debug="on"
includeantruntime="false"
/>
</target>
<target name="clean" description="clean up">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>