doc/api/helium/target-sf-check-env.html
changeset 627 56a1d97e7c73
parent 432 f2ddfa555b0f
equal deleted inserted replaced
607:3c858aa7a023 627:56a1d97e7c73
    80 
    80 
    81     
    81     
    82 <h2>Target sf-check-env</h2>
    82 <h2>Target sf-check-env</h2>
    83 
    83 
    84 <p><b>Location</b></p>
    84 <p><b>Location</b></p>
    85 <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>  
    85 <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>  
    86 </p>
    86 </p>
    87 
    87 
    88 <p><b>Conditional execution</b></p>        
    88 <p><b>Conditional execution</b></p>        
    89 <p>No conditions on target execution.</p>
    89 <p>No conditions on target execution.</p>
    90 <hr/>
    90 <hr/>
   100 <p> 
   100 <p> 
   101 <table class="docutils" width="50%">
   101 <table class="docutils" width="50%">
   102     <tr>
   102     <tr>
   103         <th class="head">Name</th>
   103         <th class="head">Name</th>
   104     </tr>
   104     </tr>
       
   105         <tr>
       
   106                     <td>perl</td>
       
   107             </tr>
   105         <tr>
   108         <tr>
   106                     <td>perl</td>
   109                     <td>perl</td>
   107             </tr>
   110             </tr>
   108 </table>
   111 </table>
   109 </p>
   112 </p>
   145 
   148 
   146 
   149 
   147 <h3>Source code</h3>
   150 <h3>Source code</h3>
   148 <pre>
   151 <pre>
   149     &lt;target name=&quot;sf-check-env&quot;&gt;
   152     &lt;target name=&quot;sf-check-env&quot;&gt;
   150 
       
   151         &lt;!-- Conditional location of BuildEnv.xml. Project always preferred to default --&gt;
   153         &lt;!-- Conditional location of BuildEnv.xml. Project always preferred to default --&gt;
   152         &lt;if&gt;&lt;available file=&quot;${sf.project.location}/BuildEnv.xml&quot;/&gt;        
   154         &lt;if&gt;&lt;available file=&quot;${sf.project.location}/BuildEnv.xml&quot;/&gt;        
   153             &lt;then&gt;
   155             &lt;then&gt;
   154                 &lt;property name=&quot;sf.buildenv.location&quot; value=&quot;${sf.project.location}&quot;/&gt;
   156                 &lt;property name=&quot;sf.buildenv.location&quot; value=&quot;${sf.project.location}&quot;/&gt;
   155             &lt;/then&gt;
   157             &lt;/then&gt;
   157                 &lt;property name=&quot;sf.buildenv.location&quot; value=&quot;${sf.common.config.dir}/tools&quot;/&gt;
   159                 &lt;property name=&quot;sf.buildenv.location&quot; value=&quot;${sf.common.config.dir}/tools&quot;/&gt;
   158             &lt;/else&gt;
   160             &lt;/else&gt;
   159         &lt;/if&gt;
   161         &lt;/if&gt;
   160         
   162         
   161         &lt;echo message=&quot;Build Env against ${sf.buildenv.location}/BuildEnv.xml&quot;/&gt;
   163         &lt;echo message=&quot;Build Env against ${sf.buildenv.location}/BuildEnv.xml&quot;/&gt;
   162         &lt;exec executable=&quot;perl&quot; dir=&quot;${sf.common.config.dir}/tools&quot; failonerror=&quot;true&quot;&gt;
   164         &lt;exec executable=&quot;perl&quot; dir=&quot;${sf.common.config.dir}/tools&quot; resultproperty=&quot;sf.checkenv.exit&quot;&gt;
   163             &lt;arg value=&quot;CheckBuildEnv.pl&quot;/&gt;
   165             &lt;arg value=&quot;CheckBuildEnv.pl&quot;/&gt;
   164             &lt;arg value=&quot;--xml=${sf.buildenv.location}/BuildEnv.xml&quot;/&gt;
   166             &lt;arg value=&quot;--xml=${sf.buildenv.location}/BuildEnv.xml&quot;/&gt;
   165             &lt;arg value=&quot;--dbg=${build.log.dir}/BuildEnvironmentCheck.log&quot;/&gt;
   167             &lt;arg value=&quot;--dbg=${build.log.dir}/BuildEnvironmentCheck.log&quot;/&gt;
   166             &lt;arg value=&quot;--sbs='${sf.spec.sbs.config}'&quot;/&gt;
   168             &lt;arg value=&quot;--sbs='${sf.spec.sbs.config}'&quot;/&gt;
   167             &lt;arg value=&quot;--tools='${sf.spec.sbs.tools.config}'&quot;/&gt;
   169             &lt;arg value=&quot;--tools='${sf.spec.sbs.tools.config}'&quot;/&gt;
   168             &lt;arg value=&quot;Common&quot;/&gt;
   170             &lt;arg value=&quot;Common&quot;/&gt;
   169         &lt;/exec&gt;
   171         &lt;/exec&gt;
       
   172         &lt;exec executable=&quot;perl&quot; failonerror=&quot;false&quot; output=&quot;${build.log.dir}/summary/BuildEnvironmentCheck_BRAG.xml&quot; logError=&quot;true&quot;&gt;
       
   173             &lt;arg value=&quot;${sf.common.config.dir}/tools/brag/logToBRAG.pl&quot;/&gt;
       
   174             &lt;arg value=&quot;--phase=Prebuild&quot;/&gt;
       
   175             &lt;arg value=&quot;--step=Build Environment Check&quot;/&gt;
       
   176             &lt;arg value=&quot;--rules=${sf.common.config.dir}/tools/brag/rules.BuildEnvironmentCheck.tsv&quot;/&gt;
       
   177             &lt;arg value=&quot;${build.log.dir}/BuildEnvironmentCheck.log&quot;/&gt;
       
   178         &lt;/exec&gt;
       
   179         &lt;fail&gt;
       
   180             &lt;condition&gt;
       
   181                 &lt;not&gt;
       
   182                     &lt;or&gt;
       
   183                         &lt;equals arg1=&quot;sf.checkenv.exit&quot; arg2=&quot;0&quot;/&gt;
       
   184                         &lt;isset property=&quot;sf.suppress.buildenv.check&quot;/&gt;
       
   185                     &lt;/or&gt;
       
   186                 &lt;/not&gt;
       
   187             &lt;/condition&gt;
       
   188 Build Environment Check failed. To stop this failure aborting the build set property sf.suppress.buildenv.check to any value.
       
   189         &lt;/fail&gt;
   170     &lt;/target&gt;
   190     &lt;/target&gt;
   171 </pre>
   191 </pre>
   172 
   192 
   173 
   193 
   174     <hr/>
   194     <hr/>