common/templates/truclean.ant.xml.ftl
author Simon Howkins <simonh@symbian.org>
Wed, 15 Jul 2009 13:30:58 +0100
changeset 247 cfde8b1784f7
parent 242 51e429810aba
child 370 6a77c1534c7f
permissions -rw-r--r--
Simplified the locations of some generated files, so they are created where they need to be rather than created on one place and moved to another. Zipping of binaries now assumes that there's always an rnd exclude file, as it is always created by populateziptemplate.pl, even if there's nothing put into it.

<?xml version="1.0"?>
<project name="SF-TRUCLEAN" default="all" xmlns:hlm="http://www.nokia.com/helium">

<#assign target_depends=""/>
<#assign count=0/>
<#assign dollar="$"/>

<#list data as pkg_detail>
<target name="sf-truclean-${count}">
  <sequential>
    <propertyregex override="yes" property="package"  input="${pkg_detail.dst}" regexp=".*sf[\\\/]([^\\^\/]+)[\\\/]([^\\^\/]+)" replace="\1/\2"/>
    <echo message="Calling truclean script for package ${dollar}{package}"/>
      <exec executable="perl" dir="${ant['build.drive']}/" failonerror="false" output="${ant['build.log.dir']}/truclean.log">
        <arg value="${ant['sf.common.config.dir']}/tools/raptor/truclean.pl"/>
        <arg value="--packageexpr=${dollar}{package}"/>
        <arg value="--releaseablesdir=${ant['build.drive']}/build_info/logs/releaseables"/>
      </exec>
  </sequential>
</target>
  
  <#if (count==0)>
    <#assign target_depends="${target_depends}"+"sf-truclean-${count}"/>
  </#if>
  <#if (count>0)>
    <#assign target_depends="${target_depends}"+","+"sf-truclean-${count}"/>
  </#if>
  <#assign count=count+1/>
</#list>

<target name="all" depends="${target_depends}"/>

</project>