hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r672791 [1/2] - in /hadoop/core/trunk: CHANGES.txt build.xml docs/jdiff/ docs/jdiff/hadoop_0.17.0.xml
Date Mon, 30 Jun 2008 15:16:56 GMT
Author: omalley
Date: Mon Jun 30 08:16:56 2008
New Revision: 672791

URL: http://svn.apache.org/viewvc?rev=672791&view=rev
Log:
HADOOP-3532. Add jdiff reports to the build scripts. Contributed by Owen 
O'Malley.

Added:
    hadoop/core/trunk/docs/jdiff/
    hadoop/core/trunk/docs/jdiff/hadoop_0.17.0.xml
Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/build.xml

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=672791&r1=672790&r2=672791&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Mon Jun 30 08:16:56 2008
@@ -333,6 +333,8 @@
 
     HADOOP-3606. Updates the Streaming doc. (Amareshwari Sriramadasu via ddas) 
 
+    HADOOP-3532. Add jdiff reports to the build scripts. (omalley)
+
   OPTIMIZATIONS
 
     HADOOP-3274. The default constructor of BytesWritable creates empty 

Modified: hadoop/core/trunk/build.xml
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/build.xml?rev=672791&r1=672790&r2=672791&view=diff
==============================================================================
--- hadoop/core/trunk/build.xml (original)
+++ hadoop/core/trunk/build.xml Mon Jun 30 08:16:56 2008
@@ -120,6 +120,11 @@
   <property name="clover.report.dir" location="${build.dir}/test/clover/reports"/>
 
   <property name="rat.reporting.classname" value="rat.Report"/>
+  <property name="jdiff.home" value="${user.home}/jdiff-1.1.0"/>
+  <property name="jdiff.reports.dir" value="${docs.dir}/jdiff"/>
+  <property name="jdiff.stable" value="0.17.0"/>
+  <property name="jdiff.stable.javadoc" 
+            value="http://hadoop.apache.org/core/docs/r${jdiff.stable}/api/"/>
 
   <property name="scratch.dir" value="${user.home}/tmp"/>
   <property name="svn.cmd" value="svn"/>
@@ -793,6 +798,45 @@
 
     </javadoc>
   </target>	
+
+  <target name="api-xml" depends="javadoc">
+    <javadoc>
+       <doclet name="jdiff.JDiff"
+               path="${jdiff.home}/jdiff.jar:${jdiff.home}/xerces.jar">
+         <param name="-apidir" value="${build.dir}"/>
+         <param name="-apiname" value="hadoop ${version}"/>
+       </doclet>
+       <packageset dir="src/core"/>
+       <packageset dir="src/hdfs"/>
+       <packageset dir="src/mapred"/>
+       <packageset dir="src/tools"/>
+       <classpath >
+         <path refid="classpath" />
+         <pathelement path="${java.class.path}"/>
+       </classpath>
+    </javadoc>
+  </target>
+	
+  <target name="api-report" depends="api-xml">
+    <javadoc sourcepath="src/core,src/hdfs,src,mapred,src/tools"
+             destdir="${build.dir}"
+             sourceFiles="${jdiff.home}/Null.java">
+       <doclet name="jdiff.JDiff"
+               path="${jdiff.home}/jdiff.jar:${jdiff.home}/xerces.jar">
+         <param name="-oldapi" value="hadoop ${jdiff.stable}"/>
+         <param name="-newapi" value="hadoop ${version}"/>
+         <param name="-oldapidir" value="${jdiff.reports.dir}"/>
+         <param name="-newapidir" value="${build.dir}"/>
+         <param name="-javadocold" value="${jdiff.stable.javadoc}"/>
+         <param name="-javadocnew" value="${build.javadoc}/"/>
+         <param name="-stats"/>
+       </doclet>
+       <classpath >
+         <path refid="classpath" />
+         <pathelement path="${java.class.path}"/>
+       </classpath>
+    </javadoc>
+  </target>
 	
   <target name="changes-to-html" description="Convert CHANGES.txt into an html file">
     <mkdir dir="${docs.dir}"/>



Mime
View raw message