common/build.xml
changeset 61 54444a2ae2db
parent 60 9edae8fe1416
child 62 2771e394c9bd
equal deleted inserted replaced
60:9edae8fe1416 61:54444a2ae2db
   107   </target>
   107   </target>
   108     
   108     
   109 		
   109 		
   110     <!-- package all logs into zipfile before publish -->
   110     <!-- package all logs into zipfile before publish -->
   111     <target name="sf-zip-logs">
   111     <target name="sf-zip-logs">
   112         <property name="temp.log.zip" value="${env.TEMP}/build_logs_${sf.spec.job.name}_${build.number}.zip"/>
   112 		<if><istrue value="${sf.spec.logs.zip.enable}"/>
   113         <zip destfile="${temp.log.zip}" basedir="${build.log.dir}"/>
   113 			<then>
   114         <move file="${temp.log.zip}" todir="${build.log.dir}" failonerror="false"/>		
   114 				<property name="temp.log.zip" value="${env.TEMP}/build_logs_${sf.spec.job.name}_${build.number}.zip"/>
       
   115 				<echo message="Zip log requested, zipping logs..."/>
       
   116 				<zip destfile="${temp.log.zip}" basedir="${build.log.dir}"/>
       
   117 				<move file="${temp.log.zip}" todir="${build.log.dir}" failonerror="false"/>
       
   118 			</then>
       
   119 		</if>
   115     </target>
   120     </target>
   116 	
   121 	
   117 	<!-- generate dir list using passed location and name 
   122 	<!-- generate dir list using passed location and name 
   118 	if a baseline list is available then generate deltas too -->
   123 	if a baseline list is available then generate deltas too -->
   119 	
   124 	
   120 	<target name="sf-list-dir">
   125 	<target name="sf-list-dir">
   121 		<property name="sf.currentlist.name" value="${sf.list.name}"/>
   126 		<property name="sf.currentlist.name"   value="${sf.list.name}"/> 
   122 		<property name="sf.dir.location" value="${build.drive}/epoc32"/> 
   127 		<property name="sf.dir.location" value="${build.drive}/epoc32"/> 
   123     
       
   124 		<exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist.name}.log">
       
   125 			<arg value="${sf.common.config.dir}/tools/listdir.pl"/>
       
   126 			<arg value="${sf.dir.location}"/>
       
   127 		</exec>
       
   128 		
   128 		
   129 		<if><available file="${build.log.dir}/listdir_${build.id}_baseline.log"/>
   129 		<if><istrue value="${sf.spec.dirlist.enable}"/>
       
   130 			<then>
       
   131 			<echo message="Dirlist name: ${sf.currentlist.name} requested for ${sf.dir.location}"/>
       
   132 			<exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist.name}.log">
       
   133 				<arg value="${sf.common.config.dir}/tools/listdir.pl"/>
       
   134 				<arg value="${sf.dir.location}"/>
       
   135 			</exec>
       
   136 			</then>
       
   137 		</if>
       
   138 	</target>
       
   139 	
       
   140 	<target name="sf-delta-dir">
       
   141 		<property name="sf.currentlist_a.name"   value="${sf.list_b.name}"/> 
       
   142 		<property name="sf.currentlist_b.name"   value="${sf.list_b.name}"/>
       
   143 		<property name="sf.dir.location" value="${build.drive}/epoc32"/> 
       
   144     		
       
   145 		<if><istrue value="${sf.spec.dirdelta.enable}"/>
   130 		<then>
   146 		<then>
   131 			<exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist.name}_delta.log">
   147 		<echo message="Delta requested for ${sf.currentlist_a.name} vs ${sf.currentlist_b.name} "/>
       
   148 			<exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}_delta.log">
   132 				<arg value="${sf.common.config.dir}/tools/difflist.pl"/>
   149 				<arg value="${sf.common.config.dir}/tools/difflist.pl"/>
   133 				<arg value="${build.log.dir}/listdir_${build.id}_baseline.log"/>
   150 				<arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_a.name}.log"/>
   134 				<arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist.name}.log"/>
   151 				<arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}.log"/>
   135 			</exec>
   152 			</exec>
   136 		</then>
   153 		</then>
   137 		</if>
   154 		</if>
   138 	</target>
   155 	</target>	
   139 	
       
   140     <target name="sf-build-noprep" depends="sf-compile">
   156     <target name="sf-build-noprep" depends="sf-compile">
   141         <echo>[SF-BUILD-NOPREP]</echo>
   157         <echo>[SF-BUILD-NOPREP]</echo>
   142     </target>
   158     </target>
   143     
   159     
   144     <target name="create-canonical-sysdef-file">
   160     <target name="create-canonical-sysdef-file">