343 <istrue value="${sf.spec.publish.enable}"/> |
344 <istrue value="${sf.spec.publish.enable}"/> |
344 <then> |
345 <then> |
345 <runtarget target="sf-diamondize-bom"/> |
346 <runtarget target="sf-diamondize-bom"/> |
346 </then> |
347 </then> |
347 </if> |
348 </if> |
|
349 </target> |
|
350 |
|
351 <target name="sf-tag-build"> |
|
352 <echo>[SF-TAG-BUILD]</echo> |
|
353 <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-tag-build.xml.ftl" outputFile="${build.drive}/output/logs/sf-tag-build.xml"> |
|
354 <data expandProperties="yes"> |
|
355 ant: antProperties() |
|
356 </data> |
|
357 </fmpp> |
348 </target> |
358 </target> |
349 |
359 |
350 <target name="sf-postbuild"> |
360 <target name="sf-postbuild"> |
351 <echo>[SF-POSTBUILD]</echo> |
361 <echo>[SF-POSTBUILD]</echo> |
352 <parallel> |
362 <parallel> |
537 <else> |
547 <else> |
538 <echo message="Skipping truclean step."/> |
548 <echo message="Skipping truclean step."/> |
539 </else> |
549 </else> |
540 </if> |
550 </if> |
541 </target> |
551 </target> |
542 |
552 |
543 <target name="sf-compile"> |
553 <target name="sf-model-from-project"> |
544 <!-- TODO: add here assigments to raptor-related ant references --> |
554 <if> |
545 |
555 <isset property="sf.spec.systemdefinition.source"/> |
546 <!-- hlm:argSet id="sbs.tools.var"> |
556 <then> |
547 <hlm:arg name="config" value="${sf.spec.sbs.config}" /> |
557 <echo message="Using ${sf.spec.systemdefinition.source} as model file"/> |
548 <hlm:arg name="singlejob" value="..." /> |
558 <echo message="Copying to ${build.drive}/definition.xml"/> |
549 <hlm:arg name="enable-filter" value="..." /> |
559 <copy file="${sf.project.location}/${sf.spec.systemdefinition.source}" tofile="${build.drive}${sf.spec.systemdefinition.location}"/> |
550 </hlm:argSet --> |
560 </then> |
551 |
561 <else> |
552 <!-- target name="compile-main-prebuild" --> |
562 <!-- Collate the system definition from the packages listed in sources.csv --> |
553 <antcall target="compile-main" inheritAll="false"> |
563 <echo message="Building system model from ${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/> |
554 <param name="build.system" value="${sf.spec.build.system}"/> |
564 <exec executable="perl" dir="${build.drive}/" output="${build.drive}${sf.spec.systemdefinition.location}" logError="true" failonerror="true"> |
555 <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" /> |
565 <arg value="${sf.common.config.dir}/tools/csvToSysDef.pl"/> |
556 <!--<reference refid="sf.system.definition.files" torefid="system.definition.files" />--> |
566 <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/> |
557 </antcall> |
567 <arg value="${sf.config.dir}/../build/config/3k"/> |
558 </target> |
568 </exec> |
|
569 </else> |
|
570 </if> |
|
571 </target> |
559 |
572 |
560 <target name="sf-get-source" depends="sf-generate-source-spec"> |
573 <target name="sf-get-source" depends="sf-generate-source-spec"> |
561 <ant antfile="${sf.common.config.dir}/generated/source-spec.ant.xml" /> |
574 <ant antfile="${sf.common.config.dir}/generated/source-spec.ant.xml" /> |
562 </target> |
575 </target> |
563 |
576 |
709 <arg value="${build.drive}/output/zips/bin*.zip"/> |
722 <arg value="${build.drive}/output/zips/bin*.zip"/> |
710 </exec> |
723 </exec> |
711 </target> |
724 </target> |
712 |
725 |
713 <target name ="sf-make-junction"> |
726 <target name ="sf-make-junction"> |
714 |
|
715 <mkdir dir="${sf.spec.test.epocroot}"/> |
727 <mkdir dir="${sf.spec.test.epocroot}"/> |
716 |
728 |
717 <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log"> |
729 <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log"> |
718 <arg value="make_junction.pl"/> |
730 <arg value="make_junction.pl"/> |
719 <arg value="--link=${sf.spec.test.epocroot}/epoc32"/> |
731 <arg value="--link=${sf.spec.test.epocroot}/epoc32"/> |
867 <include name="*_compile.log"/> |
879 <include name="*_compile.log"/> |
868 <exclude name="*build_check_compile.log"/> |
880 <exclude name="*build_check_compile.log"/> |
869 </fileset> |
881 </fileset> |
870 </path> |
882 </path> |
871 <sequential> |
883 <sequential> |
872 <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\|\/].*\.\d+_+(.*)_compile\.log" replace="\1_compile_preprocessed.log"/> |
884 <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\|\/].*\.T?\d+_+(.*)_compile\.log" replace="\1_compile_preprocessed.log"/> |
873 <echo message="Preprocessing @{logfile}..."/> |
885 <echo message="Preprocessing @{logfile}..."/> |
874 <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"> |
886 <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"> |
875 <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/> |
887 <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/> |
876 </exec> |
888 </exec> |
877 </sequential> |
889 </sequential> |