common/build.xml
changeset 396 178a6d6661b3
parent 395 1f4867b1e0c1
child 397 3a9cb357ea5d
equal deleted inserted replaced
395:1f4867b1e0c1 396:178a6d6661b3
   194         </copy>
   194         </copy>
   195         <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" todir="${build.log.dir}/BOM/"/>
   195         <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" todir="${build.log.dir}/BOM/"/>
   196         <delete file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
   196         <delete file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
   197     </target>
   197     </target>
   198 
   198 
   199     <target name="sf-prebuild" depends="sf-prep,sf-prebuild-announce,sf-diamonds-tag-build">
   199     <target name="sf-prebuild" depends="sf-prep,sf-prebuild-announce,sf-diamonds-tag-build,sf-record-proj-conf-bom">
   200         <!-- create BOM dir -->
       
   201         <mkdir dir="${build.drive}/output/logs/BOM"/>
       
   202         
       
   203         <!-- record project and config information in BOM files -->
       
   204         <delete file="${build.drive}/output/logs/BOM/config.csv" quiet="true"/>
       
   205         <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.repo">
       
   206             <arg value="showconfig"/>
       
   207             <arg value="paths.default"/>
       
   208         </exec>
       
   209         <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.rev">
       
   210             <arg value="identify"/>
       
   211             <arg value="-n"/>
       
   212         </exec>
       
   213         <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.checksum">
       
   214             <arg value="identify"/>
       
   215             <arg value="-i"/>
       
   216         </exec>
       
   217         <echo message="dir ${sf.config.dir} : revision ${sf.job.bom.config.rev}:${sf.job.bom.config.checksum}"/>
       
   218         <exec executable="cmd" output="${build.drive}/output/logs/BOM/config.csv" append="true">
       
   219             <arg value="/c"/>
       
   220             <arg value="echo"/>
       
   221             <arg value="${sf.job.bom.config.repo},sf-config,${sf.job.bom.config.rev}:${sf.job.bom.config.checksum}"/>
       
   222         </exec>
       
   223         <delete file="${build.drive}/output/logs/BOM/project.csv" quiet="true"/>
       
   224         <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.repo">
       
   225             <arg value="showconfig"/>
       
   226             <arg value="paths.default"/>
       
   227         </exec>
       
   228         <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.rev">
       
   229             <arg value="identify"/>
       
   230             <arg value="-n"/>
       
   231         </exec>
       
   232         <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.checksum">
       
   233             <arg value="identify"/>
       
   234             <arg value="-i"/>
       
   235         </exec>
       
   236         <echo message="dir ${sf.project.location} : revision ${sf.job.bom.project.rev}:${sf.job.bom.project.checksum}"/>
       
   237         <exec executable="cmd" output="${build.drive}/output/logs/BOM/project.csv" append="true">
       
   238             <arg value="/c"/>
       
   239             <arg value="echo"/>
       
   240             <arg value="${sf.job.bom.project.repo},build/config,${sf.job.bom.project.rev}:${sf.job.bom.project.checksum}"/>
       
   241         </exec>
       
   242 
       
   243         <!-- tools baseline must come before epoc baseline to allow clean listing -->
   200         <!-- tools baseline must come before epoc baseline to allow clean listing -->
   244         <if>
   201         <if>
   245             <istrue value="${sf.spec.toolsbaseline.enable}" />
   202             <istrue value="${sf.spec.toolsbaseline.enable}" />
   246             <then>
   203             <then>
   247 
   204 
   326           </fmpp>
   283           </fmpp>
   327         </then>
   284         </then>
   328       </if>
   285       </if>
   329     </target>
   286     </target>
   330     
   287     
       
   288     <target name="sf-record-proj-conf-bom">
       
   289         <!-- create BOM dir -->
       
   290         <mkdir dir="${build.drive}/output/logs/BOM"/>
       
   291         
       
   292         <!-- record config and project information in BOM files -->
       
   293         <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.repo">
       
   294             <arg value="showconfig"/>
       
   295             <arg value="paths.default"/>
       
   296         </exec>
       
   297         <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.rev">
       
   298             <arg value="identify"/>
       
   299             <arg value="-n"/>
       
   300         </exec>
       
   301         <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.checksum">
       
   302             <arg value="identify"/>
       
   303             <arg value="-i"/>
       
   304         </exec>
       
   305         <echo message="dir ${sf.config.dir} : revision ${sf.job.bom.config.rev}:${sf.job.bom.config.checksum}"/>
       
   306         <echo message="${sf.job.bom.config.repo},sf-config,${sf.job.bom.config.rev}:${sf.job.bom.config.checksum}" file="${build.drive}/output/logs/BOM/config.csv"/>
       
   307 
       
   308         <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.repo">
       
   309             <arg value="showconfig"/>
       
   310             <arg value="paths.default"/>
       
   311         </exec>
       
   312         <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.rev">
       
   313             <arg value="identify"/>
       
   314             <arg value="-n"/>
       
   315         </exec>
       
   316         <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.checksum">
       
   317             <arg value="identify"/>
       
   318             <arg value="-i"/>
       
   319         </exec>
       
   320         <echo message="dir ${sf.project.location} : revision ${sf.job.bom.project.rev}:${sf.job.bom.project.checksum}"/>
       
   321 	<echo message="${sf.job.bom.project.repo},build/config,${sf.job.bom.project.rev}:${sf.job.bom.project.checksum}" file="${build.drive}/output/logs/BOM/project.csv"/>
       
   322     </target>
       
   323 
   331     <target name="sf-getenv-tools">
   324     <target name="sf-getenv-tools">
   332         <antcall target="preparation-getenv" inheritAll="false">
   325         <antcall target="preparation-getenv" inheritAll="false">
   333             <param name="base_release.path"           value="${sf.spec.toolsbaseline.location}"/>
   326             <param name="base_release.path"           value="${sf.spec.toolsbaseline.location}"/>
   334             <param name="base_release.getenv_options" value="${sf.spec.toolsbaseline.getenv_options}"/>
   327             <param name="base_release.getenv_options" value="${sf.spec.toolsbaseline.getenv_options}"/>
   335         </antcall>
   328         </antcall>