common/templates/truclean.ant.xml.ftl
author Simon Howkins <simonh@symbian.org>
Mon, 05 Oct 2009 10:20:32 +0100
changeset 578 75fa4158340a
parent 370 6a77c1534c7f
child 1053 48c4655ae39e
permissions -rw-r--r--
Fixed handling or regular expression strings, so the regular expression functiuonality works, not just substring detection! Added special handling if the severity marker is "ignore". Unsuprisingly, it ignores that line.
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>
370
6a77c1534c7f Truclean should not be performed if the sources.csv line doesn't have a sysdef field
Dario Sestito <darios@symbian.org>
parents: 242
diff changeset
     9
  <#if pkg_detail.sysdef != "">
6a77c1534c7f Truclean should not be performed if the sources.csv line doesn't have a sysdef field
Dario Sestito <darios@symbian.org>
parents: 242
diff changeset
    10
  
240
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    11
<target name="sf-truclean-${count}">
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    12
  <sequential>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    13
    <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
    14
    <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
    15
      <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
    16
        <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
    17
        <arg value="--packageexpr=${dollar}{package}"/>
242
51e429810aba Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
    18
        <arg value="--releaseablesdir=${ant['build.drive']}/build_info/logs/releaseables"/>
240
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    19
      </exec>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    20
  </sequential>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    21
</target>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    22
  
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    23
  <#if (count==0)>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    24
    <#assign target_depends="${target_depends}"+"sf-truclean-${count}"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    25
  </#if>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    26
  <#if (count>0)>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    27
    <#assign target_depends="${target_depends}"+","+"sf-truclean-${count}"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    28
  </#if>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    29
  <#assign count=count+1/>
370
6a77c1534c7f Truclean should not be performed if the sources.csv line doesn't have a sysdef field
Dario Sestito <darios@symbian.org>
parents: 242
diff changeset
    30
6a77c1534c7f Truclean should not be performed if the sources.csv line doesn't have a sysdef field
Dario Sestito <darios@symbian.org>
parents: 242
diff changeset
    31
  </#if>
240
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    32
</#list>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    33
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    34
<target name="all" depends="${target_depends}"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    35
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    36
</project>