281 <if> |
281 <if> |
282 <istrue value="${sf.spec.publish.enable}"/> |
282 <istrue value="${sf.spec.publish.enable}"/> |
283 <then> |
283 <then> |
284 <runtarget target="sf-run-analysis-diamonds"/> |
284 <runtarget target="sf-run-analysis-diamonds"/> |
285 </then> |
285 </then> |
286 </if> |
286 </if> |
|
287 <runtarget target="sf-brag-to-diamonds"/> |
287 </target> |
288 </target> |
288 |
289 |
289 <target name="sf-run-analysis-ant"> |
290 <target name="sf-run-analysis-ant"> |
290 <echo message="Running source analysis of ANT output"/> |
291 <echo message="Running source analysis of ANT output"/> |
291 <exec executable="perl" dir="${build.log.dir}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_scan_ant.log"> |
292 <exec executable="perl" dir="${build.log.dir}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_scan_ant.log"> |
294 </exec> |
295 </exec> |
295 </target> |
296 </target> |
296 |
297 |
297 <target name="sf-run-analysis-raptor"> |
298 <target name="sf-run-analysis-raptor"> |
298 <echo message="Preprocessing *_compile.log files"/> |
299 <echo message="Preprocessing *_compile.log files"/> |
|
300 <delete file="${build.log.dir}/analysis/${build.id}_preprocess.log"/> |
299 <for param="logfile"> |
301 <for param="logfile"> |
300 <path> |
302 <path> |
301 <fileset dir="${build.log.dir}"> |
303 <fileset dir="${build.log.dir}"> |
302 <include name="*_compile.log"/> |
304 <include name="*_compile.log"/> |
303 <exclude name="*build_check_compile.log"/> |
305 <exclude name="*build_check_compile.log"/> |
304 </fileset> |
306 </fileset> |
305 </path> |
307 </path> |
306 <sequential> |
308 <sequential> |
307 <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\/](.*)_compile\.log" replace="\1_compile_preprocessed.log"/> |
309 <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\/](.*)_compile\.log" replace="\1_compile_preprocessed.log"/> |
308 <echo message="Preprocessing @{logfile}..."/> |
310 <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"> |
311 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${preprocessedlogfile}" errorProperty="@{logfile}" > |
310 <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/> |
312 <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/> |
311 </exec> |
313 </exec> |
|
314 <echo file="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true" message="${@{logfile}}${line.separator}"/> |
312 </sequential> |
315 </sequential> |
313 </for> |
316 </for> |
314 |
317 |
315 <echo message="Extracting whatlog information from *whatlog*_compile_preprocessed.log files"/> |
318 <echo message="Extracting whatlog information from *whatlog*_compile_preprocessed.log files"/> |
316 <for param="whatlogfile"> |
319 <for param="whatlogfile"> |
482 ant: antProperties() |
485 ant: antProperties() |
483 raptor_summary: csv(${build.log.dir}/raptorbits/summary.csv,{separator:',',headers:[category,subcategory,severity,config,component,phase,recipe,file,line]}) |
486 raptor_summary: csv(${build.log.dir}/raptorbits/summary.csv,{separator:',',headers:[category,subcategory,severity,config,component,phase,recipe,file,line]}) |
484 files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]}) |
487 files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]}) |
485 </data> |
488 </data> |
486 </fmpp> |
489 </fmpp> |
|
490 <!-- Send the data to the server --> |
|
491 <exec executable="python"> |
|
492 <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/> |
|
493 <arg value="-s"/> |
|
494 <arg value="${diamonds.host}"/> |
|
495 <arg value="-u"/> |
|
496 <arg value="${diamonds.build.id}"/> |
|
497 <arg value="-f"/> |
|
498 <arg value="${build.log.dir}/sf-run-analysis.xml"/> |
|
499 </exec> |
487 </target> |
500 </target> |
|
501 |
|
502 <target name="sf-brag-to-diamonds"> |
|
503 <!-- Merge all our bits of XML together --> |
|
504 <exec executable="perl" output="${build.log.dir}/summary/_BRAG.xml"> |
|
505 <arg value="${sf.common.config.dir}/tools/mergeXML.pl"/> |
|
506 <arg value="--xsl=brag.xsl"/> |
|
507 <arg value="--merge=buildStatus,phase(name),step(name),failures(level)"/> |
|
508 <arg value="${build.log.dir}/summary/*?_BRAG.xml"/> |
|
509 </exec> |
|
510 <!-- Run XSL transform to create file to send to diamonds --> |
|
511 <java jar="${sf.common.config.dir}/sysdefdowngrade/xalan-j_2_7_1/xalan.jar" fork="true"> |
|
512 <arg value="-IN"/> |
|
513 <arg value="${build.log.dir}/summary/_BRAG.xml"/> |
|
514 <arg value="-XSL"/> |
|
515 <arg value="${sf.common.config.dir}/tools/brag/bragForDiamonds.xsl"/> |
|
516 <arg value="-OUT"/> |
|
517 <arg value="${temp.build.dir}/bragForDiamonds.xml"/> |
|
518 </java> |
|
519 <if> |
|
520 <istrue value="${sf.spec.publish.enable}"/> |
|
521 <then> |
|
522 <!-- Try to obtain the diamonds ID for this build --> |
|
523 <if> |
|
524 <not><isset property="diamonds.build.id"/></not> |
|
525 <then> |
|
526 <property file="${build.log.dir}/diamonds_build_id.properties"/> <!-- This will fail silently --> |
|
527 </then> |
|
528 </if> |
|
529 <if> |
|
530 <isset property="diamonds.build.id"/> |
|
531 <then> |
|
532 <!-- Send the data to the server --> |
|
533 <exec executable="python"> |
|
534 <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/> |
|
535 <arg value="-s"/> |
|
536 <arg value="${diamonds.host}"/> |
|
537 <arg value="-u"/> |
|
538 <arg value="${diamonds.build.id}"/> |
|
539 <arg value="-f"/> |
|
540 <arg value="${temp.build.dir}/bragForDiamonds.xml"/> |
|
541 </exec> |
|
542 </then> |
|
543 <else> |
|
544 <echo message="diamonds.build.id is not known - unable to push any build specific information to diamonds server"/> |
|
545 </else> |
|
546 </if> |
|
547 </then> |
|
548 </if> |
|
549 </target> |
488 |
550 |
489 <target name="sf-check-utilities-dir"> |
551 <target name="sf-check-utilities-dir"> |
490 <available property="sf-utilities-available" file="${build.drive}/utilities" type="dir"/> |
552 <available property="sf-utilities-available" file="${build.drive}/utilities" type="dir"/> |
491 </target> |
553 </target> |
492 |
554 |
636 <param name="build.id" value ="sbs_check"/> |
698 <param name="build.id" value ="sbs_check"/> |
637 <reference refid="sbs.check.main.var" torefid="sbs.var" /> |
699 <reference refid="sbs.check.main.var" torefid="sbs.var" /> |
638 <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" /> |
700 <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" /> |
639 <reference refid="sf.spec.s60.system.definition.files" torefid="system.definition.files" /> |
701 <reference refid="sf.spec.s60.system.definition.files" torefid="system.definition.files" /> |
640 </antcall> |
702 </antcall> |
|
703 |
|
704 </target> |
|
705 |
|
706 <target name="sf-create-public-PDK" depends="sf-prebuild,sf-run-sfl-licence-munging" > |
|
707 <if> |
|
708 <istrue value="${sf.spec.md5.enable}"/> |
|
709 <then> |
|
710 <echo message="INFO Creating MD5s"/> |
|
711 <runtarget target="sf-run-evalid"/> |
|
712 </then> |
|
713 </if> |
|
714 |
|
715 <!-- Package up the binaries we built --> |
|
716 <if> |
|
717 <istrue value="${sf.spec.package.bin.enable}"/> |
|
718 <then> |
|
719 <echo message="INFO Packaging Binaries"/> |
|
720 <runtarget target="sf-package-binary"/> |
|
721 <runtarget target="sf-package-tools"/> |
|
722 |
|
723 <echo message="INFO Validate Zip files"/> |
|
724 <runtarget target="sf-package-validate"/> |
|
725 </then> |
|
726 </if> |
|
727 <runtarget target="sf-zip-logs"/> |
|
728 <if> |
|
729 <istrue value="${sf.spec.publish.enable}" /> |
|
730 <then> |
|
731 <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/> |
|
732 <runtarget target="sf-publish"/> |
|
733 </then> |
|
734 </if> |
|
735 </target> |
|
736 |
|
737 |
|
738 <target name="sf-run-sfl-licence-munging" depends="sf-check-utilities-dir" if="sf-utilities-available"> |
|
739 <echo message="Running SFL Licence Munging writing log to ${build.log.dir}"/> |
|
740 <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/postbuild_sfl-licence_munging_results.log"> |
|
741 <arg value="${build.drive}/utilities/williamr/convert_to_eula.pl"/> |
|
742 </exec> |
641 </target> |
743 </target> |
642 |
744 |
643 </project> |
745 </project> |