common/build.xml
changeset 198 4b1e939c052c
parent 197 e7c76e615b76
child 206 62976b2583f7
equal deleted inserted replaced
197:e7c76e615b76 198:4b1e939c052c
    26     <property name="diamonds.path" value="${sf.spec.publish.diamonds.path}"/>
    26     <property name="diamonds.path" value="${sf.spec.publish.diamonds.path}"/>
    27     <property name="build.system" value="${sf.spec.build.system}"/>
    27     <property name="build.system" value="${sf.spec.build.system}"/>
    28     <property name="base_release.path" value="${sf.spec.baseline.location}"/>
    28     <property name="base_release.path" value="${sf.spec.baseline.location}"/>
    29     <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
    29     <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
    30     
    30     
       
    31     <!-- SF-specific Helium properties not meant to be exposed in the project spec -->
       
    32     <property name="diamonds.listener.configuration.file" location="${sf.common.config.dir}/diamonds/config.xml.ftl"/>
       
    33     
    31     <!-- import all core HELIUM targets -->
    34     <!-- import all core HELIUM targets -->
    32     <import file="${helium.dir}/helium.ant.xml" />
    35     <import file="${helium.dir}/helium.ant.xml" />
    33     
    36     
    34     <!-- import common references -->
    37     <!-- import common references -->
    35     <import file="${sf.common.config.dir}/common_refs.ant.xml" />
    38     <import file="${sf.common.config.dir}/common_refs.ant.xml" />
   417         <ant antfile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml"/>
   420         <ant antfile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml"/>
   418     </target>
   421     </target>
   419     
   422     
   420     <target name="sf-diamondize-bom">
   423     <target name="sf-diamondize-bom">
   421         <fmpp sourceFile="${sf.common.config.dir}/templates/build-info.xml.ftl"
   424         <fmpp sourceFile="${sf.common.config.dir}/templates/build-info.xml.ftl"
   422               outputFile="${build.drive}/output/logs/BOM/build-info.xml">
   425               outputFile="${build.drive}/output/logs/sf-diamondize-bom.xml">
   423             <data expandProperties="yes">
   426             <data expandProperties="yes">
   424                 ant: antProperties()
   427                 ant: antProperties()
   425                 config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]})
   428                 config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]})
   426                 project: csv(${build.drive}/output/logs/BOM/project.csv,{separator:',',headers:[loc,dst,rev]})
   429                 project: csv(${build.drive}/output/logs/BOM/project.csv,{separator:',',headers:[loc,dst,rev]})
   427                 baseline: slicedText(${build.drive}/output/logs/BOM/baseline.txt,{trim})
   430                 baseline: slicedText(${build.drive}/output/logs/BOM/baseline.txt,{trim})
   618           <exclude name="*build_check_compile.log"/>
   621           <exclude name="*build_check_compile.log"/>
   619         </fileset>
   622         </fileset>
   620       </path>
   623       </path>
   621       <sequential>
   624       <sequential>
   622         <propertyregex override="yes" property="yarpfile"  input="@{logfile}" regexp=".*[\\|\/](.*)_compile\.log" replace="\1_yarp.csv"/>
   625         <propertyregex override="yes" property="yarpfile"  input="@{logfile}" regexp=".*[\\|\/](.*)_compile\.log" replace="\1_yarp.csv"/>
       
   626         <propertyregex override="yes" property="yarpfile_short"  input="${yarpfile}" regexp="[^_]*_[^_]*_[^_]*_(.+)_[^_]*_yarp\.csv" replace="YARP_\1"/>
   623         <echo message="Yarping @{logfile}..."/>
   627         <echo message="Yarping @{logfile}..."/>
   624         <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_yarp.log" append="true">
   628         <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_yarp.log" append="true">
   625           <arg value="${sf.common.config.dir}/tools/analysis/yarp.pl"/>
   629           <arg value="${sf.common.config.dir}/tools/analysis/yarp.pl"/>
   626           <arg value="@{logfile}"/>
   630           <arg value="@{logfile}"/>
   627           <arg value="${build.log.dir}/analysis/${yarpfile}"/>
   631           <arg value="${build.log.dir}/analysis/${yarpfile}"/>
   628         </exec>
   632         </exec>
       
   633         <exec executable="cmd" output="${build.drive}/output/logs/analysis/tmp_yarp_files.csv" append="true">
       
   634           <arg value="/c"/>
       
   635           <arg value="echo"/>
       
   636           <arg value="${yarpfile_short},${sf.spec.publish.networkdrive}\${sf.spec.job.name}\builds\${sf.spec.job.codeline}\${build.id}\logs\analysis\${yarpfile}"/>
       
   637         </exec>
   629       </sequential>
   638       </sequential>
   630     </for>
   639     </for>
       
   640     
       
   641     <!-- fake build results file -->
       
   642     <!-- copy file="D:\zoo\fake_results_file\sf-run-analysis.xml" todir="${build.drive}/output/logs" failonerror="false" verbose="true"/ -->
       
   643     
       
   644     <exec executable="perl" dir="${build.drive}" failonerror="false" outputproperty="sf.job.totalyarperrors">
       
   645       <arg value="${sf.common.config.dir}/tools/analysis/parse_yarp_files.pl"/>
       
   646       <arg value="${build.drive}/output/logs/analysis/tmp_yarp_files.csv"/>
       
   647     </exec>
       
   648     <echo message="Total yarp errors: ${sf.job.totalyarperrors}"/>
       
   649     
       
   650     <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-run-analysis.xml.ftl" outputFile="${build.drive}/output/logs/sf-run-analysis.xml">
       
   651       <data expandProperties="yes">
       
   652         ant: antProperties()
       
   653         files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path]})
       
   654       </data>
       
   655     </fmpp>
   631 
   656 
   632     </target>
   657     </target>
   633   
   658   
   634 </project>
   659 </project>
   635 
   660