[120] | 1 | <?xml version="1.0" ?> |
---|
| 2 | |
---|
| 3 | <!-- |
---|
| 4 | Licensed to the Apache Software Foundation (ASF) under one or more |
---|
| 5 | contributor license agreements. See the NOTICE file distributed with |
---|
| 6 | this work for additional information regarding copyright ownership. |
---|
| 7 | The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
| 8 | (the "License"); you may not use this file except in compliance with |
---|
| 9 | the License. You may obtain a copy of the License at |
---|
| 10 | |
---|
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
---|
| 12 | |
---|
| 13 | Unless required by applicable law or agreed to in writing, software |
---|
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
---|
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
| 16 | See the License for the specific language governing permissions and |
---|
| 17 | limitations under the License. |
---|
| 18 | --> |
---|
| 19 | |
---|
| 20 | <project name="vaidya" default="jar"> |
---|
| 21 | |
---|
| 22 | <import file="../build-contrib.xml" /> |
---|
| 23 | |
---|
| 24 | <target name="init"> |
---|
| 25 | <mkdir dir="${build.dir}" /> |
---|
| 26 | <mkdir dir="${build.classes}" /> |
---|
| 27 | <mkdir dir="${build.dir}/bin" /> |
---|
| 28 | <mkdir dir="${build.dir}/conf" /> |
---|
| 29 | |
---|
| 30 | <copy todir="${build.dir}/bin"> |
---|
| 31 | <!-- copy hadoop vaidya command script file to hadoop-vaidya/bin --> |
---|
| 32 | <fileset dir="${basedir}/src/java/org/apache/hadoop/vaidya"> |
---|
| 33 | <include name="vaidya.sh" /> |
---|
| 34 | </fileset> |
---|
| 35 | </copy> |
---|
| 36 | |
---|
| 37 | <copy todir="${build.dir}/conf"> |
---|
| 38 | <!-- copy hadoop vaidya tests config file to chuckwa/conf --> |
---|
| 39 | <fileset dir="${basedir}/src/java/org/apache/hadoop/vaidya/postexdiagnosis/tests"> |
---|
| 40 | <include name="postex_diagnosis_tests.xml" /> |
---|
| 41 | </fileset> |
---|
| 42 | </copy> |
---|
| 43 | </target> |
---|
| 44 | |
---|
| 45 | <!-- ====================================================== --> |
---|
| 46 | <!-- Override jar target to include the tests conf xml file --> |
---|
| 47 | <!-- ====================================================== --> |
---|
| 48 | <target name="jar" depends="compile" unless="skip.contrib"> |
---|
| 49 | <echo message="contrib: ${name}" /> |
---|
| 50 | <jar jarfile="${build.dir}/hadoop-${version}-${name}.jar"> |
---|
| 51 | <fileset dir="${build.classes}" /> |
---|
| 52 | <fileset dir="${basedir}/src/java/org/apache/hadoop/vaidya/postexdiagnosis/tests"> |
---|
| 53 | <include name="postex_diagnosis_tests.xml" /> |
---|
| 54 | </fileset> |
---|
| 55 | </jar> |
---|
| 56 | </target> |
---|
| 57 | |
---|
| 58 | <target name="package" depends="jar"> |
---|
| 59 | <mkdir dir="${dist.dir}/contrib/${name}" /> |
---|
| 60 | <copy todir="${dist.dir}/contrib/${name}" includeEmptyDirs="false"> |
---|
| 61 | <fileset dir="${build.dir}"> |
---|
| 62 | <exclude name="**/classes/" /> |
---|
| 63 | </fileset> |
---|
| 64 | </copy> |
---|
| 65 | <chmod dir="${dist.dir}/contrib/${name}/bin" perm="a+x" includes="*" /> |
---|
| 66 | </target> |
---|
| 67 | |
---|
| 68 | </project> |
---|