PageRenderTime 43ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

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