فهرست منبع

HADOOP-5101. Improve packaging by adding 'all-jars' target building core,
tools, and example jars. Let findbugs depend on this rather than the 'tar'
target. Contributed by Giridharan Kesavan


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@742813 13f79535-47bb-0310-9956-ffa450edef68

Christopher Douglas 16 سال پیش
والد
کامیت
182b3f0832
2فایلهای تغییر یافته به همراه14 افزوده شده و 2 حذف شده
  1. 4 0
      CHANGES.txt
  2. 10 2
      build.xml

+ 4 - 0
CHANGES.txt

@@ -88,6 +88,10 @@ Trunk (unreleased changes)
     HADOOP-5038. Direct daemon trace to debug log instead of stdout. (Jerome
     HADOOP-5038. Direct daemon trace to debug log instead of stdout. (Jerome
     Boulon via cdouglas)
     Boulon via cdouglas)
 
 
+    HADOOP-5101. Improve packaging by adding 'all-jars' target building core,
+    tools, and example jars. Let findbugs depend on this rather than the 'tar'
+    target. (Giridharan Kesavan via cdouglas)
+
   OPTIMIZATIONS
   OPTIMIZATIONS
 
 
   BUG FIXES
   BUG FIXES

+ 10 - 2
build.xml

@@ -775,7 +775,7 @@
     </subant> 
     </subant> 
   </target>
   </target>
 	  
 	  
-  <target name="test" depends="test-core, test-contrib" description="Run core, contrib unit tests">
+  <target name="test" depends="test-c++-libhdfs, test-core, test-contrib" description="Run core, contrib unit tests">
   </target>
   </target>
 
 
   <!-- Run all unit tests, not just Test*, and use non-test configuration. -->
   <!-- Run all unit tests, not just Test*, and use non-test configuration. -->
@@ -818,8 +818,16 @@
     </available>  	
     </available>  	
   </target>
   </target>
 
 
+ <target name="all-jars" depends="tools-jar,examples">
+   <subant target="jar">
+      <property name="version" value="${version}"/>
+      <property name="dist.dir" value="${dist.dir}"/>
+      <fileset file="${contrib.dir}/streaming/build.xml"/>
+    </subant>
+ </target>
+
  <property name="findbugs.home" value=""/>
  <property name="findbugs.home" value=""/>
-  <target name="findbugs" depends="check-for-findbugs, tar" if="findbugs.present" description="Run findbugs if present">
+  <target name="findbugs" depends="check-for-findbugs, all-jars" if="findbugs.present" description="Run findbugs if present">
     <property name="findbugs.out.dir" value="${test.build.dir}/findbugs"/>
     <property name="findbugs.out.dir" value="${test.build.dir}/findbugs"/>
     <property name="findbugs.exclude.file" value="${test.src.dir}/findbugsExcludeFile.xml"/>
     <property name="findbugs.exclude.file" value="${test.src.dir}/findbugsExcludeFile.xml"/>
     <property name="findbugs.report.htmlfile" value="${findbugs.out.dir}/hadoop-findbugs-report.html"/>
     <property name="findbugs.report.htmlfile" value="${findbugs.out.dir}/hadoop-findbugs-report.html"/>