common/build.xml
changeset 251 f3105028766d
parent 243 71d24b4fa162
child 252 f7fc039dd3a3
equal deleted inserted replaced
245:2719a5d09e27 251:f3105028766d
   755         <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log">
   755         <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log">
   756             <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/>
   756             <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/>
   757             <arg value="${build.log.dir}/analysis/${build.id}_what_results.csv"/>
   757             <arg value="${build.log.dir}/analysis/${build.id}_what_results.csv"/>
   758         </exec>
   758         </exec>
   759         
   759         
       
   760         
       
   761       <echo message="Preprocessing *_compile.log files"/>
       
   762       <for param="logfile">
       
   763         <path>
       
   764           <fileset dir="${build.log.dir}">
       
   765             <include name="*_compile.log"/>
       
   766             <exclude name="*build_check_compile.log"/>
       
   767           </fileset>
       
   768         </path>
       
   769         <sequential>
       
   770           <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\|\/].*\.\d+_+(.*)_compile\.log" replace="\1_compile_preprocessed.log"/>
       
   771 	        <echo message="Preprocessing @{logfile}..."/>
       
   772           <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">
       
   773             <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/>
       
   774           </exec>
       
   775       </for>
       
   776       
       
   777       <echo message="Extracting whatlog information from *whatlog*_compile_preprocessed.log files"/>
       
   778       <for param="whatlogfile">
       
   779         <path>
       
   780           <fileset dir="${build.log.dir}">
       
   781             <include name="*whatlog*_compile_preprocessed.log"/>
       
   782           </fileset>
       
   783         </path>
       
   784         <sequential>
       
   785           <echo message="Extracting whatlog info from @{whatlogfile}..."/>
       
   786           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true">
       
   787             <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
       
   788             <arg value="--releaseable"/>
       
   789             <arg value="--log=${build.log.dir}/analysis/${whatlogfile}"/>
       
   790             <arg value="--basedir=${build.log.dir}"/>
       
   791             <arg value="--append"/>
       
   792           </exec>
       
   793         </sequential>
       
   794       </for>
       
   795       
       
   796       <echo message="Extracting error information from *_compile_preprocessed.log files"/>
       
   797       <for param="raptorlogfile">
       
   798         <path>
       
   799           <fileset dir="${build.log.dir}">
       
   800             <include name="*_compile_preprocessed.log"/>
       
   801           </fileset>
       
   802         </path>
       
   803         <sequential>
       
   804           <echo message="Extracting error info from @{raptorlogfile}..."/>
       
   805           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
       
   806             <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
       
   807             <arg value="--error"/>
       
   808             <arg value="--log=${build.log.dir}/analysis/${raptorlogfile}"/>
       
   809             <arg value="--basedir=${build.log.dir}/raptorbits"/>
       
   810             <arg value="--append"/>
       
   811           </exec>
       
   812         </sequential>
       
   813       </for>
       
   814       
   760       <echo message="Running yarp over *_compile.log files"/>
   815       <echo message="Running yarp over *_compile.log files"/>
   761       <for param="logfile">
   816       <for param="logfile">
   762         <path>
   817         <path>
   763           <fileset dir="${build.log.dir}">
   818           <fileset dir="${build.log.dir}">
   764             <include name="*_compile.log"/>
   819             <include name="*_compile.log"/>
   792         <data expandProperties="yes">
   847         <data expandProperties="yes">
   793           ant: antProperties()
   848           ant: antProperties()
   794           files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]})
   849           files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]})
   795         </data>
   850         </data>
   796       </fmpp>
   851       </fmpp>
   797       
       
   798       <echo message="Extracting whatlog information from *whatlog*_compile.log files"/>
       
   799       <for param="logfile">
       
   800         <path>
       
   801           <fileset dir="${build.log.dir}">
       
   802             <include name="*whatlog*_compile.log"/>
       
   803           </fileset>
       
   804         </path>
       
   805         <sequential>
       
   806           <propertyregex override="yes" property="whatlogfile" input="@{logfile}" regexp=".*[\\|\/].*\.\d+_+(.*)_compile\.log" replace="\1_preprocessed.log"/>
       
   807 	  <echo message="Preprocessing @{logfile}..."/>
       
   808           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${whatlogfile}" error="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true">
       
   809             <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/>
       
   810           </exec>
       
   811           <echo message="Extracting whatlog info from ${whatlogfile}..."/>
       
   812           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true">
       
   813             <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
       
   814             <arg value="--releaseable"/>
       
   815             <arg value="--log=${build.log.dir}/analysis/${whatlogfile}"/>
       
   816             <arg value="--basedir=${build.log.dir}/releaseables"/>
       
   817             <arg value="--append"/>
       
   818           </exec>
       
   819         </sequential>
       
   820       </for>
       
   821 
   852 
   822     </target>
   853     </target>
   823   
   854   
   824     <target name="sf-run-evalid">
   855     <target name="sf-run-evalid">
   825         <delete dir="${build.drive}/output/md5"/>
   856         <delete dir="${build.drive}/output/md5"/>