361 <arg value="*ant*"/> |
361 <arg value="*ant*"/> |
362 </exec> |
362 </exec> |
363 </target> |
363 </target> |
364 |
364 |
365 <target name="sf-run-analysis-raptor"> |
365 <target name="sf-run-analysis-raptor"> |
366 <echo message="Preprocessing *_compile.log files"/> |
|
367 <delete file="${build.log.dir}/analysis/${build.id}_preprocess.log"/> |
|
368 <for param="logfile"> |
|
369 <path> |
|
370 <fileset dir="${build.log.dir}"> |
|
371 <include name="*_compile.log"/> |
|
372 <exclude name="*build_check_compile.log"/> |
|
373 </fileset> |
|
374 </path> |
|
375 <sequential> |
|
376 <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\/](.*)_compile\.log" replace="\1_compile_preprocessed.log"/> |
|
377 <echo message="Preprocessing @{logfile}..."/> |
|
378 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${preprocessedlogfile}" errorProperty="@{logfile}" > |
|
379 <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/> |
|
380 </exec> |
|
381 <echo file="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true" message="${@{logfile}}${line.separator}"/> |
|
382 </sequential> |
|
383 </for> |
|
384 |
|
385 <!-- Cook the processed raptor logs to produce something in the right format for the BRAG system --> |
366 <!-- Cook the processed raptor logs to produce something in the right format for the BRAG system --> |
386 <mkdir dir="${build.log.dir}/summary/"/> |
367 <mkdir dir="${build.log.dir}/summary/"/> |
387 <!-- exec executable="perl" output="${build.log.dir}/summary/sbs_BRAG.xml" logError="yes" failonerror="false"> |
368 <!-- exec executable="perl" output="${build.log.dir}/summary/sbs_BRAG.xml" logError="yes" failonerror="false"> |
388 <arg value="${sf.common.config.dir}/tools/brag/sbsToBRAG.pl"/> |
369 <arg value="${sf.common.config.dir}/tools/brag/sbsToBRAG.pl"/> |
389 <arg value="${build.log.dir}/analysis/*_compile_preprocessed.log"/> |
370 <arg value="${build.log.dir}/analysis/*_compile_preprocessed.log"/> |
390 </exec --> |
371 </exec --> |
391 |
372 |
392 <echo message="Extracting whatlog information from *whatlog*_compile_preprocessed.log files"/> |
373 <echo message="Extracting whatlog information from *whatlog*_compile.log files"/> |
393 <apply executable="perl" dir="${build.drive}/utilities/uh_parser" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" parallel="true"> |
374 <apply executable="perl" dir="${build.drive}/utilities/uh_parser" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" parallel="true"> |
394 <arg value="releaseables.pl"/> |
375 <arg value="releaseables.pl"/> |
395 <arg value="--basedir=${build.log.dir}"/> |
376 <arg value="--basedir=${build.log.dir}"/> |
396 <fileset dir="${build.log.dir}/analysis"> |
377 <fileset dir="${build.log.dir}"> |
397 <include name="*whatlog*_compile_preprocessed.log"/> |
378 <include name="*whatlog*_compile.log"/> |
398 </fileset> |
379 </fileset> |
399 </apply> |
380 </apply> |
400 |
381 |
401 <echo message="Extracting error information from *_compile_preprocessed.log files"/> |
382 <echo message="Running UH parser on *_compile.log files"/> |
402 <apply executable="perl" dir="${build.drive}/utilities/uh_parser" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" parallel="true"> |
383 <apply executable="perl" dir="${build.drive}/utilities/uh_parser" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" parallel="true"> |
403 <arg value="uh.pl"/> |
384 <arg value="uh.pl"/> |
404 <arg value="--basedir=${build.log.dir}"/> |
385 <arg value="--basedir=${build.log.dir}"/> |
405 <fileset dir="${build.log.dir}/analysis"> |
386 <fileset dir="${build.log.dir}"> |
406 <include name="*_compile_preprocessed.log"/> |
387 <include name="*_compile.log"/> |
|
388 <exclude name="*build_check_compile.log"/> |
407 </fileset> |
389 </fileset> |
408 </apply> |
390 </apply> |
409 |
391 |
410 <!-- Now iterate through the generated TSVs to sort them and remove duplicates --> |
392 <!-- Now iterate through the generated TSVs to sort them and remove duplicates --> |
411 <for param="tsv"> |
393 <for param="tsv"> |