Index: build.xml
===================================================================
--- build.xml	(revision 720939)
+++ build.xml	(working copy)
@@ -41,8 +41,10 @@
   <property name="lib.dir" value="${basedir}/lib"/>
   <property name="conf.dir" value="${basedir}/conf"/>
   <property name="docs.dir" value="${basedir}/docs"/>
+  <property name="cndocs.dir" value="${basedir}/docs/cn"/>
   <property name="contrib.dir" value="${basedir}/src/contrib"/>
   <property name="docs.src" value="${basedir}/src/docs"/>
+  <property name="cndocs.src" value="${basedir}/src/docs/cn"/>
   <property name="changes.src" value="${docs.src}/changes"/>
   <property name="c++.src" value="${basedir}/src/c++"/>
   <property name="c++.utils.src" value="${c++.src}/utils"/>
@@ -786,8 +788,37 @@
     <style basedir="${conf.dir}" destdir="${docs.dir}"
            includes="hadoop-default.xml" style="conf/configuration.xsl"/>
     <antcall target="changes-to-html"/>
+    <antcall target="cn-docs"/>
   </target>
 
+  <target name="cn-docs" depends="forrest.check" 
+        description="Generate forrest-based Chinese documentation. To use, specify -Dforrest.home=&lt;base of Apache Forrest installation&gt; on the command line." 
+        if="forrest.home">
+    <copy todir="${forrest.home}/main/webapp">
+      <fileset dir="${cndocs.src}">
+        <include name="uming.conf" />
+        <include name="uming.xml" />
+        <include name="uming.ttc" />
+      </fileset>
+    </copy>
+    <exec dir="${cndocs.src}" executable="${forrest.home}/bin/forrest" failonerror="true">
+      <env key="JAVA_HOME" value="${java5.home}"/>
+    </exec>
+    <delete>
+      <fileset dir="${forrest.home}/main/webapp">
+        <include name="uming.conf" />
+        <include name="uming.xml" />
+        <include name="uming.ttc" />
+      </fileset>
+    </delete>
+    <copy todir="${cndocs.dir}">
+      <fileset dir="${cndocs.src}/build/site/" />
+    </copy>
+    <style basedir="${conf.dir}" destdir="${cndocs.dir}"
+          includes="hadoop-default.xml" style="conf/configuration.xsl"/>
+    <antcall target="changes-to-html"/>
+  </target>
+
   <target name="forrest.check" unless="forrest.home" depends="java5.check">
     <fail message="'forrest.home' is not defined. Please pass -Dforrest.home=&lt;base of Apache Forrest installation&gt; to Ant on the command-line." />
   </target>
@@ -1076,6 +1107,7 @@
   <target name="clean" depends="clean-contrib" description="Clean.  Delete the build files, and their directories">
     <delete dir="${build.dir}"/>
     <delete dir="${docs.src}/build"/>
+    <delete dir="${cndocs.src}/build"/>
   </target>
 
   <!-- ================================================================== -->
