common/build.postbuild.xml
changeset 628 90be37e95e2f
parent 627 56a1d97e7c73
parent 625 4f9a01580199
child 636 4709730d5226
child 637 3effbd6728d4
equal deleted inserted replaced
627:56a1d97e7c73 628:90be37e95e2f
   188             <arg value="evalid -g epoc32/winscw output/md5/epoc32_winscw.md5"/>
   188             <arg value="evalid -g epoc32/winscw output/md5/epoc32_winscw.md5"/>
   189         </exec>
   189         </exec>
   190         </parallel>
   190         </parallel>
   191         
   191         
   192         <!-- package MD5s directly into epoc32/relinfo location so that its usable out-of-the-box -->
   192         <!-- package MD5s directly into epoc32/relinfo location so that its usable out-of-the-box -->
       
   193 		<mkdir dir="${build.output.dir}/zips/release"/> <!-- Hack to prevent non-existing release dir -->
   193         <zip destfile="${build.output.dir}/zips/release/build_md5.zip">
   194         <zip destfile="${build.output.dir}/zips/release/build_md5.zip">
   194             <zipfileset dir="${build.drive}/output/md5/" prefix="epoc32/relinfo"/>
   195             <zipfileset dir="${build.drive}/output/md5/" prefix="epoc32/relinfo"/>
   195         </zip>
   196         </zip>
   196     </target>    
   197     </target>    
   197     
   198     
   285         </parallel>
   286         </parallel>
   286         <if>
   287         <if>
   287           <istrue value="${sf.spec.publish.enable}"/>
   288           <istrue value="${sf.spec.publish.enable}"/>
   288             <then>
   289             <then>
   289             <runtarget target="sf-run-analysis-diamonds"/>
   290             <runtarget target="sf-run-analysis-diamonds"/>
   290             </then>
   291           	<runtarget target="sf-brag-to-diamonds"/>
   291         </if>
   292             </then>
   292 	<runtarget target="sf-brag-to-diamonds"/>
   293         </if>
   293     </target>
   294     </target>
   294 
   295 
   295     <target name="sf-run-analysis-ant">    
   296     <target name="sf-run-analysis-ant">    
   296         <echo message="Running source analysis of ANT output"/>
   297         <echo message="Running source analysis of ANT output"/>
   297         <exec executable="perl" dir="${build.log.dir}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_scan_ant.log">
   298         <exec executable="perl" dir="${build.log.dir}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_scan_ant.log">
   519             <arg value="-XSL"/>
   520             <arg value="-XSL"/>
   520             <arg value="${sf.common.config.dir}/tools/brag/bragForDiamonds.xsl"/>
   521             <arg value="${sf.common.config.dir}/tools/brag/bragForDiamonds.xsl"/>
   521             <arg value="-OUT"/>
   522             <arg value="-OUT"/>
   522             <arg value="${temp.build.dir}/bragForDiamonds.xml"/>
   523             <arg value="${temp.build.dir}/bragForDiamonds.xml"/>
   523         </java>
   524         </java>
       
   525         <!-- Make sure that the summary directory is available to display the BRAG link -->
       
   526         <mkdir  dir="${publish.dir}/summary/"/>
       
   527         <copy file="${build.log.dir}/summary/_brag.xml" toDir="${publish.dir}/summary/"/>
       
   528         <copy file="${build.log.dir}/summary/brag.xsl" toDir="${publish.dir}/summary/"/>
   524         <if>
   529         <if>
   525             <istrue value="${sf.spec.publish.enable}"/>
   530             <istrue value="${sf.spec.publish.enable}"/>
   526             <then>
   531             <then>
   527                 <!-- Try to obtain the diamonds ID for this build -->
   532                 <!-- Try to obtain the diamonds ID for this build -->
   528                 <if>
   533                 <if>
   615                     <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
   620                     <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
   616                     <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
   621                     <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
   617                 </zip>
   622                 </zip>
   618             </then>
   623             </then>
   619         </if>
   624         </if>
   620     </target>
   625      </target>
   621     
   626     
   622     <target name="sf-publish" depends="prep-publish">
   627     <target name="sf-publish" depends="prep-publish">
   623         <copy todir="${publish.dir}" preservelastmodified="true" failonerror="false">
   628         <copy todir="${publish.dir}" preservelastmodified="true" failonerror="false">
   624            <fileset dir="${build.output.dir}/zips/release/"><include name="build_*.zip"/></fileset>
   629            <fileset dir="${build.output.dir}/zips/release/"><include name="build_*.zip"/></fileset>
   625         </copy>
   630         </copy>