build.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  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. <project basedir="." default="build" name="logfeeder">
  17. <property environment="env"/>
  18. <property name="debuglevel" value="source,lines,vars"/>
  19. <dirname property="builddir" file="build.xml"/>
  20. <property name="target" value="1.7"/>
  21. <property name="source" value="1.7"/>
  22. <property file="local.properties"/>
  23. <property file="build.properties"/>
  24. <target name="init">
  25. </target>
  26. <target name="build"/>
  27. <target name="package">
  28. <delete dir="target/package"/>
  29. <copy todir="target/package/libs" includeEmptyDirs="no">
  30. <fileset dir="target/libs"/>
  31. </copy>
  32. <copy todir="target/package/" includeEmptyDirs="no">
  33. <fileset file="target/LogFeeder.jar"/>
  34. </copy>
  35. <copy todir="target/package/classes" includeEmptyDirs="no">
  36. <fileset dir="target/classes"/>
  37. </copy>
  38. <copy todir="target/package" includeEmptyDirs="no">
  39. <fileset file="config.json"/>
  40. </copy>
  41. <copy todir="target/package" includeEmptyDirs="no">
  42. <fileset file="grok-patterns"/>
  43. <fileset file="src/main/scripts/run.sh"/>
  44. </copy>
  45. <chmod file="target/package/run.sh" perm="755"/>
  46. <tar compression="gzip" destfile="target/ambari-logsearch-logfeeder.tgz">
  47. <tarfileset mode="755" dir="target/package">
  48. <include name="*.sh"/>
  49. </tarfileset>
  50. <tarfileset mode="664" dir="target/package">
  51. <exclude name="*.sh"/>
  52. </tarfileset>
  53. </tar>
  54. </target>
  55. <target description="Build all projects which reference this project. Useful to propagate changes."
  56. name="build-refprojects"/>
  57. </project>