Helium API

Target sf-check-env

Location

d:\maintools\sf-config\common\build.xml:95:

Conditional execution

No conditions on target execution.


Description


Target external Dependency

Name
perl
perl

Property dependencies

NameEdit status
User editable properties
Internal properties
build.log.dirdiscouraged


Target dependencies

sf-check-env dependencies


Source code

    <target name="sf-check-env">
        <!-- Conditional location of BuildEnv.xml. Project always preferred to default -->
        <if><available file="${sf.project.location}/BuildEnv.xml"/>        
            <then>
                <property name="sf.buildenv.location" value="${sf.project.location}"/>
            </then>
            <else>
                <property name="sf.buildenv.location" value="${sf.common.config.dir}/tools"/>
            </else>
        </if>
        
        <echo message="Build Env against ${sf.buildenv.location}/BuildEnv.xml"/>
        <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"/>
            <arg value="--sbs='${sf.spec.sbs.config}'"/>
            <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>

Helium API
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. License: http://www.eclipse.org/legal/epl-v10.html