common/templates/truclean.ant.xml.ftl
changeset 240 5705f5c8f10d
child 242 51e429810aba
equal deleted inserted replaced
224:a237fdfca8c5 240:5705f5c8f10d
       
     1 <?xml version="1.0"?>
       
     2 <project name="SF-TRUCLEAN" default="all" xmlns:hlm="http://www.nokia.com/helium">
       
     3 
       
     4 <#assign target_depends=""/>
       
     5 <#assign count=0/>
       
     6 <#assign dollar="$"/>
       
     7 
       
     8 <#list data as pkg_detail>
       
     9 <target name="sf-truclean-${count}">
       
    10   <sequential>
       
    11     <propertyregex override="yes" property="package"  input="${pkg_detail.dst}" regexp=".*sf[\\\/]([^\\^\/]+)[\\\/]([^\\^\/]+)" replace="\1/\2"/>
       
    12     <echo message="Calling truclean script for package ${dollar}{package}"/>
       
    13       <exec executable="perl" dir="${ant['build.drive']}/" failonerror="false" output="${ant['build.log.dir']}/truclean.log">
       
    14         <arg value="${ant['sf.common.config.dir']}/tools/raptor/truclean.pl"/>
       
    15         <arg value="--packageexpr=${dollar}{package}"/>
       
    16         <arg value="--deliverablesdir=${ant['build.drive']}/build_info/logs/deliverables"/>
       
    17       </exec>
       
    18   </sequential>
       
    19 </target>
       
    20   
       
    21   <#if (count==0)>
       
    22     <#assign target_depends="${target_depends}"+"sf-truclean-${count}"/>
       
    23   </#if>
       
    24   <#if (count>0)>
       
    25     <#assign target_depends="${target_depends}"+","+"sf-truclean-${count}"/>
       
    26   </#if>
       
    27   <#assign count=count+1/>
       
    28 </#list>
       
    29 
       
    30 <target name="all" depends="${target_depends}"/>
       
    31 
       
    32 </project>