common/build.xml
changeset 97 4f54ca96b7e8
parent 93 27826401fee5
child 99 2c7b53b5228f
equal deleted inserted replaced
93:27826401fee5 97:4f54ca96b7e8
   165           <runtarget target="sf-diamondize-bom"/>
   165           <runtarget target="sf-diamondize-bom"/>
   166         </then>
   166         </then>
   167       </if>
   167       </if>
   168     </target>
   168     </target>
   169     
   169     
   170     <target name="sf-postbuild" depends="sf-zip-logs">
   170     <target name="sf-postbuild">
   171         <echo>[SF-POSTBUILD]</echo>
   171         <echo>[SF-POSTBUILD]</echo>
       
   172         
       
   173         <!-- run build analysis tools -->
       
   174         <runtarget target="sf-run-analysis"/>
   172         
   175         
   173         <!-- TAG SOURCE CODE -->
   176         <!-- TAG SOURCE CODE -->
   174         <if>
   177         <if>
   175             <istrue value="${sf.spec.tagafterbuild.enable}" />
   178             <istrue value="${sf.spec.tagafterbuild.enable}" />
   176             <then>
   179             <then>
   190         <if><istrue value="${sf.spec.test.send.enable}"/>
   193         <if><istrue value="${sf.spec.test.send.enable}"/>
   191             <then>
   194             <then>
   192                 <runtarget target="sf-send-testpkg"/>
   195                 <runtarget target="sf-send-testpkg"/>
   193             </then>
   196             </then>
   194         </if>
   197         </if>
       
   198 
       
   199         <runtarget target="sf-zip-logs"/>
   195 
   200 
   196         <!-- PUBLISH LOGS/REPORTS -->
   201         <!-- PUBLISH LOGS/REPORTS -->
   197         <if>
   202         <if>
   198             <istrue value="${sf.spec.publish.enable}" />
   203             <istrue value="${sf.spec.publish.enable}" />
   199             <then>
   204             <then>
   424             <arg value="${sf.spec.test.host.name}"/>
   429             <arg value="${sf.spec.test.host.name}"/>
   425             <arg value="${sf.spec.test.host.path}"/>
   430             <arg value="${sf.spec.test.host.path}"/>
   426             <arg value="${sf.spec.test.package.name}"/>
   431             <arg value="${sf.spec.test.package.name}"/>
   427             <arg value="${sf.spec.test.package.path}"/>
   432             <arg value="${sf.spec.test.package.path}"/>
   428         </exec>
   433         </exec>
       
   434   </target>
       
   435   
       
   436   <!-- runs analysis of missing bins and source -->
       
   437   <target name="sf-run-analysis">
       
   438         <mkdir dir="${build.log.dir}/analysis"/>
       
   439 
       
   440         <echo message="Running source analysis of ANT output"/>
       
   441         <exec executable="perl" dir="${build.log.dir}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_scan_ant.log">
       
   442             <arg value="${sf.common.config.dir}/tools/analysis/scan_antlogs.pl"/>
       
   443             <arg value="*ant*"/>
       
   444         </exec>
       
   445 
       
   446         <echo message="Running list analysis"/>
       
   447         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_list_results.log">
       
   448             <arg value="${sf.common.config.dir}/tools/analysis/parselistdirs.pl"/>
       
   449             <arg value="..\"/>
       
   450         </exec>
       
   451 
       
   452         <echo message="Running whatlog analysis"/>
       
   453         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_what_results.log">
       
   454             <arg value="${sf.common.config.dir}/tools/analysis/parsewhatlog.pl"/>
       
   455             <arg value="..\"/>
       
   456         </exec>
       
   457 
       
   458         <echo message="Running summary analysis"/>
       
   459         <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log">
       
   460             <arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/>
       
   461             <arg value="${build.id}_list_results.log"/>
       
   462             <arg value="${build.id}_what_results.log"/>
       
   463         </exec>
       
   464 
   429 
   465 
   430   </target>
   466   </target>
   431   
   467   
   432 </project>
   468 </project>
   433 
   469