common/templates/truclean.ant.xml.ftl
author Simon Howkins <simonh@symbian.org>
Fri, 07 Aug 2009 14:33:52 +0100
changeset 282 aee074ee2646
parent 227 51e429810aba
child 370 6a77c1534c7f
permissions -rw-r--r--
Changed preference for selecting package definition files, so that it takes the one from our tree in preference to the one in the package itself. This means that we can just delete items from our tree when we're happy to switch to using the one in the package (as this will vary from package to package). Added sorting of the attributes when outputting the system definition, to match the de facto standard in the system definition we started with.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
225
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}"/>
227
51e429810aba Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents: 225
diff changeset
    16
        <arg value="--releaseablesdir=${ant['build.drive']}/build_info/logs/releaseables"/>
225
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>