build.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. <project name="zookeepercontrib" default="compile" basedir=".">
  17. <property name="contribfilesetincludes" value="*/build.xml" />
  18. <property name="contribfilesetexcludes" value="zookeeper-contrib-fatjar/build.xml" />
  19. <fileset id="contribfileset" dir=".">
  20. <include name="${contribfilesetincludes}"/>
  21. <exclude name="${contribfilesetexcludes}"/>
  22. </fileset>
  23. <!-- In case one of the contrib subdirectories -->
  24. <!-- fails the build or test targets and you cannot fix it: -->
  25. <!-- Then add to fileset: excludes="badcontrib/build.xml" -->
  26. <!-- ====================================================== -->
  27. <!-- Compile contribs. -->
  28. <!-- ====================================================== -->
  29. <target name="compile">
  30. <subant target="jar">
  31. <fileset refid="contribfileset" />
  32. </subant>
  33. </target>
  34. <!-- ====================================================== -->
  35. <!-- Package contrib jars. -->
  36. <!-- ====================================================== -->
  37. <target name="package">
  38. <subant target="package">
  39. <fileset refid="contribfileset" />
  40. </subant>
  41. </target>
  42. <!-- ====================================================== -->
  43. <!-- Test all the contribs. -->
  44. <!-- ====================================================== -->
  45. <target name="test">
  46. <subant target="test">
  47. <fileset refid="contribfileset" />
  48. </subant>
  49. </target>
  50. <!-- ====================================================== -->
  51. <!-- Clean all the contribs. -->
  52. <!-- ====================================================== -->
  53. <target name="clean">
  54. <subant target="clean">
  55. <fileset refid="contribfileset" />
  56. </subant>
  57. </target>
  58. </project>