diff -r 3c858aa7a023 -r 56a1d97e7c73 doc/api/helium/target-sf-check-env.html --- 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 @@
Location
-D:\maintools\sf-config\common\build.xml:99: +
d:\maintools\sf-config\common\build.xml:95:
Conditional execution
@@ -105,6 +105,9 @@
<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>