build.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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="block_forensics" default="jar">
  21. <property name="version" value="0.1"/>
  22. <import file="../build-contrib.xml"/>
  23. <!-- create the list of files to add to the classpath -->
  24. <fileset dir="${hadoop.root}/lib" id="class.path">
  25. <include name="**/*.jar" />
  26. <exclude name="**/excluded/" />
  27. </fileset>
  28. <!-- Override jar target to specify main class -->
  29. <target name="jar" depends="compile">
  30. <jar
  31. jarfile="${build.dir}/hadoop-${version}-${name}.jar"
  32. basedir="${build.classes}"
  33. >
  34. <manifest>
  35. <attribute name="Main-Class" value="org.apache.hadoop.blockforensics.BlockSearch"/>
  36. </manifest>
  37. </jar>
  38. <javac srcdir="client" destdir="${build.classes}"/>
  39. </target>
  40. <!-- Run only pure-Java unit tests. superdottest -->
  41. <target name="test">
  42. <antcall target="hadoopbuildcontrib.test">
  43. </antcall>
  44. </target>
  45. <!-- Run all unit tests
  46. This is not called as part of the nightly build
  47. because it will only run on platforms that have standard
  48. Unix utilities available.
  49. -->
  50. <target name="test-unix">
  51. <antcall target="hadoopbuildcontrib.test">
  52. </antcall>
  53. </target>
  54. </project>