common/build.postbuild.xml
changeset 553 f0c8c9e2cbbd
parent 547 19f9d5fc6406
child 573 02a549e2960d
equal deleted inserted replaced
552:8018a074606b 553:f0c8c9e2cbbd
   302             <include name="*_compile.log"/>
   302             <include name="*_compile.log"/>
   303             <exclude name="*build_check_compile.log"/>
   303             <exclude name="*build_check_compile.log"/>
   304           </fileset>
   304           </fileset>
   305         </path>
   305         </path>
   306         <sequential>
   306         <sequential>
   307 		  <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\/](.*)_compile\.log" replace="\1_compile_preprocessed.log"/>
   307           <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\/](.*)_compile\.log" replace="\1_compile_preprocessed.log"/>
   308 	      <echo message="Preprocessing @{logfile}..."/>
   308           <echo message="Preprocessing @{logfile}..."/>
   309           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${preprocessedlogfile}" error="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true">
   309           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${preprocessedlogfile}" error="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true">
   310             <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/>
   310             <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/>
   311           </exec>
   311           </exec>
   312         </sequential>
   312         </sequential>
   313       </for>
   313       </for>
   319             <include name="*whatlog*_compile_preprocessed.log"/>
   319             <include name="*whatlog*_compile_preprocessed.log"/>
   320           </fileset>
   320           </fileset>
   321         </path>
   321         </path>
   322         <sequential>
   322         <sequential>
   323           <echo message="Extracting whatlog info from @{whatlogfile}..."/>
   323           <echo message="Extracting whatlog info from @{whatlogfile}..."/>
   324           <echo message="Exec: [${sf.common.config.dir}/tools/raptor] perl ${sf.common.config.dir}/tools/raptor/parse.pl --releaseable --log=@{whatlogfile} --basedir=${build.log.dir} --append"/>
       
   325           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true">
   324           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true">
   326             <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
   325             <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
   327             <arg value="--releaseable"/>
   326             <arg value="--releaseable"/>
   328             <arg value="--log=@{whatlogfile}"/>
   327             <arg value="--log=@{whatlogfile}"/>
   329             <arg value="--basedir=${build.log.dir}"/>
   328             <arg value="--basedir=${build.log.dir}"/>
   340           </fileset>
   339           </fileset>
   341         </path>
   340         </path>
   342         <sequential>
   341         <sequential>
   343           <echo message="Extracting error info from @{raptorlogfile}..."/>
   342           <echo message="Extracting error info from @{raptorlogfile}..."/>
   344           <propertyregex override="yes" property="raptorconfig" input="@{raptorlogfile}" regexp=".*[\\/].*__(.*)\.whatlog_(single|multiple)_thread.*" replace="\1" casesensitive="false" defaultValue="noconfig"/>
   343           <propertyregex override="yes" property="raptorconfig" input="@{raptorlogfile}" regexp=".*[\\/].*__(.*)\.whatlog_(single|multiple)_thread.*" replace="\1" casesensitive="false" defaultValue="noconfig"/>
   345           <echo message="Exec: [${sf.common.config.dir}/tools/raptor] perl ${sf.common.config.dir}/tools/raptor/parse.pl --error --warning --unreciped --recipe --config=${raptorconfig} --log=@{raptorlogfile} --basedir=${build.log.dir}/raptorbits --append"/>
       
   346           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
   344           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
   347             <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
   345             <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
   348             <arg value="--error"/>
   346             <arg value="--error"/>
   349             <arg value="--warning"/>
   347             <arg value="--warning"/>
   350             <arg value="--unreciped"/>
   348             <arg value="--unreciped"/>
   351             <arg value="--recipe"/>
   349             <arg value="--recipe"/>
   352             <arg value="--config=${raptorconfig}"/>
   350             <arg value="--config=${raptorconfig}"/>
   353             <arg value="--log=@{raptorlogfile}"/>
   351             <arg value="--log=@{raptorlogfile}"/>
   354             <arg value="--basedir=${build.log.dir}/raptorbits"/>
   352             <arg value="--basedir=${build.log.dir}/raptorbits"/>
   355             <arg value="--append"/>
       
   356           </exec>
   353           </exec>
   357         </sequential>
   354         </sequential>
   358       </for>
   355       </for>
   359       
   356       
   360       <echo message="Exec: [${sf.common.config.dir}/tools/raptor] perl ${sf.common.config.dir}/tools/raptor/summarize.pl --raptorbitsdir=${build.log.dir}/raptorbits --outputdir=${build.log.dir}"/>
   357       <echo message="Summarizing Raptor data"/>
   361       <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
   358       <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
   362         <arg value="${sf.common.config.dir}/tools/raptor/summarize.pl"/>
   359         <arg value="${sf.common.config.dir}/tools/raptor/summarize.pl"/>
   363         <arg value="--raptorbitsdir=${build.log.dir}/raptorbits"/>
   360         <arg value="--raptorbitsdir=${build.log.dir}/raptorbits"/>
   364         <arg value="--outputdir=${build.log.dir}"/>
   361         <arg value="--outputdir=${build.log.dir}"/>
   365       </exec>
   362       </exec>
   375           <exec executable="perl" input="@{tsv}" output="@{tsv}">
   372           <exec executable="perl" input="@{tsv}" output="@{tsv}">
   376             <arg value="${sf.common.config.dir}/tools/sortUnique.pl"/>
   373             <arg value="${sf.common.config.dir}/tools/sortUnique.pl"/>
   377           </exec>
   374           </exec>
   378         </sequential>
   375         </sequential>
   379       </for>
   376       </for>
       
   377 
       
   378       <!-- Cook the raptor analysis further to produce something in the right format for the BRAG system -->
       
   379       <exec executable="perl" output="${build.log.dir}/summary/Raptor_BRAG.xml" logError="yes">
       
   380         <arg value="${sf.common.config.dir}/tools/brag/raptorToBRAG.pl"/>
       
   381         <arg value="--raptorsummary"/>
       
   382         <arg value="${build.log.dir}/raptorbits/summary.csv"/>
       
   383       </exec>
       
   384       <!-- And copy the XSL so the output can be transformed by a browser -->
       
   385       <copy file="${sf.common.config.dir}/tools/brag/brag.xsl" toDir="${build.log.dir}/summary/"/>
   380     </target>
   386     </target>
   381 
   387 
   382     <target name="sf-run-analysis-yarp">          
   388     <target name="sf-run-analysis-yarp">          
   383       <echo message="Running yarp over *_compile.log files"/>
   389       <echo message="Running yarp over *_compile.log files"/>
   384       <for param="logfile">
   390       <for param="logfile">