common/templates/truclean.ant.xml.ftl
author Dario Sestito <darios@symbian.org>
Wed, 08 Jul 2009 17:49:33 +0100
changeset 240 5705f5c8f10d
child 242 51e429810aba
permissions -rw-r--r--
Adding truclean step to the package build
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
240
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     1
<?xml version="1.0"?>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     2
<project name="SF-TRUCLEAN" default="all" xmlns:hlm="http://www.nokia.com/helium">
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     3
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     4
<#assign target_depends=""/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     5
<#assign count=0/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     6
<#assign dollar="$"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     7
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     8
<#list data as pkg_detail>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     9
<target name="sf-truclean-${count}">
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    10
  <sequential>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    11
    <propertyregex override="yes" property="package"  input="${pkg_detail.dst}" regexp=".*sf[\\\/]([^\\^\/]+)[\\\/]([^\\^\/]+)" replace="\1/\2"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    12
    <echo message="Calling truclean script for package ${dollar}{package}"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    13
      <exec executable="perl" dir="${ant['build.drive']}/" failonerror="false" output="${ant['build.log.dir']}/truclean.log">
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    14
        <arg value="${ant['sf.common.config.dir']}/tools/raptor/truclean.pl"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    15
        <arg value="--packageexpr=${dollar}{package}"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    16
        <arg value="--deliverablesdir=${ant['build.drive']}/build_info/logs/deliverables"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    17
      </exec>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    18
  </sequential>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    19
</target>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    20
  
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    21
  <#if (count==0)>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    22
    <#assign target_depends="${target_depends}"+"sf-truclean-${count}"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    23
  </#if>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    24
  <#if (count>0)>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    25
    <#assign target_depends="${target_depends}"+","+"sf-truclean-${count}"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    26
  </#if>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    27
  <#assign count=count+1/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    28
</#list>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    29
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    30
<target name="all" depends="${target_depends}"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    31
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    32
</project>