common/build.xml
changeset 73 b8d6af733d6d
parent 69 c933fe776713
child 74 d6aee860ab32
equal deleted inserted replaced
72:4846dd5df20a 73:b8d6af733d6d
     1 <?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <project name="SF-COMMON-CONFIG">
     2 <project name="SF-COMMON-CONFIG" xmlns:hlm="http://www.nokia.com/helium">
     3 
     3 
     4     <property environment="env"/> <!-- make environment variables available via env -->
     4     <property environment="env"/> <!-- make environment variables available via env -->
     5     
     5     
     6     <dirname property="sf.common.config.dir" file="${ant.file.SF-COMMON-CONFIG}"/>
     6     <dirname property="sf.common.config.dir" file="${ant.file.SF-COMMON-CONFIG}"/>
     7     
     7     
   227   
   227   
   228     <target name="sf-intersect-dir">
   228     <target name="sf-intersect-dir">
   229     <property name="sf.currentlist_a.name"   value="${sf.list_a.name}"/> 
   229     <property name="sf.currentlist_a.name"   value="${sf.list_a.name}"/> 
   230     <property name="sf.currentlist_b.name"   value="${sf.list_b.name}"/>
   230     <property name="sf.currentlist_b.name"   value="${sf.list_b.name}"/>
   231     <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
   231     <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
   232     		
   232 	
   233     <if>
   233     <if>
   234       <istrue value="${sf.spec.dirdelta.enable}"/>
   234       <istrue value="${sf.spec.dirdelta.enable}"/>
   235       <then>
   235       <then>
   236         <echo message="Inersection requested for ${sf.currentlist_a.name} vs ${sf.currentlist_b.name} "/>
   236         <echo message="Inersection requested for ${sf.currentlist_a.name} vs ${sf.currentlist_b.name} "/>
   237         <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}_intersect.log">
   237         <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}_intersect.log">
   301         <data expandProperties="yes">
   301         <data expandProperties="yes">
   302               ant: antProperties()
   302               ant: antProperties()
   303               config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]})
   303               config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]})
   304               project: csv(${build.drive}/output/logs/BOM/project.csv,{separator:',',headers:[loc,dst,rev]})
   304               project: csv(${build.drive}/output/logs/BOM/project.csv,{separator:',',headers:[loc,dst,rev]})
   305               baseline: slicedText(${build.drive}/output/logs/BOM/baseline.txt,{trim})
   305               baseline: slicedText(${build.drive}/output/logs/BOM/baseline.txt,{trim})
   306               sources: csv(${build.drive}/output/logs/BOM/sources.csv,{separator:',',headers:[loc,dst,rev]})
   306               sources: csv(${build.drive}/output/logs/BOM/sources.csv,{separator:',',headers:[loc,dst,rev]})              
   307               
       
   308         </data>
   307         </data>
   309       </fmpp>
   308       </fmpp>
   310     </target>
   309     </target>
   311 
   310 
       
   311 	<target name="sf-preprocess-package-config">
       
   312         <exec executable="perl" dir="${build.drive}/" failonerror="true" output="${build.log.dir}/zipconfig.log">
       
   313           <arg value="${sf.common.config.dir}/tools/populateziptemplate.pl"/>
       
   314           <arg value="${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}"/>
       
   315           <arg value="${sf.common.config.dir}/templates/zip.cfg.xml.ftl.template"/>
       
   316         </exec>
       
   317 	</target>
       
   318 	
       
   319 	<target name="sf-zip-content" depends="preprocess-zip-config">
       
   320 		<property name="zip.${zip.target.name}.log.file" location="${build.log.dir}/${build.id}_${zip.target.name}_zip.log" />
       
   321 		<property name="zips.${zip.target.name}.spec.name" value="${zip.target.name}" />
       
   322 		<hlm:zipContentMacro type="${zip.target.name}" file="${zip.config.file}" />
       
   323 	</target>
       
   324 	
       
   325 	<target name="sf-package-source" depends="sf-preprocess-package-config">
       
   326 		<antcall target="sf-zip-content">
       
   327 			<param name="zip.config.file" value="${sf.common.config.dir}/templates/zip.cfg.xml.ftl"/>
       
   328 			<param name="zip.target.name" value="src" />
       
   329 		</antcall>	
       
   330 	</target>
       
   331 	
       
   332 	<target name="sf-package-binary" depends="sf-preprocess-package-config">
       
   333 		<antcall target="sf-zip-content">
       
   334 		    <param name="zip.config.file" value="${sf.common.config.dir}/templates/zip.cfg.xml.ftl"/>
       
   335 			<param name="zip.target.name" value="bin" />
       
   336 		</antcall>	
       
   337 	</target>
       
   338 	
   312 </project>
   339 </project>
   313 
   340 
   314 
   341