common/build.xml
changeset 647 4d2a89833fea
parent 637 3effbd6728d4
child 648 5d343f062b11
equal deleted inserted replaced
646:a8f44c79e9db 647:4d2a89833fea
   116             <arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/>
   116             <arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/>
   117             <arg value="--sbs='${sf.spec.sbs.config}'"/>
   117             <arg value="--sbs='${sf.spec.sbs.config}'"/>
   118             <arg value="--tools='${sf.spec.sbs.tools.config}'"/>
   118             <arg value="--tools='${sf.spec.sbs.tools.config}'"/>
   119             <arg value="Common"/>
   119             <arg value="Common"/>
   120         </exec>
   120         </exec>
   121         <mkdir dir="${build.log.dir}/summary" />
   121         <antcall target="sf-log-to-brag">
   122         <exec executable="perl" failonerror="false" output="${build.log.dir}/summary/BuildEnvironmentCheck_BRAG.xml" logError="true">
   122             <param name="sf.brag.phase" value="Prebuild"/>
   123             <arg value="${sf.common.config.dir}/tools/brag/logToBRAG.pl"/>
   123             <param name="sf.brag.step" value="Build Environment Check"/>
   124             <arg value="--phase=Prebuild"/>
   124             <param name="sf.brag.log" value="${build.log.dir}/BuildEnvironmentCheck.log"/>
   125             <arg value="--step=Build Environment Check"/>
   125             <param name="sf.brag.id" value="BuildEnvironmentCheck"/>
   126             <arg value="--rules=${sf.common.config.dir}/tools/brag/rules.BuildEnvironmentCheck.tsv"/>
   126         </antcall>
   127             <arg value="${build.log.dir}/BuildEnvironmentCheck.log"/>
       
   128         </exec>
       
   129         <fail>
   127         <fail>
   130             <condition>
   128             <condition>
   131                 <not>
   129                 <not>
   132                     <or>
   130                     <or>
   133                         <equals arg1="${sf.checkenv.exit}" arg2="0"/>
   131                         <equals arg1="${sf.checkenv.exit}" arg2="0"/>
   136                 </not>
   134                 </not>
   137             </condition>
   135             </condition>
   138 Build Environment Check failed (${sf.checkenv.exit}). To stop this failure aborting the build set property sf.suppress.buildenv.check to any value.
   136 Build Environment Check failed (${sf.checkenv.exit}). To stop this failure aborting the build set property sf.suppress.buildenv.check to any value.
   139         </fail>
   137         </fail>
   140     </target>
   138     </target>
   141     
   139 
   142     <target name="sf-summary" depends="">
   140     <target name="sf-summary" depends="">
   143         <echo>[SF-SUMMARY]</echo>
   141         <echo>[SF-SUMMARY]</echo>
   144         <echo message="Generating build summary"/>
   142         <echo message="Generating build summary"/>
   145         <exec executable="perl" dir="${sf.common.config.dir}/tools/summary" failonerror="true">
   143         <exec executable="perl" dir="${sf.common.config.dir}/tools/summary" failonerror="true">
   146           <arg value="brag_script.pl"/>
   144           <arg value="brag_script.pl"/>
   458             <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
   456             <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
   459             <arg value="${sf.common.config.dir}/templates/zip.cfg.xml.ftl.template"/>
   457             <arg value="${sf.common.config.dir}/templates/zip.cfg.xml.ftl.template"/>
   460             <arg value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   458             <arg value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   461             <arg value="${build.log.dir}/rnd_excludefile.txt"/>
   459             <arg value="${build.log.dir}/rnd_excludefile.txt"/>
   462         </exec>
   460         </exec>
   463         <mkdir dir="${build.log.dir}/summary" />
   461         <antcall target="sf-log-to-brag">
   464         <exec executable="perl" failonerror="false" output="${build.log.dir}/summary/PreprocessPackageConfig_BRAG.xml" logError="true">
   462             <param name="sf.brag.phase" value="Prebuild"/>
   465             <arg value="${sf.common.config.dir}/tools/brag/logToBRAG.pl"/>
   463             <param name="sf.brag.step" value="Preprocess package config"/>
   466             <arg value="--phase=Prebuild"/>
   464             <param name="sf.brag.log" value="${build.log.dir}/zipconfig.log"/>
   467             <arg value="--step=Preprocess package config"/>
   465             <param name="sf.brag.id" value="PreprocessPackageConfig"/>
   468             <arg value="--rules=${sf.common.config.dir}/tools/brag/rules.PreprocessPackageConfig.tsv"/>
   466         </antcall>
   469             <arg value="${build.log.dir}/zipconfig.log"/>
       
   470         </exec>
       
   471     </target>
   467     </target>
   472     
   468     
   473     <target name="sf-zip-content" depends="preprocess-zip-config">
   469     <target name="sf-zip-content" depends="preprocess-zip-config">
   474         <property name="zip.${zip.target.name}.log.file" location="${build.log.dir}/${build.id}_${zip.target.name}_zip.log" />
   470         <property name="zip.${zip.target.name}.log.file" location="${build.log.dir}/${build.id}_${zip.target.name}_zip.log" />
   475         <property name="zips.${zip.target.name}.spec.name" value="${zip.target.name}" />
   471         <property name="zips.${zip.target.name}.spec.name" value="${zip.target.name}" />
   525   <target name="sf-compile-options">  
   521   <target name="sf-compile-options">  
   526     <hlm:sbsMakeOptions engine="gmake" id="sbs.fullbuild.options"/>
   522     <hlm:sbsMakeOptions engine="gmake" id="sbs.fullbuild.options"/>
   527     <hlm:sbsMakeOptions engine="gmake" id="sbs.toolsbuild.options"/>
   523     <hlm:sbsMakeOptions engine="gmake" id="sbs.toolsbuild.options"/>
   528   </target>
   524   </target>
   529     
   525     
       
   526     <!-- Turn a log file into a BRAG XML file - parameters to be passed are sf.brag.* -->
       
   527     <target name="sf-log-to-brag">
       
   528         <mkdir dir="${build.log.dir}/summary"/>
       
   529         <echo message="Generating ${sf.brag.id}_BRAG.xml from ${sf.brag.log}"/>
       
   530         <exec executable="perl" failonerror="false" output="${build.log.dir}/summary/${sf.brag.id}_BRAG.xml" logError="true">
       
   531             <arg value="${sf.common.config.dir}/tools/brag/logToBRAG.pl"/>
       
   532 	    <arg value="--phase=${sf.brag.phase}"/>
       
   533             <arg value="--step=${sf.brag.step}"/>
       
   534             <arg value="--rules=${sf.common.config.dir}/tools/brag/rules.${sf.brag.id}.tsv"/>
       
   535             <arg value="${sf.brag.log}"/>
       
   536         </exec>
       
   537     </target>
       
   538 
   530 </project>
   539 </project>
   531 
   540