common/templates/truclean.ant.xml.ftl
author Simon Howkins <simonh@symbian.org>
Tue, 09 Feb 2010 17:49:27 +0000
changeset 892 24ecf67cba71
parent 370 6a77c1534c7f
child 1053 48c4655ae39e
permissions -rw-r--r--
Bug 1661: Improve build speed with better caching strategy Changed the way that the cache is located, so the same code can run on any build machine without any configuration. Made work around for Bug 419 the only option, as we're not using the alternative anyway, and I don't want to commit completely untested code! Changed caching algorithm, to improve build times.

<?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>
  <#if pkg_detail.sysdef != "">
  
<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/>

  </#if>
</#list>

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

</project>