400 <arg value="*sbs_error*"/> |
400 <arg value="*sbs_error*"/> |
401 </exec> |
401 </exec> |
402 </target> |
402 </target> |
403 |
403 |
404 <target name="sf-run-analysis-raptor"> |
404 <target name="sf-run-analysis-raptor"> |
405 <echo message="Preprocessing *_compile.log files"/> |
|
406 <delete file="${build.log.dir}/analysis/${build.id}_preprocess.log"/> |
|
407 <for param="logfile"> |
|
408 <path> |
|
409 <fileset dir="${build.log.dir}"> |
|
410 <include name="*_compile.log"/> |
|
411 <exclude name="*build_check_compile.log"/> |
|
412 </fileset> |
|
413 </path> |
|
414 <sequential> |
|
415 <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\/](.*)_compile\.log" replace="\1_compile_preprocessed.log"/> |
|
416 <echo message="Preprocessing @{logfile}..."/> |
|
417 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${preprocessedlogfile}" errorProperty="@{logfile}" > |
|
418 <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/> |
|
419 </exec> |
|
420 <echo file="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true" message="${@{logfile}}${line.separator}"/> |
|
421 </sequential> |
|
422 </for> |
|
423 |
|
424 <!-- Cook the processed raptor logs to produce something in the right format for the BRAG system --> |
405 <!-- Cook the processed raptor logs to produce something in the right format for the BRAG system --> |
425 <mkdir dir="${build.log.dir}/summary/"/> |
406 <mkdir dir="${build.log.dir}/summary/"/> |
426 <!-- exec executable="perl" output="${build.log.dir}/summary/sbs_BRAG.xml" logError="yes" failonerror="false"> |
407 <!-- exec executable="perl" output="${build.log.dir}/summary/sbs_BRAG.xml" logError="yes" failonerror="false"> |
427 <arg value="${sf.common.config.dir}/tools/brag/sbsToBRAG.pl"/> |
408 <arg value="${sf.common.config.dir}/tools/brag/sbsToBRAG.pl"/> |
428 <arg value="${build.log.dir}/analysis/*_compile_preprocessed.log"/> |
409 <arg value="${build.log.dir}/analysis/*_compile_preprocessed.log"/> |
429 </exec --> |
410 </exec --> |
430 |
411 |
431 <echo message="Extracting whatlog information from *whatlog*_compile_preprocessed.log files"/> |
412 <echo message="Extracting whatlog information from *whatlog*_compile.log files"/> |
432 <apply executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" parallel="true"> |
413 <apply executable="perl" dir="${build.drive}/utilities/uh_parser" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" parallel="true"> |
433 <arg value="releaseables.pl"/> |
414 <arg value="releaseables.pl"/> |
434 <arg value="--basedir=${build.log.dir}"/> |
415 <arg value="--basedir=${build.log.dir}"/> |
435 <fileset dir="${build.log.dir}/analysis"> |
416 <fileset dir="${build.log.dir}"> |
436 <include name="*whatlog*_compile_preprocessed.log"/> |
417 <include name="*whatlog*_compile.log"/> |
437 </fileset> |
418 </fileset> |
438 </apply> |
419 </apply> |
439 |
420 |
440 <echo message="Extracting error information from *_compile_preprocessed.log files"/> |
421 <echo message="Running UH parser on *_compile.log files"/> |
441 <apply executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" parallel="true"> |
422 <apply executable="perl" dir="${build.drive}/utilities/uh_parser" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" parallel="true"> |
442 <arg value="uh.pl"/> |
423 <arg value="uh.pl"/> |
443 <arg value="--basedir=${build.log.dir}"/> |
424 <arg value="--basedir=${build.log.dir}"/> |
444 <fileset dir="${build.log.dir}/analysis"> |
425 <fileset dir="${build.log.dir}"> |
445 <include name="*_compile_preprocessed.log"/> |
426 <include name="*_compile.log"/> |
|
427 <exclude name="*build_check_compile.log"/> |
446 </fileset> |
428 </fileset> |
447 </apply> |
429 </apply> |
448 |
430 |
449 <!-- Now iterate through the generated TSVs to sort them and remove duplicates --> |
431 <!-- Now iterate through the generated TSVs to sort them and remove duplicates --> |
450 <for param="tsv"> |
432 <for param="tsv"> |