common/build.xml
changeset 62 2771e394c9bd
parent 61 6066a7d39270
parent 40 54444a2ae2db
child 63 f5604d0e720a
child 172 e8a4b4b53247
equal deleted inserted replaced
61:6066a7d39270 62:2771e394c9bd
   153           <runtarget target="sf-diamondize-bom"/>
   153           <runtarget target="sf-diamondize-bom"/>
   154         </then>
   154         </then>
   155       </if>
   155       </if>
   156     </target>
   156     </target>
   157     
   157     
   158   <target name="sf-postbuild">
   158   <target name="sf-postbuild" depends="sf-zip-logs">
   159     <echo>[SF-POSTBUILD]</echo>
   159     <echo>[SF-POSTBUILD]</echo>
   160     
   160     
   161     <!-- TAG SOURCE CODE -->
   161     <!-- TAG SOURCE CODE -->
   162     <if>
   162     <if>
   163       <istrue value="${sf.spec.tagafterbuild.enable}" />
   163       <istrue value="${sf.spec.tagafterbuild.enable}" />
   175         <runtarget target="publish"/>
   175         <runtarget target="publish"/>
   176       </then>
   176       </then>
   177     </if>
   177     </if>
   178     
   178     
   179   </target>
   179   </target>
   180     
   180 
       
   181   <!-- package all logs into zipfile before publish -->
       
   182   <target name="sf-zip-logs">
       
   183     <if>
       
   184       <istrue value="${sf.spec.logs.zip.enable}"/>
       
   185       <then>
       
   186         <property name="temp.log.zip" value="${env.TEMP}/build_logs_${sf.spec.job.name}_${build.number}.zip"/>
       
   187         <echo message="Zip log requested, zipping logs..."/>
       
   188         <zip destfile="${temp.log.zip}" basedir="${build.log.dir}"/>
       
   189         <move file="${temp.log.zip}" todir="${build.log.dir}" failonerror="false"/>
       
   190       </then>
       
   191     </if>
       
   192   </target>
       
   193 
       
   194   <!-- generate dir list using passed location and name 
       
   195   if a baseline list is available then generate deltas too -->
       
   196 
       
   197   <target name="sf-list-dir">
       
   198     <property name="sf.currentlist.name"   value="${sf.list.name}"/> 
       
   199     <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
       
   200 
       
   201     <if>
       
   202       <istrue value="${sf.spec.dirlist.enable}"/>
       
   203       <then>
       
   204         <echo message="Dirlist name: ${sf.currentlist.name} requested for ${sf.dir.location}"/>
       
   205         <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist.name}.log">
       
   206           <arg value="${sf.common.config.dir}/tools/listdir.pl"/>
       
   207           <arg value="${sf.dir.location}"/>
       
   208         </exec>
       
   209       </then>
       
   210     </if>
       
   211   </target>
       
   212 	
       
   213   <target name="sf-delta-dir">
       
   214     <property name="sf.currentlist_a.name"   value="${sf.list_b.name}"/> 
       
   215     <property name="sf.currentlist_b.name"   value="${sf.list_b.name}"/>
       
   216     <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
       
   217     		
       
   218     <if>
       
   219       <istrue value="${sf.spec.dirdelta.enable}"/>
       
   220       <then>
       
   221         <echo message="Delta requested for ${sf.currentlist_a.name} vs ${sf.currentlist_b.name} "/>
       
   222         <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}_delta.log">
       
   223           <arg value="${sf.common.config.dir}/tools/difflist.pl"/>
       
   224           <arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_a.name}.log"/>
       
   225           <arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}.log"/>
       
   226         </exec>
       
   227       </then>
       
   228     </if>
       
   229   </target>
       
   230   
   181     <target name="sf-build-noprep" depends="sf-compile">
   231     <target name="sf-build-noprep" depends="sf-compile">
   182         <echo>[SF-BUILD-NOPREP]</echo>
   232         <echo>[SF-BUILD-NOPREP]</echo>
   183     </target>
   233     </target>
   184     
   234     
   185     <target name="create-canonical-sysdef-file">
   235     <target name="create-canonical-sysdef-file">