buildframework/helium/tools/common/helium_docs.ant.xml
changeset 645 b8d81fa19e7d
parent 628 7c4a911dc066
--- a/buildframework/helium/tools/common/helium_docs.ant.xml	Wed Sep 29 17:48:06 2010 +0100
+++ b/buildframework/helium/tools/common/helium_docs.ant.xml	Sun Oct 10 15:22:15 2010 +0300
@@ -51,7 +51,7 @@
     
     <target name="helium-prep-textdocs">
         <mkdir dir="${doc.temp.dir}/minibuilds"/>
-        <copy todir="${doc.temp.dir}/development/minibuilds" failonerror="false">
+        <copy todir="${doc.temp.dir}/development/minibuilds">
             <fileset dir="${helium.dir}/tests/minibuilds/">
                 <include name="*/doc/**/*"/>
             </fileset>
@@ -69,6 +69,13 @@
                         <include name="**/*.png"/>
                     </fileset>
                 </copy>
+                <hlm:rstPrepMacro destdir="${doc.temp.dir}/helium-antlib">
+                    <resources>
+                        <path>
+                            <pathelement path="@{dir}"/>
+                        </path>
+                    </resources>
+                </hlm:rstPrepMacro>
             </sequential>
         </for>
         <for param="dir">
@@ -105,7 +112,7 @@
         @scope private
         -->
         <property name="last.major.release.database.url" value="${documentation.url.root}/${last.major.helium.version}/database.xml"/>
-        <hlm:python>
+        <hlm:python failonerror="true">
 import urllib
 import helium.documentation
 
@@ -385,7 +392,7 @@
         
         <antcall target="dependency-grouping"/>
         
-        <exec executable="dot">
+        <exec executable="dot" failonerror="true">
             <arg line="-Tpng -Grankdir=LR -Nshape=box -Nfontsize=9 -Nwidth=0.3 -Nheight=0.2 ${dependency.grph} -O"/>
         </exec>
         
@@ -413,7 +420,7 @@
         @scope private
         -->
         <property name="ivy.xml.file" value="${helium.dir}/config/ivy/ivy.xml"/>
-        <hlm:python>
+        <hlm:python failonerror="true">
 import os
 import dependancygraph
 
@@ -485,7 +492,7 @@
 dependancygraph.findLogFiles(r'${database.file}.parsed', r'${dependency.external.grph}')
         </hlm:python>
         <!---->
-        <exec executable="dot">
+        <exec executable="dot" failonerror="true">
             <arg line="-Tpng -Grankdir=LR -Nshape=box -Nfontsize=9 -Nwidth=0.3 -Nheight=0.2 ${dependency.external.grph} -O"/>
         </exec>
     </target>
@@ -503,10 +510,10 @@
             <fileset dir="${doc.temp.dir}" includes="user_graph.dot"/>
             <sequential>
                 <echo>Processing dot file: @{dot.file}</echo>
-                <exec executable="dot" dir="${doc.temp.dir}/">
+                <exec executable="dot" dir="${doc.temp.dir}/" failonerror="true">
                     <arg line="-Tcmap @{dot.file} -O"/>
                 </exec>
-                <exec executable="dot" dir="${doc.build.dir}/api">
+                <exec executable="dot" dir="${doc.build.dir}/api" failonerror="true">
                     <arg line="-Tpng @{dot.file} -O"/>
                 </exec>
             </sequential>