common/templates/source-spec.ant.xml.ftl
changeset 615 6f70bcc536bb
parent 584 920441a385c6
child 703 ecf2c59629fc
equal deleted inserted replaced
600:01511de51fcd 615:6f70bcc536bb
     2 <project name="SF-SOURCESPEC" default="all" xmlns:hlm="http://www.nokia.com/helium">
     2 <project name="SF-SOURCESPEC" default="all" xmlns:hlm="http://www.nokia.com/helium">
     3 
     3 
     4 <#assign fileset = "" />
     4 <#assign fileset = "" />
     5 <#assign sync_list = "" />
     5 <#assign sync_list = "" />
     6 <#assign bom_list  = "" />
     6 <#assign bom_list  = "" />
       
     7 <#assign change_list  = "" />
     7 <#assign dollar = "$"/>
     8 <#assign dollar = "$"/>
     8 <#assign count = 0 />
     9 <#assign count = 0 />
     9 
    10 
    10 <#if ("${ant['sf.spec.sourcesync.archive']}")??>
    11 <#if ("${ant['sf.spec.sourcesync.archive']}")??>
    11   <#if "${ant['sf.spec.sourcesync.archive']}" == "true">
    12   <#if "${ant['sf.spec.sourcesync.archive']}" == "true">
   115                 <arg value="${pkg_detail.source},${pkg_detail.dst},changeset,${dollar}{sf.sourcesync.${count}.checksum},${pkg_detail.sysdef}"/>
   116                 <arg value="${pkg_detail.source},${pkg_detail.dst},changeset,${dollar}{sf.sourcesync.${count}.checksum},${pkg_detail.sysdef}"/>
   116             </exec>
   117             </exec>
   117         </sequential>
   118         </sequential>
   118     </target>
   119     </target>
   119 
   120 
       
   121     <target name="sf-bom-change-info-${count}">
       
   122         <sequential>
       
   123       		<if><not><isset property="sf.sourcesync.${count}.checksum"/></not>
       
   124       			<then>
       
   125               <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="sf.sourcesync.${count}.checksum">
       
   126                 <arg value="identify"/>
       
   127                 <arg value="-i"/>
       
   128               </exec>
       
   129       			</then>
       
   130       		</if>
       
   131       		  <echo message="Writing BOM changes since ${dollar}{sf.previous.pdk.tag} for ${pkg_detail.dst}" />
       
   132       		  <echo file="${ant['build.drive']}/output/logs/BOM/changes.txt" append="true" message="${dollar}{line.separator}${pkg_detail.source}${dollar}{line.separator}${pkg_detail.dst}${dollar}{line.separator}${dollar}{line.separator}" />
       
   133             <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" output="${ant['build.drive']}/output/logs/BOM/changes.txt" append="true">
       
   134                 <arg value="log"/>
       
   135                 <arg value="-r"/>
       
   136                 <arg value="${dollar}{sf.sourcesync.${count}.checksum}:${dollar}{sf.previous.pdk.tag}"/>
       
   137             </exec>
       
   138           </sequential>
       
   139     </target>
   120 
   140 
   121     <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.sysdef}\"/>" />       
   141     <#assign fileset = "${fileset}" + "<fileset dir=\"${ant['build.drive']}${pkg_detail.dst}\" includes=\"${pkg_detail.sysdef}\"/>" />       
   122     <#assign sync_list = "${sync_list}" + "<runtarget target=\"sf-prebuild-${count}\"/>\n"/>       
   142     <#assign sync_list = "${sync_list}" + "<runtarget target=\"sf-prebuild-${count}\"/>\n\t\t"/>       
   123     <#assign bom_list = "${bom_list}" + "<runtarget target=\"sf-bom-info-${count}\"/>\n"/>    
   143     <#assign bom_list = "${bom_list}" + "<runtarget target=\"sf-bom-info-${count}\"/>\n\t"/>
       
   144     <#assign change_list = "${change_list}" + "<runtarget target=\"sf-bom-change-info-${count}\"/>\n\t"/>        
   124     <#assign count = count + 1 />
   145     <#assign count = count + 1 />
   125 
   146 
   126 </#list>
   147 </#list>
   127 
   148 
   128     <path id="system.definition.files">
   149     <path id="system.definition.files">
   143       <arg value="echo"/>
   164       <arg value="echo"/>
   144       <arg value="source,dst,type,pattern,sysdef"/>
   165       <arg value="source,dst,type,pattern,sysdef"/>
   145   </exec>
   166   </exec>
   146   
   167   
   147   ${bom_list}
   168   ${bom_list}
       
   169   <runtarget target="sf-bom-change-info" />
       
   170 </target>
       
   171 
       
   172 <target name="sf-bom-change-info">
       
   173   
       
   174   <mkdir dir="${ant['build.drive']}/output/logs/BOM/"/>
       
   175   <delete file="${ant['build.drive']}/output/logs/BOM/changes.txt" quiet="true"/> 
       
   176   ${change_list}
   148 
   177 
   149 </target>
   178 </target>
   150 </project>
   179 </project>