--- a/doc/api/helium/target-sf-check-env.html Tue Oct 06 17:31:14 2009 +0100
+++ b/doc/api/helium/target-sf-check-env.html Thu Oct 08 19:36:20 2009 +0100
@@ -82,7 +82,7 @@
<h2>Target sf-check-env</h2>
<p><b>Location</b></p>
-<p> <tt class="docutils literal"><a href="/D:/maintools/sf-config/common/build.xml#L99">D:\maintools\sf-config\common\build.xml:99:</a></tt>
+<p> <tt class="docutils literal"><a href="/d:/maintools/sf-config/common/build.xml#L95">d:\maintools\sf-config\common\build.xml:95:</a></tt>
</p>
<p><b>Conditional execution</b></p>
@@ -105,6 +105,9 @@
<tr>
<td>perl</td>
</tr>
+ <tr>
+ <td>perl</td>
+ </tr>
</table>
</p>
@@ -147,7 +150,6 @@
<h3>Source code</h3>
<pre>
<target name="sf-check-env">
-
<!-- Conditional location of BuildEnv.xml. Project always preferred to default -->
<if><available file="${sf.project.location}/BuildEnv.xml"/>
<then>
@@ -159,7 +161,7 @@
</if>
<echo message="Build Env against ${sf.buildenv.location}/BuildEnv.xml"/>
- <exec executable="perl" dir="${sf.common.config.dir}/tools" failonerror="true">
+ <exec executable="perl" dir="${sf.common.config.dir}/tools" resultproperty="sf.checkenv.exit">
<arg value="CheckBuildEnv.pl"/>
<arg value="--xml=${sf.buildenv.location}/BuildEnv.xml"/>
<arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/>
@@ -167,6 +169,24 @@
<arg value="--tools='${sf.spec.sbs.tools.config}'"/>
<arg value="Common"/>
</exec>
+ <exec executable="perl" failonerror="false" output="${build.log.dir}/summary/BuildEnvironmentCheck_BRAG.xml" logError="true">
+ <arg value="${sf.common.config.dir}/tools/brag/logToBRAG.pl"/>
+ <arg value="--phase=Prebuild"/>
+ <arg value="--step=Build Environment Check"/>
+ <arg value="--rules=${sf.common.config.dir}/tools/brag/rules.BuildEnvironmentCheck.tsv"/>
+ <arg value="${build.log.dir}/BuildEnvironmentCheck.log"/>
+ </exec>
+ <fail>
+ <condition>
+ <not>
+ <or>
+ <equals arg1="sf.checkenv.exit" arg2="0"/>
+ <isset property="sf.suppress.buildenv.check"/>
+ </or>
+ </not>
+ </condition>
+Build Environment Check failed. To stop this failure aborting the build set property sf.suppress.buildenv.check to any value.
+ </fail>
</target>
</pre>