| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <?xml version="1.0"?>
- <!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <project name="hue" default="jar">
- <!-- Additional -->
- <property name="name" value="${ant.project.name}"/>
- <property name="build.encoding" value="ISO-8859-1"/>
- <property name="build.classes" location="${build.dir}/classes"/>
- <property name="src.dir" location="${basedir}/src/java"/>
- <property name="lib.dir" location="${build.dir}/lib" />
- <!-- this version number is provided by the invoker -->
- <property name="plugins.version" value="DEV" />
- <property name="test.available" value="true" />
- <property name="javac.debug" value="on"/>
- <property name="javac.optimize" value="on"/>
- <property name="javac.deprecation" value="on"/>
- <property name="javac.args.warnings" value="-Xlint:unchecked"/>
- <property name="javac.args" value=""/>
- <!-- create the list of files to add to the classpath -->
- <path id="build.classpath">
- <fileset dir="${hadoop.home}">
- <include name="hadoop*core*.jar" />
- <include name="lib/commons-log*.jar" />
- <include name="lib/*slf4j*.jar" />
- </fileset>
- <fileset dir="${basedir}/lib">
- <include name="*.jar" />
- </fileset>
- </path>
- <!--fileset dir="${hadoop.home}/lib" id="class.path">
- <include name="**/*.jar" />
- <exclude name="**/excluded/" />
- </fileset-->
- <target name="init">
- <mkdir dir="${build.classes}"/>
- </target>
- <target name="compile-gen" depends="init">
- <echo message="contrib: ${name}"/>
- <javac encoding="${build.encoding}"
- srcdir="gen-java"
- includes="**/*.java"
- destdir="${build.classes}"
- debug="${javac.debug}"
- optimize="${javac.optimize}"
- deprecation="${javac.deprecation}">
- <classpath refid="build.classpath" />
- <compilerarg line="${javac.args}" />
- </javac>
- </target>
- <target name="compile" depends="compile-gen">
- <echo message="contrib: ${name}"/>
- <echo message="src dir: ${src.dir}"/>
- <javac
- encoding="${build.encoding}"
- srcdir="${src.dir}"
- includes="**/*.java"
- destdir="${build.classes}"
- debug="${javac.debug}"
- optimize="${javac.optimize}"
- deprecation="${javac.deprecation}">
- <classpath refid="build.classpath"/>
- <compilerarg line="${javac.args} ${javac.args.warnings}" />
- </javac>
- </target>
- <!-- Override jar target to specify main class, and to include default
- configuration file -->
- <target name="jar" depends="compile">
- <jar jarfile="${build.dir}/hue-plugins-${plugins.version}.jar"
- basedir="${build.classes}">
- <fileset dir="${src.dir}">
- <include name="hue-default.xml" />
- </fileset>
- <!-- the version of thrift packaged with hadoop is ancient - bundle ours -->
- <zipfileset src="lib/libthrift.jar" />
- </jar>
- </target>
- </project>
|