Author: tomwhite
Date: Fri Aug 6 20:30:59 2010
New Revision: 983122
URL: http://svn.apache.org/viewvc?rev=983122&view=rev
Log:
MAPREDUCE-1926. MapReduce distribution is missing build-utils.xml
Modified:
hadoop/mapreduce/trunk/CHANGES.txt
hadoop/mapreduce/trunk/build.xml
hadoop/mapreduce/trunk/src/contrib/capacity-scheduler/build.xml
Modified: hadoop/mapreduce/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/CHANGES.txt?rev=983122&r1=983121&r2=983122&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/CHANGES.txt (original)
+++ hadoop/mapreduce/trunk/CHANGES.txt Fri Aug 6 20:30:59 2010
@@ -1726,3 +1726,7 @@ Release 0.21.0 - Unreleased
MAPREDUCE-1876. Fixes TaskAttemptStartedEvent to correctly log event type
for all task types. (Amar Kamat via amareshwari)
+
+ MAPREDUCE-1926. MapReduce distribution is missing build-utils.xml.
+ (tomwhite)
+
Modified: hadoop/mapreduce/trunk/build.xml
URL:
http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/build.xml?rev=983122&r1=983121&r2=983122&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/build.xml (original)
+++ hadoop/mapreduce/trunk/build.xml Fri Aug 6 20:30:59 2010
@@ -865,8 +865,9 @@
<!-- ================================================================== -->
<target name="docs" depends="forrest.check" description="Generate
forrest-based documentation. To use, specify -Dforrest.home=<base of Apache
Forrest installation> on the command line." if="forrest.home">
+ <!-- The template file may not exist if building from a tarball -->
<copy file="${conf.dir}/mapred-queues.xml.template"
- tofile="${build.docs}/mapred-queues.xml"/>
+ tofile="${build.docs}/mapred-queues.xml" failonerror="false"/>
<exec dir="${docs.src}" executable="${forrest.home}/bin/forrest"
failonerror="true">
<env key="JAVA_HOME" value="${java5.home}"/>
@@ -1139,6 +1140,7 @@
</copy>
<copy todir="${dist.dir}/" file="build.xml"/>
+ <copy todir="${dist.dir}/" file="build-utils.xml"/>
<chmod perm="ugo+x" type="file" parallel="false">
<fileset dir="${dist.dir}/bin"/>
Modified: hadoop/mapreduce/trunk/src/contrib/capacity-scheduler/build.xml
URL:
http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/src/contrib/capacity-scheduler/build.xml?rev=983122&r1=983121&r2=983122&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/src/contrib/capacity-scheduler/build.xml (original)
+++ hadoop/mapreduce/trunk/src/contrib/capacity-scheduler/build.xml Fri Aug 6
20:30:59 2010
@@ -25,9 +25,19 @@ to call at top-level: ant deploy-contrib
<import file="../build-contrib.xml"/>
- <target name="docs" depends="forrest.check" description="Generate
forrest-based documentation. To use, specify -Dforrest.home=<base of Apache
Forrest installation> on the command line." if="forrest.home">
+ <target name="docs.check">
+ <condition property="generate-capacity-scheduler-docs">
+ <and>
+ <isset property="forrest.home"/>
+ <available file="${conf.dir}/capacity-scheduler.xml.template"
property="capacity-scheduler.xml.template.present"/>
+ </and>
+ </condition>
+ </target>
+ <target name="docs" depends="forrest.check,docs.check"
if="generate-capacity-scheduler-docs" description="Generate forrest-based
documentation. To use, specify -Dforrest.home=<base of Apache Forrest
installation> on the command line.">
+ <!-- The template file may not exist if building from a tarball -->
<copy file="src/java/mapred-queues.xml.template"
- tofile="${build.docs}/mapred-queues-capacity-scheduler.xml"/>
+ tofile="${build.docs}/mapred-queues-capacity-scheduler.xml"
+ failonerror="false"/>
<xslt in="${conf.dir}/capacity-scheduler.xml.template"
out="${build.docs}/capacity-scheduler-conf.html"
style="${conf.dir}/configuration.xsl"/>