--- commons-logging-1.1.1-src/build.xml.orig	2007-11-21 18:27:52.000000000 -0500
+++ commons-logging-1.1.1-src/build.xml	2009-02-05 15:48:34.000000000 -0500
@@ -780,9 +780,34 @@
       </batchtest>
     </junit>
 
-    <fail if="test.failure">
-      One or more unit tests failed.
+    <fail message="One or more unit tests failed.">
+      <condition>
+        <and>
+          <not>
+            <isset property="test.failonerror"/>
+          </not>
+          <isset property="test.failure"/>
+        </and>
+      </condition>
     </fail>
   </target>
 
+  <target name="javadoc" depends="compile"
+   description="Create component Javadoc documentation">
+    <mkdir dir="${dist.home}"/>
+    <mkdir dir="${dist.home}/docs"/>
+    <mkdir dir="${dist.home}/docs/api"/>
+    <javadoc sourcepath="${source.home}"
+             destdir="${dist.home}/docs/api"
+             packagenames="org.apache.commons.*"
+             author="true"
+             private="true"
+             version="true"
+             doctitle="&lt;h1&gt;${component.title} (Version ${component.version})&lt;/h1&gt;"
+             windowtitle="${component.title} (Version ${component.version})"
+             bottom='Copyright 2001-2005 The Apache Software Foundation.'>
+       <classpath refid="javadoc.classpath"/>
+    </javadoc>
+  </target>
+
 </project>
