common/build.postbuild.xml
changeset 681 eeab5a04dc46
parent 680 81550e87fc91
child 685 b4b3727007b2
equal deleted inserted replaced
680:81550e87fc91 681:eeab5a04dc46
    46             </if>
    46             </if>
    47         </parallel>
    47         </parallel>
    48 
    48 
    49         <!-- Generate release_metadata entries for the md5 zips -->
    49         <!-- Generate release_metadata entries for the md5 zips -->
    50         <antcall target="sf-zip-content">
    50         <antcall target="sf-zip-content">
    51             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
    51             <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
    52             <param name="zip.target.name" value="bin-just-metadata" />
    52             <param name="zip.target.name" value="bin-just-metadata" />
    53         </antcall>
    53         </antcall>
    54  
    54  
    55         <!-- Launch smoketest -->
    55         <!-- Launch smoketest -->
    56         <if><istrue value="${sf.spec.test.sendpkg.enable}"/>
    56         <if><istrue value="${sf.spec.test.sendpkg.enable}"/>
    82     </target>
    82     </target>
    83 
    83 
    84     <target name="sf-tag-hg-code">
    84     <target name="sf-tag-hg-code">
    85         <property name="sf.tagafterbuild.tag" value="${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
    85         <property name="sf.tagafterbuild.tag" value="${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
    86         <fmpp sourceFile="${sf.common.config.dir}/templates/tag-hg-code.ant.xml.ftl"
    86         <fmpp sourceFile="${sf.common.config.dir}/templates/tag-hg-code.ant.xml.ftl"
    87               outputFile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml">
    87               outputFile="${temp.build.dir}/tag-hg-code.ant.xml">
    88             <data expandProperties="yes">
    88             <data expandProperties="yes">
    89                 ant: antProperties()
    89                 ant: antProperties()
    90                 data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
    90                 data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
    91             </data>
    91             </data>
    92         </fmpp>
    92         </fmpp>
    93         <ant antfile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml"/>
    93         <ant antfile="${temp.build.dir}/tag-hg-code.ant.xml"/>
    94     </target>
    94     </target>
    95 
    95 
    96     <target name="sf-run-evalid" >
    96     <target name="sf-run-evalid" >
    97         <delete dir="${build.drive}/output/md5"/>
    97         <delete dir="${build.drive}/output/md5"/>
    98         <mkdir  dir="${build.drive}/output/md5"/>
    98         <mkdir  dir="${build.drive}/output/md5"/>
   204     
   204     
   205     <target name="sf-package-binary" depends="sf-package-postbuild-rnd">
   205     <target name="sf-package-binary" depends="sf-package-postbuild-rnd">
   206         <!-- Warning: Reverting to using the He zipper will also revert to a single zip for the binaries:
   206         <!-- Warning: Reverting to using the He zipper will also revert to a single zip for the binaries:
   207              would need to update the template and possibly the script that populates it -->
   207              would need to update the template and possibly the script that populates it -->
   208         <!--antcall target="sf-zip-content">
   208         <!--antcall target="sf-zip-content">
   209             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   209             <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
   210             <param name="zip.target.name" value="bin" />
   210             <param name="zip.target.name" value="bin" />
   211         </antcall-->
   211         </antcall-->
   212         <parallel>
   212         <parallel>
   213             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
   213             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
   214                 <arg value="a"/>
   214                 <arg value="a"/>
   241                 <arg value="epoc32\release\armv5\"/>
   241                 <arg value="epoc32\release\armv5\"/>
   242             </exec>
   242             </exec>
   243         </parallel>
   243         </parallel>
   244         <!-- Generate release_metadata entries for the above zips -->
   244         <!-- Generate release_metadata entries for the above zips -->
   245         <antcall target="sf-zip-content">
   245         <antcall target="sf-zip-content">
   246             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   246             <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
   247             <param name="zip.target.name" value="bin-just-metadata" />
   247             <param name="zip.target.name" value="bin-just-metadata" />
   248         </antcall>
   248         </antcall>
   249     </target>
   249     </target>
   250 
   250 
   251     <target name="sf-package-postbuild-rnd" >
   251     <target name="sf-package-postbuild-rnd" >
   252         <antcall target="sf-zip-content">
   252         <antcall target="sf-zip-content">
   253             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   253             <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
   254             <param name="zip.target.name" value="rnd-postbuild" />
   254             <param name="zip.target.name" value="rnd-postbuild" />
   255         </antcall>
   255         </antcall>
   256     </target>
   256     </target>
   257 
   257 
   258     <target name="sf-package-tools" >
   258     <target name="sf-package-tools" >
   262             <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   262             <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   263             <arg value="${build.drive}/output/zips/release/tools_epoc.zip"/> 
   263             <arg value="${build.drive}/output/zips/release/tools_epoc.zip"/> 
   264             <arg value="epoc32/tools"/>
   264             <arg value="epoc32/tools"/>
   265         </exec>
   265         </exec>
   266         <antcall target="sf-zip-content">
   266         <antcall target="sf-zip-content">
   267             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   267             <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
   268             <param name="zip.target.name" value="tools" />
   268             <param name="zip.target.name" value="tools" />
   269         </antcall>
   269         </antcall>
   270     </target>
   270     </target>
   271     
   271     
   272     <target name="sf-package-validate">
   272     <target name="sf-package-validate">
   633                 <zip destfile="${build.output.dir}/zips/release/build_BOM.zip">
   633                 <zip destfile="${build.output.dir}/zips/release/build_BOM.zip">
   634                     <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
   634                     <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
   635                     <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
   635                     <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
   636                 </zip>
   636                 </zip>
   637                 <antcall target="sf-zip-content">
   637                 <antcall target="sf-zip-content">
   638                     <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   638                     <param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/>
   639                     <param name="zip.target.name" value="info-just-metadata" />
   639                     <param name="zip.target.name" value="info-just-metadata" />
   640                 </antcall>
   640                 </antcall>
   641             </then>
   641             </then>
   642         </if>
   642         </if>
   643      </target>
   643      </target>