Bläddra i källkod

HADOOP-6451. Fix build to run contrib unit tests. Contributed by Tom White

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.21@898737 13f79535-47bb-0310-9956-ffa450edef68
Christopher Douglas 15 år sedan
förälder
incheckning
8c4f0b6438
3 ändrade filer med 10 tillägg och 11 borttagningar
  1. 2 0
      CHANGES.txt
  2. 6 6
      build.xml
  3. 2 5
      src/contrib/build.xml

+ 2 - 0
CHANGES.txt

@@ -1139,6 +1139,8 @@ Release 0.21.0 - Unreleased
     HADOOP-6441. Protect web ui from cross site scripting attacks (XSS) on
     the host http header and using encoded utf-7. (omalley)
 
+    HADOOP-6451. Fix build to run contrib unit tests. (Tom White via cdouglas)
+
 Release 0.20.2 - Unreleased
 
   NEW FEATURES

+ 6 - 6
build.xml

@@ -375,7 +375,7 @@
   </target>
 
   <target name="compile-contrib" depends="compile-core">
-     <subant target="compile" inheritall="true">
+     <subant target="compile">
         <property name="version" value="${version}"/>
         <fileset file="${contrib.dir}/build.xml"/>
      </subant>  	
@@ -661,7 +661,7 @@
   </target>
 
   <target name="test-contrib" depends="compile, compile-core-test" description="Run contrib unit tests">
-    <subant target="test" inheritall="true">
+    <subant target="test">
        <property name="version" value="${version}"/>
        <property name="clover.jar" value="${clover.jar}"/>
        <fileset file="${contrib.dir}/build.xml"/>
@@ -678,7 +678,7 @@
   </target>
 
   <target name="test" depends="jar-test,test-core" description="Run all unit tests">
-    <subant target="test-contrib" inheritall="true">	 
+    <subant target="test-contrib">	 
       <fileset dir="." includes="build.xml"/>
     </subant>
   </target>
@@ -973,7 +973,7 @@
 	  <arg line="${native.src.dir}/packageNativeHadoop.sh"/>
     </exec>
 
-    <subant target="package" inheritall="true">
+    <subant target="package">
       <!--Pass down the version in case its needed again and the target
       distribution directory so contribs know where to install to.-->
       <property name="version" value="${version}"/>
@@ -1073,7 +1073,7 @@
 	  <arg line="${native.src.dir}/packageNativeHadoop.sh"/>
     </exec>
 
-    <subant target="package" inheritall="true">
+    <subant target="package">
       <!--Pass down the version in case its needed again and the target
       distribution directory so contribs know where to install to.-->
       <property name="version" value="${version}"/>
@@ -1226,7 +1226,7 @@
   <!-- Using subant instead of ant as a workaround for 30569              -->
   <!-- ================================================================== -->
   <target name="clean-contrib">
-     <subant target="clean" inheritall="true">        
+     <subant target="clean">        
         <fileset file="src/contrib/build.xml"/>
      </subant>  	
   </target>

+ 2 - 5
src/contrib/build.xml

@@ -46,11 +46,8 @@
   <!-- ====================================================== -->
   <target name="test">
     <subant target="test">
-      <fileset dir="." includes="hdfsproxy/build.xml"/>
-      <fileset dir="." includes="streaming/build.xml"/>
-      <fileset dir="." includes="fairscheduler/build.xml"/>
-      <fileset dir="." includes="capacity-scheduler/build.xml"/>
-      <fileset dir="." includes="mrunit/build.xml"/>
+      <fileset dir="." includes="failmon/build.xml"/>
+      <fileset dir="." includes="hod/build.xml"/>
     </subant>
   </target>