hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r747169 - in /hadoop/core/trunk: CHANGES.txt build.xml
Date Mon, 23 Feb 2009 22:30:40 GMT
Author: cutting
Date: Mon Feb 23 22:30:34 2009
New Revision: 747169

URL: http://svn.apache.org/viewvc?rev=747169&view=rev
Log:
HADOOP-5240.  Skip re-building javadoc when it is already up-to-date.  Contributed by Aaron
Kimball.

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=747169&r1=747168&r2=747169&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Mon Feb 23 22:30:34 2009
@@ -126,6 +126,9 @@
 
     HADOOP-5222. Add offset to datanode clienttrace. (Lei Xu via cdouglas)
 
+    HADOOP-5240. Skip re-building javadoc when it is already
+    up-to-date. (Aaron Kimball via cutting)
+
   OPTIMIZATIONS
 
   BUG FIXES

Modified: hadoop/core/trunk/build.xml
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/build.xml?rev=747169&r1=747168&r2=747169&view=diff
==============================================================================
--- hadoop/core/trunk/build.xml (original)
+++ hadoop/core/trunk/build.xml Mon Feb 23 22:30:34 2009
@@ -80,6 +80,7 @@
   <property name="build.docs" value="${build.dir}/docs"/>
   <property name="build.docs.cn" value="${build.dir}/docs/cn"/>
   <property name="build.javadoc" value="${build.docs}/api"/>
+  <property name="build.javadoc.timestamp" value="${build.javadoc}/index.html" />
   <property name="build.javadoc.dev" value="${build.docs}/dev-api"/>
   <property name="build.encoding" value="ISO-8859-1"/>
   <property name="install.c++" value="${build.dir}/c++/${build.platform}"/>
@@ -965,7 +966,18 @@
     </javadoc>
   </target>	
 
-  <target name="javadoc" depends="compile, ivy-retrieve-javadoc" description="Generate
javadoc">
+  <target name="javadoc-uptodate" depends="compile, ivy-retrieve-javadoc">
+    <uptodate property="javadoc.is.uptodate">
+      <srcfiles dir="${src.dir}">
+        <include name="**/*.java" />
+        <include name="**/*.html" />
+      </srcfiles>
+      <mapper type="merge" to="${build.javadoc.timestamp}" />
+    </uptodate>
+  </target>
+ 
+  <target name="javadoc" description="Generate javadoc" depends="javadoc-uptodate"
+       unless="javadoc.is.uptodate">
     <mkdir dir="${build.javadoc}"/>
     <javadoc
       overview="${core.src.dir}/overview.html"



Mime
View raw message