common/build.xml
author Simon Howkins <simonh@symbian.org>
Tue, 18 Aug 2009 14:16:01 +0100
changeset 360 38e924ed959d
parent 358 61571c10c5d0
child 361 023e28d6bf31
permissions -rw-r--r--
Created framework for separating postbuild related activities into a separate file.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
73
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
     2
<project name="SF-COMMON-CONFIG" xmlns:hlm="http://www.nokia.com/helium">
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     3
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     4
    <property environment="env"/> <!-- make environment variables available via env -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     5
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     6
    <dirname property="sf.common.config.dir" file="${ant.file.SF-COMMON-CONFIG}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     7
    
360
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents: 358
diff changeset
     8
    <!-- Import common properties -->
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
     9
    <import file="${sf.common.config.dir}/common_props.ant.xml" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    10
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    11
    <!-- setup Helium internal properties from their equivalent in the project spec -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    12
    <property name="build.name" value="${sf.spec.job.name}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    13
    <property name="core.build.version" value="${sf.spec.job.codeline}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    14
    <property name="build.number" value="${sf.spec.job.number}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    15
    <property name="build.drive" value="${sf.spec.job.drive}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    16
    <property name="build.family" value="${sf.project.type}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    17
    <property name="email.from" value="${sf.spec.email.from}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    18
    <property name="local.free.space" value="${sf.spec.job.freespace}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    19
    <property name="network.free.space" value="${sf.spec.publish.network.freespace}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    20
    <property name="network.drive" value="${sf.spec.publish.networkdrive}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    21
    <property name="prep.root.dir" value="${sf.spec.job.rootdir}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    22
    <property name="publish" value="${sf.spec.publish.enable}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    23
    <property name="publish.root.dir" value="${sf.spec.publish.rootdir}"/>
197
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 196
diff changeset
    24
    <property name="diamonds.host" value="${sf.spec.publish.diamonds.server}"/>
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 196
diff changeset
    25
    <property name="diamonds.port" value="${sf.spec.publish.diamonds.port}"/>
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 196
diff changeset
    26
    <property name="diamonds.path" value="${sf.spec.publish.diamonds.path}"/>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    27
    <property name="build.system" value="${sf.spec.build.system}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    28
    <property name="base_release.path" value="${sf.spec.baseline.location}"/>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    29
    <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
263
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    30
    
198
4b1e939c052c Added yarp to diamonds publishing
Dario Sestito <darios@symbian.org>
parents: 197
diff changeset
    31
    <!-- SF-specific Helium properties not meant to be exposed in the project spec -->
4b1e939c052c Added yarp to diamonds publishing
Dario Sestito <darios@symbian.org>
parents: 197
diff changeset
    32
    <property name="diamonds.listener.configuration.file" location="${sf.common.config.dir}/diamonds/config.xml.ftl"/>
4b1e939c052c Added yarp to diamonds publishing
Dario Sestito <darios@symbian.org>
parents: 197
diff changeset
    33
    
360
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents: 358
diff changeset
    34
    <!-- Import all core HELIUM targets -->
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    35
    <import file="${helium.dir}/helium.ant.xml" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    36
    
360
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents: 358
diff changeset
    37
    <!-- Import common references -->
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    38
    <import file="${sf.common.config.dir}/common_refs.ant.xml" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    39
             
360
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents: 358
diff changeset
    40
    <!-- Import functionality distributed into other file(s) -->
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents: 358
diff changeset
    41
    <import file="${sf.common.config.dir}/build.postbuild.xml"/>
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents: 358
diff changeset
    42
             
263
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    43
    <!-- setup conditional Helium internal properties -->
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    44
    <if><istrue value="${sf.spec.sourcesync.usecache}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    45
        <then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    46
            <property name="sf.spec.sourcesync.sourcespecdir" value="${sf.common.config.dir}/generated"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    47
        </then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    48
        <else>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    49
            <property name="sf.spec.sourcesync.sourcespecdir" value="${sf.project.location}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    50
        </else>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    51
    </if>
166
32693583e769 Added Hg local cache management feature.
ThomasE
parents: 161
diff changeset
    52
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    53
    <!-- conditional import of generated source spec if available -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    54
    <if><available  file="${sf.common.config.dir}/generated/source-spec.ant.xml" />
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
    55
        <then>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    56
            <echo message="Generated source spec found, importing..." />
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
    57
            <import file="${sf.common.config.dir}/generated/source-spec.ant.xml"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
    58
        </then>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    59
    </if>
69
c933fe776713 Fix generated sysdef filename and also remove erroneous comment
BuildAdmin@LON-ENGBUILD87
parents: 65
diff changeset
    60
     
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    61
    
166
32693583e769 Added Hg local cache management feature.
ThomasE
parents: 161
diff changeset
    62
    <target name="sf-prep" depends="prep-drive,init-build-area,sf-generate-source-spec,check-tool-dependencies,create-bom,log-build-env">
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    63
        <echo>[SF-PREP]</echo>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    64
        <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/>
358
61571c10c5d0 Added Build environment check feature
ThomasE
parents: 356
diff changeset
    65
		<echo message="Checking build Environment"/>
61571c10c5d0 Added Build environment check feature
ThomasE
parents: 356
diff changeset
    66
          <exec executable="perl" dir="${sf.common.config.dir}/tools" failonerror="true">
61571c10c5d0 Added Build environment check feature
ThomasE
parents: 356
diff changeset
    67
            <arg value="CheckBuildEnv.pl"/>
61571c10c5d0 Added Build environment check feature
ThomasE
parents: 356
diff changeset
    68
            <arg value="--xml=BuildEnv.xml"/>
61571c10c5d0 Added Build environment check feature
ThomasE
parents: 356
diff changeset
    69
            <arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/>
61571c10c5d0 Added Build environment check feature
ThomasE
parents: 356
diff changeset
    70
			<arg value="--sbs='${sf.spec.sbs.config}'"/>
61571c10c5d0 Added Build environment check feature
ThomasE
parents: 356
diff changeset
    71
			<arg value="--tools='${sf.spec.sbs.tools.config}'"/>
61571c10c5d0 Added Build environment check feature
ThomasE
parents: 356
diff changeset
    72
			<arg value="Common"/>
61571c10c5d0 Added Build environment check feature
ThomasE
parents: 356
diff changeset
    73
          </exec>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    74
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    75
        
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    76
    <target name="sf-build-all" depends="sf-prebuild,sf-build-noprep,sf-postbuild">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    77
        <echo>[SF-BUILD-ALL]</echo>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    78
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    79
    
159
cb50a5d37880 Added new helium target: 'sf-build-and-pack' for use if you need to babysit 'sf-prebuild'
MattD <mattd@symbian.org>
parents: 154
diff changeset
    80
    <target name="sf-build-and-pack" depends="sf-build-noprep,sf-postbuild">
cb50a5d37880 Added new helium target: 'sf-build-and-pack' for use if you need to babysit 'sf-prebuild'
MattD <mattd@symbian.org>
parents: 154
diff changeset
    81
        <echo>[SF-BUILD-AND-PACK]</echo>
cb50a5d37880 Added new helium target: 'sf-build-and-pack' for use if you need to babysit 'sf-prebuild'
MattD <mattd@symbian.org>
parents: 154
diff changeset
    82
    </target>
cb50a5d37880 Added new helium target: 'sf-build-and-pack' for use if you need to babysit 'sf-prebuild'
MattD <mattd@symbian.org>
parents: 154
diff changeset
    83
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    84
    <target name="sf-build" depends="sf-prep,sf-prebuild,sf-build-noprep,sf-postbuild">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    85
        <echo>[SF-BUILD]</echo>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    86
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    87
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    88
    <target name="sf-parse-project-config">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    89
    <!-- TODO: Parse the project config and generate properties and csv file to be
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    90
    used by the builds. -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    91
        <echo message="Parse the project configuration" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    92
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    93
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
    94
    <target name="sf-generate-source-spec" depends="sf-parse-project-config">
263
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    95
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    96
        <!-- Generate the sources.csv if hg cache is activated -->
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    97
        <if><istrue value="${sf.spec.sourcesync.usecache}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    98
            <then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
    99
                <echo message="Generating Hg local cache..." />
308
d00601cbf754 minor fix - creation of 'generated' dir for caching files.
MattD <mattd@symbian.org>
parents: 300
diff changeset
   100
                <mkdir dir="${sf.common.config.dir}/generated"/>
263
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   101
                <exec executable="perl" dir="${build.log.dir}" failonerror="true" output="${build.log.dir}/${build.id}_hgcache.log">
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   102
                    <arg value="${sf.common.config.dir}/tools/cachefiles.pl"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   103
                    <arg value="${sf.spec.sourcesync.cachelocation}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   104
                    <arg value="${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   105
                    <arg value="${sf.common.config.dir}/generated/${sf.spec.sourcesync.sourcespecfile}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   106
                </exec>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   107
            </then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   108
        </if>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   109
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   110
        <!-- TODO: 1. Same file name souce-spec.ant.xml is used for all packages
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   111
        for multiple package builds, this needs to be linked with package name. -->
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   112
        <!-- TODO: 2. Change fmpp data to be a full property rather than relative path -->
313
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   113
        <delete file="${sf.common.config.dir}/generated/source-spec.ant.xml"/>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   114
        
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   115
        <fmpp sourceFile="${sf.common.config.dir}/templates/source-spec.ant.xml.ftl"
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   116
              outputFile="${sf.common.config.dir}/generated/source-spec.ant.xml">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   117
              <data expandProperties="yes">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   118
                    ant: antProperties()
166
32693583e769 Added Hg local cache management feature.
ThomasE
parents: 161
diff changeset
   119
                    data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   120
              </data>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   121
        </fmpp>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   122
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   123
    
123
5b2818c52aae Add optiona BC checking to build process
Louis Henry Nayegon <louisn@symbian.org>
parents: 114
diff changeset
   124
    <target name="sf-bc-check">
263
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   125
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   126
        <if><isset property="env.PDT_HOME"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   127
        <then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   128
            <!-- create BC dir -->
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   129
            <mkdir dir="${build.log.dir}/BC"/>
123
5b2818c52aae Add optiona BC checking to build process
Louis Henry Nayegon <louisn@symbian.org>
parents: 114
diff changeset
   130
263
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   131
            <delete file="${build.log.dir}/BC/bc.config" quiet="true"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   132
            <delete file="${build.log.dir}/BC/BBCResults.xsl" quiet="true"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   133
            <delete file="${build.log.dir}/BC/libraries.txt" quiet="true"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   134
            <delete file="${build.log.dir}/BC/libraries_report.xml" quiet="true"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   135
            <delete file="${build.log.dir}/BC/headers.txt" quiet="true"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   136
            <delete file="${build.log.dir}/BC/headers_report.xml" quiet="true"/>
133
6bf16e4e9cb7 .xml missing from file names
Louis Henry Nayegon <louisn@symbian.org>
parents: 131
diff changeset
   137
263
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   138
            <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   139
                <arg value="/c"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   140
                <arg value="echo"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   141
                <arg value="BASELINE_NAME=${sf.spec.bccheck.baseline.name}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   142
            </exec>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   143
            <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   144
                <arg value="/c"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   145
                <arg value="echo"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   146
                <arg value="BASELINE_SDK_DIR=${sf.spec.bccheck.baseline.skd.dir}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   147
            </exec>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   148
            <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   149
                <arg value="/c"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   150
                <arg value="echo"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   151
                <arg value="BASELINE_SDK_S60_VERSION=${sf.spec.bccheck.baseline.s60.version}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   152
            </exec>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   153
            <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   154
                <arg value="/c"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   155
                <arg value="echo"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   156
                <arg value="CURRENT_NAME=${build.id}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   157
            </exec>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   158
            <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   159
                <arg value="/c"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   160
                <arg value="echo"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   161
                <arg value="CURRENT_SDK_DIR=${build.drive}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   162
            </exec>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   163
            <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   164
                <arg value="/c"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   165
                <arg value="echo"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   166
                <arg value="CURRENT_SDK_S60_VERSION=${sf.spec.bccheck.current.s60.version}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   167
            </exec>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   168
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   169
            <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/BBCResults.xsl" tofile="${build.log.dir}/BC/BBCResults.xsl" failonerror="false" verbose="true"/>
123
5b2818c52aae Add optiona BC checking to build process
Louis Henry Nayegon <louisn@symbian.org>
parents: 114
diff changeset
   170
263
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   171
            <if><istrue value="${sf.spec.bccheck.enable.la}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   172
                <then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   173
                    <exec executable="python" dir="${sf.spec.pdt.root}/fts/compatibilityanalyser" output="${build.log.dir}/BC/libraries.txt">
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   174
                        <arg value="CheckBC.py"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   175
                        <arg value="${build.log.dir}/BC/bc.config"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   176
                        <arg value="-la"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   177
                        <arg value="-f"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   178
                        <arg value="${sf.spec.bccheck.reportid}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   179
                    </exec>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   180
                    <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/Libraries_CompatibilityReport_${sf.spec.bccheck.reportid}.xml" tofile="${build.log.dir}/BC/libraries_report.xml" failonerror="false" verbose="true"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   181
                </then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   182
            </if>
133
6bf16e4e9cb7 .xml missing from file names
Louis Henry Nayegon <louisn@symbian.org>
parents: 131
diff changeset
   183
263
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   184
            <if><istrue value="${sf.spec.bccheck.enable.ha}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   185
                <then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   186
                    <exec executable="python" dir="${sf.spec.pdt.root}/fts/compatibilityanalyser" output="${build.log.dir}/BC/headers.txt">
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   187
                        <arg value="CheckBC.py"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   188
                        <arg value="${build.log.dir}/BC/bc.config"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   189
                        <arg value="-ha"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   190
                        <arg value="-f"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   191
                        <arg value="${sf.spec.bccheck.reportid}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   192
                    </exec>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   193
                    <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/Headers_CompatibilityReport_${sf.spec.bccheck.reportid}.xml" tofile="${build.log.dir}/BC/headers_report.xml" failonerror="false" verbose="true"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   194
                </then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   195
            </if>
213
6e86ffca2e31 Add option for dynamic bc testing
Louis Henry Nayegon <louisn@symbian.org>
parents: 207
diff changeset
   196
263
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   197
            <if><istrue value="${sf.spec.bccheck.enable.dynamic}"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   198
                <then>
274
d1e42f09003c Added step to submit Dynamic BC tests to ATS server
Brendan Donegan brendand@symbian.org
parents: 263
diff changeset
   199
                    <echo message="INFO Updating bctest package with test info"/>
d1e42f09003c Added step to submit Dynamic BC tests to ATS server
Brendan Donegan brendand@symbian.org
parents: 263
diff changeset
   200
                    <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_dynamicbc.log">
d1e42f09003c Added step to submit Dynamic BC tests to ATS server
Brendan Donegan brendand@symbian.org
parents: 263
diff changeset
   201
                        <arg value="ats_specialise_test_drop.pl"/>
d1e42f09003c Added step to submit Dynamic BC tests to ATS server
Brendan Donegan brendand@symbian.org
parents: 263
diff changeset
   202
                        <arg value="--test-drop-name=bctest-${build.id}"/> 
d1e42f09003c Added step to submit Dynamic BC tests to ATS server
Brendan Donegan brendand@symbian.org
parents: 263
diff changeset
   203
                        <arg value="--device-name=GENERIC EMULATOR on ${env.COMPUTERNAME}"/>
d1e42f09003c Added step to submit Dynamic BC tests to ATS server
Brendan Donegan brendand@symbian.org
parents: 263
diff changeset
   204
                        <arg value="--src=${sf.spec.test.package.location}\..\bctest\bctest.zip"/>
d1e42f09003c Added step to submit Dynamic BC tests to ATS server
Brendan Donegan brendand@symbian.org
parents: 263
diff changeset
   205
                        <arg value="--dest=${sf.spec.test.package.location}\${sf.spec.bccheck.package.name}"/>
d1e42f09003c Added step to submit Dynamic BC tests to ATS server
Brendan Donegan brendand@symbian.org
parents: 263
diff changeset
   206
                    </exec>
d1e42f09003c Added step to submit Dynamic BC tests to ATS server
Brendan Donegan brendand@symbian.org
parents: 263
diff changeset
   207
                    <!-- Now ready to send to ATS3 -->
d1e42f09003c Added step to submit Dynamic BC tests to ATS server
Brendan Donegan brendand@symbian.org
parents: 263
diff changeset
   208
d1e42f09003c Added step to submit Dynamic BC tests to ATS server
Brendan Donegan brendand@symbian.org
parents: 263
diff changeset
   209
                    <antcall target="sf-send-testpkg" inheritAll="false">
d1e42f09003c Added step to submit Dynamic BC tests to ATS server
Brendan Donegan brendand@symbian.org
parents: 263
diff changeset
   210
                        <param name="sf.spec.test.package.name" value="${sf.spec.bccheck.package.name}"/>
d1e42f09003c Added step to submit Dynamic BC tests to ATS server
Brendan Donegan brendand@symbian.org
parents: 263
diff changeset
   211
                    </antcall>    
263
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   212
                </then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   213
            </if>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   214
        </then>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   215
        <else>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   216
            <echo message="WARNING: PDT_HOME not set, I dont know where the BC tools are installed so cannot continue"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   217
        </else>
213
6e86ffca2e31 Add option for dynamic bc testing
Louis Henry Nayegon <louisn@symbian.org>
parents: 207
diff changeset
   218
        </if>
123
5b2818c52aae Add optiona BC checking to build process
Louis Henry Nayegon <louisn@symbian.org>
parents: 114
diff changeset
   219
    </target>
241
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   220
    
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   221
    <target name="generate-layers">
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   222
       <echo message="canno-file:${canonical.sysdef.file}"/>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   223
       <echo message="raptor-filters:raptor_${sysdef.configuration}"/>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   224
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   225
       <!-- All we want is a sysdef with the config name appended, so just copy it -->
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   226
       <echo message="INFO: Skip GenXML and copy sysdef to sysdef+config name"/>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   227
       <copy file="${canonical.sysdef.file}" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   228
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   229
        <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml">
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   230
        <filterchain>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   231
            <linecontainsregexp negate="true">
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   232
                <regexp pattern="^\s*$"/>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   233
            </linecontainsregexp>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   234
        </filterchain>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   235
        </copy>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   236
        <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" todir="${build.log.dir}/BOM/"/>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   237
        <delete file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
c451bd0c0782 generate-layer overridden target from platform/build.xml to common/build.xml
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
   238
    </target>
123
5b2818c52aae Add optiona BC checking to build process
Louis Henry Nayegon <louisn@symbian.org>
parents: 114
diff changeset
   239
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   240
    <target name="sf-prebuild">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   241
        <echo>[SF-PREBUILD]</echo>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   242
        
197
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 196
diff changeset
   243
        <if>
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 196
diff changeset
   244
            <istrue value="${sf.spec.publish.enable}"/>
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 196
diff changeset
   245
            <then>
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 196
diff changeset
   246
                <runtarget target="diamonds"/>
321
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 320
diff changeset
   247
                <runtarget target="sf-tag-build"/>
197
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 196
diff changeset
   248
            </then>
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 196
diff changeset
   249
        </if>
e7c76e615b76 Initial implementation of publishing to Diamonds
Dario Sestito <darios@symbian.org>
parents: 196
diff changeset
   250
        
47
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 41
diff changeset
   251
        <!-- create BOM dir -->
58
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 57
diff changeset
   252
        <mkdir dir="${build.drive}/output/logs/BOM"/>
47
d835e951a925 New implementation of generation of BOM sources.csv
DarioS@UK-DarioS.symbian.int
parents: 41
diff changeset
   253
        
59
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   254
        <!-- record project and config information in BOM files -->
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   255
        <delete file="${build.drive}/output/logs/BOM/config.csv" quiet="true"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   256
        <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.repo">
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   257
            <arg value="showconfig"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   258
            <arg value="paths.default"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   259
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   260
        <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.rev">
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   261
            <arg value="identify"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   262
            <arg value="-n"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   263
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   264
        <exec executable="hg" dir="${sf.config.dir}" outputproperty="sf.job.bom.config.checksum">
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   265
            <arg value="identify"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   266
            <arg value="-i"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   267
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   268
        <echo message="dir ${sf.config.dir} : revision ${sf.job.bom.config.rev}:${sf.job.bom.config.checksum}"/>
60
f9a55f310713 Fixed error
DarioS@UK-DarioS.symbian.int
parents: 59
diff changeset
   269
        <exec executable="cmd" output="${build.drive}/output/logs/BOM/config.csv" append="true">
59
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   270
            <arg value="/c"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   271
            <arg value="echo"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   272
            <arg value="${sf.job.bom.config.repo},sf-config,${sf.job.bom.config.rev}:${sf.job.bom.config.checksum}"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   273
        </exec>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   274
        <delete file="${build.drive}/output/logs/BOM/project.csv" quiet="true"/>
355
f5a4f71b49e1 BOM fix - Changed to reading project location ${sf.project.location} instead of ${sf.config.dir}/../build/config, which isn't always correct.
MattD <mattd@symbian.org>
parents: 353
diff changeset
   275
        <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.repo">
59
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   276
            <arg value="showconfig"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   277
            <arg value="paths.default"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   278
        </exec>
355
f5a4f71b49e1 BOM fix - Changed to reading project location ${sf.project.location} instead of ${sf.config.dir}/../build/config, which isn't always correct.
MattD <mattd@symbian.org>
parents: 353
diff changeset
   279
        <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.rev">
59
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   280
            <arg value="identify"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   281
            <arg value="-n"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   282
        </exec>
355
f5a4f71b49e1 BOM fix - Changed to reading project location ${sf.project.location} instead of ${sf.config.dir}/../build/config, which isn't always correct.
MattD <mattd@symbian.org>
parents: 353
diff changeset
   283
        <exec executable="hg" dir="${sf.project.location}" outputproperty="sf.job.bom.project.checksum">
59
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   284
            <arg value="identify"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   285
            <arg value="-i"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   286
        </exec>
355
f5a4f71b49e1 BOM fix - Changed to reading project location ${sf.project.location} instead of ${sf.config.dir}/../build/config, which isn't always correct.
MattD <mattd@symbian.org>
parents: 353
diff changeset
   287
        <echo message="dir ${sf.project.location} : revision ${sf.job.bom.project.rev}:${sf.job.bom.project.checksum}"/>
60
f9a55f310713 Fixed error
DarioS@UK-DarioS.symbian.int
parents: 59
diff changeset
   288
        <exec executable="cmd" output="${build.drive}/output/logs/BOM/project.csv" append="true">
59
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   289
            <arg value="/c"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   290
            <arg value="echo"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   291
            <arg value="${sf.job.bom.project.repo},build/config,${sf.job.bom.project.rev}:${sf.job.bom.project.checksum}"/>
ea48c20dbc09 Added project and config info to BOM files
DarioS@UK-DarioS.symbian.int
parents: 58
diff changeset
   292
        </exec>
142
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   293
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   294
        <!-- tools baseline must come before epoc baseline to allow clean listing -->
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   295
        <if>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   296
            <istrue value="${sf.spec.toolsbaseline.enable}" />
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   297
            <then>
225
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   298
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   299
                <!-- record toolsbaseline information in BOM file -->
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   300
                <delete file="${build.drive}/output/logs/BOM/toolsbaseline.txt" quiet="true"/>
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   301
                <exec executable="cmd" output="${build.drive}/output/logs/BOM/toolsbaseline.txt">
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   302
                    <arg value="/c"/>
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   303
                    <arg value="echo"/>
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   304
                    <arg value="${sf.spec.toolsbaseline.location}"/>
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   305
                </exec>
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   306
142
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   307
                <!-- wrapper around preparation-getenv but with diff params -->
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   308
                <runtarget target="sf-getenv-tools"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   309
                
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   310
                <echo message="INFO Getting tools environment listing"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   311
                <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_toolsbaseline.log">
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   312
                    <arg value="${sf.common.config.dir}/tools/listdir.pl"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   313
                    <arg value="${build.drive}/epoc32"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   314
                </exec>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   315
            </then>
225
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   316
            <else>
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   317
                <!-- record fact that no tools baseline used. required by diamondize-bom  -->
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   318
                <touch file="${build.drive}/output/logs/BOM/toolsbaseline.txt"/>
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   319
            </else>
142
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   320
        </if>        
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   321
        <if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   322
            <istrue value="${sf.spec.baseline.enable}" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   323
            <then>
56
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   324
            
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   325
                <!-- record baseline information in BOM file -->
58
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 57
diff changeset
   326
                <delete file="${build.drive}/output/logs/BOM/baseline.txt" quiet="true"/>
f5faa19dd3ed Added the revision number, moved BOM folder under /logs/
DarioS@UK-DarioS.symbian.int
parents: 57
diff changeset
   327
                <exec executable="cmd" output="${build.drive}/output/logs/BOM/baseline.txt">
56
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   328
                    <arg value="/c"/>
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   329
                    <arg value="echo"/>
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   330
                    <arg value="${sf.spec.baseline.location}"/>
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   331
                </exec>
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   332
                
186
1b428f25477e First drop of smoketest support
dario
parents: 172
diff changeset
   333
                <!-- run internal target preparation-getenv -->
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   334
                <runtarget target="preparation-getenv"/>
56
68c06bb4fbe2 Added recording of baseline info in a BOM file
DarioS@UK-DarioS.symbian.int
parents: 47
diff changeset
   335
                
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   336
            </then>
85
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 84
diff changeset
   337
            <else>
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 84
diff changeset
   338
                <!-- record fact that no baseline used. required by diamondize-bom  -->
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 84
diff changeset
   339
                <touch file="${build.drive}/output/logs/BOM/baseline.txt"/>
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 84
diff changeset
   340
            </else>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   341
        </if>
142
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   342
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   343
        <if>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   344
            <istrue value="${sf.spec.sourcesync.enable}" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   345
            <then>
313
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   346
                <runtarget target="sf-get-source"/>                
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   347
                <runtarget target="sf-package-source"/>                
111
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   348
                <runtarget target="sf-unpack-rnd"/>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   349
            </then>
85
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 84
diff changeset
   350
            <else>
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 84
diff changeset
   351
                <!-- record fact that no sources.csv used. required by diamondize-bom  -->
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 84
diff changeset
   352
                <touch file="${build.log.dir}/BOM/sources.csv"/> 
834b82541047 Add merge of RnD binaries into epoc32 tree as HLM target. Also create empty sources.csv and baseline.txt files if source sync/get baseline is disabled.
Shabe Razvi <shaber@symbian.org>
parents: 84
diff changeset
   353
            </else>
74
d6aee860ab32 1. Run Packaging src at start and bin at end of build.
Shabe Razvi <shaber@symbian.org>
parents: 73
diff changeset
   354
        </if>        
61
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   355
      <if>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   356
        <istrue value="${sf.spec.publish.enable}"/>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   357
        <then>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   358
          <runtarget target="sf-diamondize-bom"/>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   359
        </then>
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   360
      </if>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   361
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   362
    
321
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 320
diff changeset
   363
    <target name="sf-tag-build">
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 320
diff changeset
   364
      <echo>[SF-TAG-BUILD]</echo>
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 320
diff changeset
   365
      <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-tag-build.xml.ftl" outputFile="${build.drive}/output/logs/sf-tag-build.xml">
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 320
diff changeset
   366
        <data expandProperties="yes">
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 320
diff changeset
   367
          ant: antProperties()
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 320
diff changeset
   368
        </data>
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 320
diff changeset
   369
      </fmpp>
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 320
diff changeset
   370
    </target>
55c062276b22 Enable build tagging on Diamonds (default: 'test')
Dario Sestito <darios@symbian.org>
parents: 320
diff changeset
   371
    
97
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   372
    <target name="sf-postbuild">
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   373
        <echo>[SF-POSTBUILD]</echo>
141
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
   374
        <parallel>                
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   375
        <!-- TAG SOURCE CODE -->
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   376
        <if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   377
            <istrue value="${sf.spec.tagafterbuild.enable}" />
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   378
            <then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   379
                <echo message="Apply tag to the source code used in this build"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   380
                <runtarget target="sf-tag-hg-code"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   381
            </then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   382
        </if>
141
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
   383
        
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
   384
        <if>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
   385
            <istrue value="${sf.spec.md5.enable}"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
   386
            <then>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
   387
                <echo message="INFO Creating MD5s"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
   388
                <runtarget target="sf-run-evalid"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
   389
            </then>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
   390
        </if>
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   391
        <if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   392
            <istrue value="${sf.spec.package.bin.enable}"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   393
            <then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   394
                <echo message="INFO Packaging Binaries"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   395
                <runtarget target="sf-package-binary"/>
167
87306c6a6632 Packaging change - Tools now zipped into 'tools_epoc.zip', which isn't 'emu' but 'tools' for package and platform builds.
MattD <mattd@symbian.org>
parents: 161
diff changeset
   396
                <runtarget target="sf-package-tools"/>
262
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
   397
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
   398
                <echo message="INFO Validate Zip files"/>
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
   399
                <runtarget target="sf-package-validate"/>
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   400
            </then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   401
        </if>
350
1e8f54745323 sf-postbuild - running analysis in parallel with evalid and post-build zipping.
MattD <mattd@symbian.org>
parents: 313
diff changeset
   402
        <!-- run build analysis tools -->
1e8f54745323 sf-postbuild - running analysis in parallel with evalid and post-build zipping.
MattD <mattd@symbian.org>
parents: 313
diff changeset
   403
        <runtarget target="sf-run-analysis"/>
1e8f54745323 sf-postbuild - running analysis in parallel with evalid and post-build zipping.
MattD <mattd@symbian.org>
parents: 313
diff changeset
   404
        
141
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
   405
        </parallel>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
   406
        
103
c7c1445180e7 Fix test property typos
Shabe Razvi <shaber@symbian.org>
parents: 99
diff changeset
   407
        <if><istrue value="${sf.spec.test.sendpkg.enable}"/>
91
786a0a00701e 1) Update binary packaging solution to invoke 7za directly. 2) Add partially complete ATS sf-send-testpkg target and associated tools
Shabe Razvi <shaber@symbian.org>
parents: 87
diff changeset
   408
            <then>
142
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   409
                <runtarget target="sf-build-smoketestpkg"/>
91
786a0a00701e 1) Update binary packaging solution to invoke 7za directly. 2) Add partially complete ATS sf-send-testpkg target and associated tools
Shabe Razvi <shaber@symbian.org>
parents: 87
diff changeset
   410
                <runtarget target="sf-send-testpkg"/>
786a0a00701e 1) Update binary packaging solution to invoke 7za directly. 2) Add partially complete ATS sf-send-testpkg target and associated tools
Shabe Razvi <shaber@symbian.org>
parents: 87
diff changeset
   411
            </then>
786a0a00701e 1) Update binary packaging solution to invoke 7za directly. 2) Add partially complete ATS sf-send-testpkg target and associated tools
Shabe Razvi <shaber@symbian.org>
parents: 87
diff changeset
   412
        </if>
786a0a00701e 1) Update binary packaging solution to invoke 7za directly. 2) Add partially complete ATS sf-send-testpkg target and associated tools
Shabe Razvi <shaber@symbian.org>
parents: 87
diff changeset
   413
114
585c31b1dac6 Move analysis after packaging
Shabe Razvi <shaber@symbian.org>
parents: 111
diff changeset
   414
97
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   415
        <runtarget target="sf-zip-logs"/>
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   416
123
5b2818c52aae Add optiona BC checking to build process
Louis Henry Nayegon <louisn@symbian.org>
parents: 114
diff changeset
   417
        <!-- Do BC check -->
5b2818c52aae Add optiona BC checking to build process
Louis Henry Nayegon <louisn@symbian.org>
parents: 114
diff changeset
   418
        <if><istrue value="${sf.spec.bccheck.enable}"/>
5b2818c52aae Add optiona BC checking to build process
Louis Henry Nayegon <louisn@symbian.org>
parents: 114
diff changeset
   419
            <then>
5b2818c52aae Add optiona BC checking to build process
Louis Henry Nayegon <louisn@symbian.org>
parents: 114
diff changeset
   420
                <runtarget target="sf-bc-check"/>
5b2818c52aae Add optiona BC checking to build process
Louis Henry Nayegon <louisn@symbian.org>
parents: 114
diff changeset
   421
            </then>
5b2818c52aae Add optiona BC checking to build process
Louis Henry Nayegon <louisn@symbian.org>
parents: 114
diff changeset
   422
        </if>
5b2818c52aae Add optiona BC checking to build process
Louis Henry Nayegon <louisn@symbian.org>
parents: 114
diff changeset
   423
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   424
        <!-- PUBLISH LOGS/REPORTS -->
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   425
        <if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   426
            <istrue value="${sf.spec.publish.enable}" />
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   427
            <then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   428
                <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
313
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   429
                <runtarget target="sf-publish"/>
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   430
            </then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   431
        </if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   432
    </target>
62
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   433
313
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   434
    <target name="sf-publish" depends="prep-publish">
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   435
        <copy todir="${publish.dir}" preservelastmodified="true" failonerror="false">
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   436
           <fileset dir="${build.log.dir}"><include name="*.zip"/></fileset>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   437
        </copy>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   438
    </target>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   439
142
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   440
    <target name="sf-getenv-tools">
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   441
        <antcall target="preparation-getenv" inheritAll="false">
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   442
            <param name="base_release.path"           value="${sf.spec.toolsbaseline.location}"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   443
            <param name="base_release.getenv_options" value="${sf.spec.toolsbaseline.getenv_options}"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   444
        </antcall>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   445
    </target>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   446
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   447
    <!-- package all logs into zipfile before publish -->
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   448
    <target name="sf-zip-logs">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   449
        <if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   450
            <istrue value="${sf.spec.logs.zip.enable}"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   451
            <then>
250
61a7c7fafc30 BOM and TSVs now zipped up in an alternative zip file.
Simon Howkins <simonh@symbian.org>
parents: 249
diff changeset
   452
                <property name="temp.log.dir" value="${env.TEMP}/${build.id}_output_logs"/>
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   453
                <echo message="Zip log requested, zipping logs..."/>
250
61a7c7fafc30 BOM and TSVs now zipped up in an alternative zip file.
Simon Howkins <simonh@symbian.org>
parents: 249
diff changeset
   454
                <mkdir dir="${temp.log.dir}"/>
263
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   455
                <zip destfile="${temp.log.dir}/build_logs.zip" basedir="${build.drive}"> 
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   456
                    <include name="output/logs/**"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   457
                    <exclude name="output/logs/BOM/**"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   458
                    <exclude name="output/logs/deliverables/**"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   459
                    <exclude name="output/logs/releaseables/**"/>
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   460
                </zip>
300
228efacd68af Zip BOM and releasables changing the top level folder from "output" to "build_info"
Dario Sestito <darios@symbian.org>
parents: 284
diff changeset
   461
                <zip destfile="${temp.log.dir}/build_BOM.zip">
228efacd68af Zip BOM and releasables changing the top level folder from "output" to "build_info"
Dario Sestito <darios@symbian.org>
parents: 284
diff changeset
   462
                    <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
228efacd68af Zip BOM and releasables changing the top level folder from "output" to "build_info"
Dario Sestito <darios@symbian.org>
parents: 284
diff changeset
   463
                    <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
250
61a7c7fafc30 BOM and TSVs now zipped up in an alternative zip file.
Simon Howkins <simonh@symbian.org>
parents: 249
diff changeset
   464
                </zip>
61a7c7fafc30 BOM and TSVs now zipped up in an alternative zip file.
Simon Howkins <simonh@symbian.org>
parents: 249
diff changeset
   465
                <move todir="${build.log.dir}">
61a7c7fafc30 BOM and TSVs now zipped up in an alternative zip file.
Simon Howkins <simonh@symbian.org>
parents: 249
diff changeset
   466
                    <fileset dir="${temp.log.dir}"/>
61a7c7fafc30 BOM and TSVs now zipped up in an alternative zip file.
Simon Howkins <simonh@symbian.org>
parents: 249
diff changeset
   467
                </move>
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   468
            </then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   469
        </if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   470
    </target>
220
8c24efb057be Fix log zip structure, fix udeb/urel issue in MD5s and also package MD5s into zip in correct epoc32\relinfo layout
Shabe Razvi <shaber@symbian.org>
parents: 216
diff changeset
   471
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   472
    <!-- generate dir list using passed location and name 
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   473
    if a baseline list is available then generate deltas too -->
62
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   474
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   475
    <target name="sf-list-dir">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   476
        <property name="sf.currentlist.name"   value="${sf.list.name}"/> 
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   477
        <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
351
a4c764727769 sf-list-dir - added new tool 'listdir.py' which can exclude a directory and changed the behaviour of sf-list-dir to stop scanning epoc32/build to speed things up.
MattD <mattd@symbian.org>
parents: 350
diff changeset
   478
        <property name="sf.dir.exclude" value="${build.drive}/epoc32/build"/> 
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   479
    
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   480
        <if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   481
            <istrue value="${sf.spec.dirlist.enable}"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   482
            <then>
351
a4c764727769 sf-list-dir - added new tool 'listdir.py' which can exclude a directory and changed the behaviour of sf-list-dir to stop scanning epoc32/build to speed things up.
MattD <mattd@symbian.org>
parents: 350
diff changeset
   483
                <echo message="Dirlist name: ${sf.currentlist.name} requested for ${sf.dir.location} excluding ${sf.dir.exclude}"/>
a4c764727769 sf-list-dir - added new tool 'listdir.py' which can exclude a directory and changed the behaviour of sf-list-dir to stop scanning epoc32/build to speed things up.
MattD <mattd@symbian.org>
parents: 350
diff changeset
   484
                <exec executable="python" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist.name}.log">
a4c764727769 sf-list-dir - added new tool 'listdir.py' which can exclude a directory and changed the behaviour of sf-list-dir to stop scanning epoc32/build to speed things up.
MattD <mattd@symbian.org>
parents: 350
diff changeset
   485
                    <arg value="${sf.common.config.dir}/tools/listdir.py"/>
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   486
                    <arg value="${sf.dir.location}"/>
351
a4c764727769 sf-list-dir - added new tool 'listdir.py' which can exclude a directory and changed the behaviour of sf-list-dir to stop scanning epoc32/build to speed things up.
MattD <mattd@symbian.org>
parents: 350
diff changeset
   487
                    <arg value="${sf.dir.exclude}"/>
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   488
                </exec>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   489
            </then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   490
        </if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   491
    </target>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   492
    
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   493
    <target name="sf-delta-dir">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   494
        <property name="sf.currentlist_a.name"   value="${sf.list_a.name}"/> 
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   495
        <property name="sf.currentlist_b.name"   value="${sf.list_b.name}"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   496
        <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   497
        
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   498
        <if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   499
            <istrue value="${sf.spec.dirdelta.enable}"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   500
            <then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   501
                <echo message="Delta requested for ${sf.currentlist_a.name} vs ${sf.currentlist_b.name} "/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   502
                <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}_delta.log">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   503
                    <arg value="${sf.common.config.dir}/tools/difflist.pl"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   504
                    <arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_a.name}.log"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   505
                    <arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}.log"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   506
                </exec>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   507
            </then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   508
        </if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   509
    </target>
62
2771e394c9bd Catchup from main repo
DarioS@UK-DarioS.symbian.int
parents: 61 40
diff changeset
   510
  
65
0099c046d4f3 Add intersection target to FBF
ShabeR@UK-SHABER
parents: 63
diff changeset
   511
    <target name="sf-intersect-dir">
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   512
        <property name="sf.currentlist_a.name"   value="${sf.list_a.name}"/> 
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   513
        <property name="sf.currentlist_b.name"   value="${sf.list_b.name}"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   514
        <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   515
    
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   516
        <if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   517
            <istrue value="${sf.spec.dirdelta.enable}"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   518
            <then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   519
                <echo message="Inersection requested for ${sf.currentlist_a.name} vs ${sf.currentlist_b.name} "/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   520
                <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}_intersect.log">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   521
                    <arg value="${sf.common.config.dir}/tools/difflist.pl"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   522
                    <arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_a.name}.log"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   523
                    <arg value="${build.log.dir}/listdir_${build.id}_${sf.currentlist_b.name}.log"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   524
                    <arg value="-I"/> <!-- run difflist in intersect mode -->
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   525
                </exec>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   526
            </then>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   527
        </if>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   528
    </target>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   529
325
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 321
diff changeset
   530
    <target name="sf-build-noprep" depends="sf-truclean,sf-model-from-project,sf-compile,sf-postbuild">
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   531
        <echo>[SF-BUILD-NOPREP]</echo>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   532
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   533
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   534
    <target name="create-canonical-sysdef-file">
347
94b4a136d800 Simplified create-canonical-sysdef-file so that it's just a simple copy.
Simon Howkins <simonh@symbian.org>
parents: 346
diff changeset
   535
      <copy file="${build.drive}/${sf.spec.systemdefinition.location}" tofile="${canonical.sysdef.file}" failonerror="true" verbose="true"/>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   536
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   537
    
240
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   538
  <target name="sf-truclean">
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   539
    <if>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   540
      <istrue value="${sf.spec.build.clean.enable}"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   541
      <then>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   542
        <echo message="Executing truclean step."/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   543
        <fmpp sourceFile="${sf.common.config.dir}/templates/truclean.ant.xml.ftl"
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   544
            outputFile="${sf.common.config.dir}/generated/truclean.ant.xml">
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   545
          <data expandProperties="yes">
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   546
              ant: antProperties()
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   547
              data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   548
          </data>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   549
        </fmpp>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   550
        <ant antfile="${sf.common.config.dir}/generated/truclean.ant.xml"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   551
      </then>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   552
      <else>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   553
        <echo message="Skipping truclean step."/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   554
      </else>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   555
    </if>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents: 224
diff changeset
   556
  </target>
325
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 321
diff changeset
   557
  
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 321
diff changeset
   558
  <target name="sf-model-from-project">
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 321
diff changeset
   559
    <if>
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 321
diff changeset
   560
      <isset property="sf.spec.systemdefinition.source"/>
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 321
diff changeset
   561
      <then>
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 321
diff changeset
   562
        <echo message="Using ${sf.spec.systemdefinition.source} as model file"/>
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 321
diff changeset
   563
        <echo message="Copying to ${build.drive}/definition.xml"/>
345
26128bd2e266 Un-hardwired an interim location for the system definition.
Simon Howkins <simonh@symbian.org>
parents: 343
diff changeset
   564
        <copy file="${sf.project.location}/${sf.spec.systemdefinition.source}" tofile="${build.drive}${sf.spec.systemdefinition.location}"/>
325
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 321
diff changeset
   565
      </then>
330
f2e8947e085a Added invokation to build.xml and adjusted path to backup locations to match my development environment.
Simon Howkins <simonh@symbian.org>
parents: 326
diff changeset
   566
      <else>
f2e8947e085a Added invokation to build.xml and adjusted path to backup locations to match my development environment.
Simon Howkins <simonh@symbian.org>
parents: 326
diff changeset
   567
        <!-- Collate the system definition from the packages listed in sources.csv -->
343
9b3d3d909bde Added some diagnostic output when the system definition is built from the sources.csv file.
Simon Howkins <simonh@symbian.org>
parents: 336
diff changeset
   568
        <echo message="Building system model from ${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
332
72ceabdbb597 Should fail the build if we can't generate the system model.
Simon Howkins <simonh@symbian.org>
parents: 331
diff changeset
   569
        <exec executable="perl" dir="${build.drive}/" output="${build.drive}${sf.spec.systemdefinition.location}" logError="true" failonerror="true">
330
f2e8947e085a Added invokation to build.xml and adjusted path to backup locations to match my development environment.
Simon Howkins <simonh@symbian.org>
parents: 326
diff changeset
   570
          <arg value="${sf.common.config.dir}/tools/csvToSysDef.pl"/>
f2e8947e085a Added invokation to build.xml and adjusted path to backup locations to match my development environment.
Simon Howkins <simonh@symbian.org>
parents: 326
diff changeset
   571
          <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
331
f7c6fc4239ac Fixed paths and drives for executing script.
Simon Howkins <simonh@symbian.org>
parents: 330
diff changeset
   572
          <arg value="${sf.config.dir}/../build/config/3k"/>
330
f2e8947e085a Added invokation to build.xml and adjusted path to backup locations to match my development environment.
Simon Howkins <simonh@symbian.org>
parents: 326
diff changeset
   573
        </exec>
f2e8947e085a Added invokation to build.xml and adjusted path to backup locations to match my development environment.
Simon Howkins <simonh@symbian.org>
parents: 326
diff changeset
   574
      </else>
325
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 321
diff changeset
   575
    </if>
779cc88ed845 Allow subprojects within a project repo and model file relative to the subproject dir
Dario Sestito <darios@symbian.org>
parents: 321
diff changeset
   576
  </target>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   577
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   578
    <target name="sf-get-source" depends="sf-generate-source-spec">
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   579
        <ant antfile="${sf.common.config.dir}/generated/source-spec.ant.xml" />
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   580
    </target>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   581
    
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   582
    <target name="sf-tag-hg-code">
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   583
        <property name="sf.tagafterbuild.tag" value="${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   584
        <fmpp sourceFile="${sf.common.config.dir}/templates/tag-hg-code.ant.xml.ftl"
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   585
              outputFile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   586
            <data expandProperties="yes">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   587
                ant: antProperties()
166
32693583e769 Added Hg local cache management feature.
ThomasE
parents: 161
diff changeset
   588
                data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   589
            </data>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   590
        </fmpp>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   591
        <ant antfile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml"/>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   592
    </target>
61
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   593
    
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   594
    <target name="sf-diamondize-bom">
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   595
        <fmpp sourceFile="${sf.common.config.dir}/templates/build-info.xml.ftl"
198
4b1e939c052c Added yarp to diamonds publishing
Dario Sestito <darios@symbian.org>
parents: 197
diff changeset
   596
              outputFile="${build.drive}/output/logs/sf-diamondize-bom.xml">
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   597
            <data expandProperties="yes">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   598
                ant: antProperties()
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   599
                config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]})
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   600
                project: csv(${build.drive}/output/logs/BOM/project.csv,{separator:',',headers:[loc,dst,rev]})
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   601
                baseline: slicedText(${build.drive}/output/logs/BOM/baseline.txt,{trim})
225
59f8bbf91345 Add tools baseline to BOM
Shabe Razvi <shaber@symbian.org>
parents: 224
diff changeset
   602
                toolsbaseline: slicedText(${build.drive}/output/logs/BOM/toolsbaseline.txt,{trim})
231
c75afb49c4d3 Add branch and changeset support for getting source. BOM sources.csv can now be reused directly.
Shabe Razvi <shaber@symbian.org>
parents: 228
diff changeset
   603
                sources: csv(${build.drive}/output/logs/BOM/sources.csv,{separator:',',headers:[loc,dst,type,rev,sysdef]})              
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   604
            </data>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   605
        </fmpp>
212
216378ca9c25 Export build-info.xml to BOM folder
Shabe Razvi <shaber@symbian.org>
parents: 207
diff changeset
   606
        <!-- Make a copy in BOM dir -->
216
36d82a2f1f92 Tidy up generate-layers and add missing quote
Shabe Razvi <shaber@symbian.org>
parents: 215
diff changeset
   607
        <copy file="${build.drive}/output/logs/sf-diamondize-bom.xml" tofile="${build.log.dir}/BOM/build-info.xml"/>
61
6066a7d39270 Diamondize BOM info
DarioS@UK-DarioS.symbian.int
parents: 60
diff changeset
   608
    </target>
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
   609
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   610
    <target name="sf-preprocess-package-config">
109
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   611
        <mkdir dir="${sf.common.config.dir}/generated"/>
313
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   612
            <if><istrue value="${sf.spec.package.src.enable}"/>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   613
            <then>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   614
                <echo message="INFO Packaging Source Repos"/>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   615
                <property name="sf-preprocess-package-config.arg" value=""/>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   616
            </then>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   617
            <else>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   618
                <echo message="INFO Packaging: Ignoring Source Repos"/>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   619
                <property name="sf-preprocess-package-config.arg" value="--nosource"/>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   620
            </else>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   621
            </if>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   622
76
a115d49b621f Include epl/sfl category in zipfile name
Shabe Razvi <shaber@symbian.org>
parents: 75
diff changeset
   623
        <exec executable="perl" dir="${build.drive}/" failonerror="false" output="${build.log.dir}/zipconfig.log">
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   624
            <arg value="${sf.common.config.dir}/tools/populateziptemplate.pl"/>
166
32693583e769 Added Hg local cache management feature.
ThomasE
parents: 161
diff changeset
   625
            <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   626
            <arg value="${sf.common.config.dir}/templates/zip.cfg.xml.ftl.template"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   627
            <arg value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
247
cfde8b1784f7 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.
Simon Howkins <simonh@symbian.org>
parents: 246
diff changeset
   628
            <arg value="${build.log.dir}/rnd_excludefile.txt"/>
313
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   629
            <arg value="${sf-preprocess-package-config.arg}"/>
73
b8d6af733d6d Add first cut of packaging solution
Shabe Razvi <shaber@symbian.org>
parents: 69
diff changeset
   630
        </exec>
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   631
    </target>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   632
    
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   633
    <target name="sf-zip-content" depends="preprocess-zip-config">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   634
        <property name="zip.${zip.target.name}.log.file" location="${build.log.dir}/${build.id}_${zip.target.name}_zip.log" />
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   635
        <property name="zips.${zip.target.name}.spec.name" value="${zip.target.name}" />
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   636
        <hlm:zipContentMacro type="${zip.target.name}" file="${zip.config.file}" />
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   637
    </target>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   638
    
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   639
    <target name="sf-package-source" depends="sf-preprocess-package-config">
256
d64a45951a43 Small tweak to get the right content with the right filename for doing a PDK release.
Simon Howkins <simonh@symbian.org>
parents: 254
diff changeset
   640
        <!-- Firstly zip up src & rnd by package -->
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   641
        <antcall target="sf-zip-content">
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   642
            <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   643
            <param name="zip.target.name" value="src" />
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   644
        </antcall>
256
d64a45951a43 Small tweak to get the right content with the right filename for doing a PDK release.
Simon Howkins <simonh@symbian.org>
parents: 254
diff changeset
   645
        <!-- Then zip up src zips by layer -->
254
5033df3f8834 Create zips of zips for SFL src.
Simon Howkins <simonh@symbian.org>
parents: 253
diff changeset
   646
        <antcall target="sf-zip-content">
5033df3f8834 Create zips of zips for SFL src.
Simon Howkins <simonh@symbian.org>
parents: 253
diff changeset
   647
            <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
5033df3f8834 Create zips of zips for SFL src.
Simon Howkins <simonh@symbian.org>
parents: 253
diff changeset
   648
            <param name="zip.target.name" value="src-by-layer" />
5033df3f8834 Create zips of zips for SFL src.
Simon Howkins <simonh@symbian.org>
parents: 253
diff changeset
   649
        </antcall>
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   650
    </target>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   651
    
167
87306c6a6632 Packaging change - Tools now zipped into 'tools_epoc.zip', which isn't 'emu' but 'tools' for package and platform builds.
MattD <mattd@symbian.org>
parents: 161
diff changeset
   652
    <target name="sf-package-tools" depends="sf-preprocess-package-config">
87306c6a6632 Packaging change - Tools now zipped into 'tools_epoc.zip', which isn't 'emu' but 'tools' for package and platform builds.
MattD <mattd@symbian.org>
parents: 161
diff changeset
   653
        <echo message="Packaging epoc32 tools - Temporary method"/>
256
d64a45951a43 Small tweak to get the right content with the right filename for doing a PDK release.
Simon Howkins <simonh@symbian.org>
parents: 254
diff changeset
   654
        <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_tools_epoc32.log">
167
87306c6a6632 Packaging change - Tools now zipped into 'tools_epoc.zip', which isn't 'emu' but 'tools' for package and platform builds.
MattD <mattd@symbian.org>
parents: 161
diff changeset
   655
            <arg value="a"/>
87306c6a6632 Packaging change - Tools now zipped into 'tools_epoc.zip', which isn't 'emu' but 'tools' for package and platform builds.
MattD <mattd@symbian.org>
parents: 161
diff changeset
   656
            <arg value="-tzip"/>
87306c6a6632 Packaging change - Tools now zipped into 'tools_epoc.zip', which isn't 'emu' but 'tools' for package and platform builds.
MattD <mattd@symbian.org>
parents: 161
diff changeset
   657
            <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
87306c6a6632 Packaging change - Tools now zipped into 'tools_epoc.zip', which isn't 'emu' but 'tools' for package and platform builds.
MattD <mattd@symbian.org>
parents: 161
diff changeset
   658
<!--            <arg value="-x@${build.log.dir}/*_includefile.txt"/> -->
261
a0e85954c23c Fix packaging issues. Released zips now delivered in zips\release folder.
Shabe Razvi <shaber@symbian.org>
parents: 260
diff changeset
   659
            <arg value="${build.drive}/output/zips/release/tools_epoc.zip"/> 
167
87306c6a6632 Packaging change - Tools now zipped into 'tools_epoc.zip', which isn't 'emu' but 'tools' for package and platform builds.
MattD <mattd@symbian.org>
parents: 161
diff changeset
   660
            <arg value="epoc32/tools"/>
256
d64a45951a43 Small tweak to get the right content with the right filename for doing a PDK release.
Simon Howkins <simonh@symbian.org>
parents: 254
diff changeset
   661
        </exec>
167
87306c6a6632 Packaging change - Tools now zipped into 'tools_epoc.zip', which isn't 'emu' but 'tools' for package and platform builds.
MattD <mattd@symbian.org>
parents: 161
diff changeset
   662
    </target>
87306c6a6632 Packaging change - Tools now zipped into 'tools_epoc.zip', which isn't 'emu' but 'tools' for package and platform builds.
MattD <mattd@symbian.org>
parents: 161
diff changeset
   663
    
111
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   664
    <target name="sf-package-binary" depends="sf-preprocess-package-config,sf-package-postbuild-rnd">
248
99d202b380d8 Zips binaries into three zips rather than one, to make them easier to download.
Simon Howkins <simonh@symbian.org>
parents: 247
diff changeset
   665
        <!-- Warning: Reverting to using the He zipper will also revert to a single zip for the binaries:
99d202b380d8 Zips binaries into three zips rather than one, to make them easier to download.
Simon Howkins <simonh@symbian.org>
parents: 247
diff changeset
   666
             would need to update the template and possibly the script that populates it -->
91
786a0a00701e 1) Update binary packaging solution to invoke 7za directly. 2) Add partially complete ATS sf-send-testpkg target and associated tools
Shabe Razvi <shaber@symbian.org>
parents: 87
diff changeset
   667
        <!--antcall target="sf-zip-content">
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   668
            <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   669
            <param name="zip.target.name" value="bin" />
91
786a0a00701e 1) Update binary packaging solution to invoke 7za directly. 2) Add partially complete ATS sf-send-testpkg target and associated tools
Shabe Razvi <shaber@symbian.org>
parents: 87
diff changeset
   670
        </antcall-->
263
5ee8d148ce40 Make BC testing more robust. Now requires PDT_HOME env var to be set rather than fail silently. Plus Logs zip tidy up.
Shabe Razvi <shaber@symbian.org>
parents: 262
diff changeset
   671
    <parallel>
91
786a0a00701e 1) Update binary packaging solution to invoke 7za directly. 2) Add partially complete ATS sf-send-testpkg target and associated tools
Shabe Razvi <shaber@symbian.org>
parents: 87
diff changeset
   672
            <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
257
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   673
                <arg value="a"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   674
                <arg value="-tzip"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   675
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   676
                <arg value="-x!epoc32\tools"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   677
                <arg value="-x!epoc32\build"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   678
                <arg value="-x!epoc32\release\armv5"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   679
                <arg value="-x!epoc32\release\winscw"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   680
                <arg value="-xr!*.sym"/>
261
a0e85954c23c Fix packaging issues. Released zips now delivered in zips\release folder.
Shabe Razvi <shaber@symbian.org>
parents: 260
diff changeset
   681
                <arg value="${build.drive}/output/zips/release/binaries_epoc.zip"/>
257
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   682
                <arg value="epoc32\"/>
109
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   683
            </exec>
257
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   684
            
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   685
            <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_winscw.log">
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   686
                <arg value="a"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   687
                <arg value="-tzip"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   688
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   689
                <arg value="-xr!*.sym"/>
261
a0e85954c23c Fix packaging issues. Released zips now delivered in zips\release folder.
Shabe Razvi <shaber@symbian.org>
parents: 260
diff changeset
   690
                <arg value="${build.drive}/output/zips/release/binaries_winscw.zip"/>
257
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   691
                <arg value="epoc32\release\winscw\"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   692
            </exec>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   693
            
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   694
            <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_armv5.log">
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   695
                <arg value="a"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   696
                <arg value="-tzip"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   697
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   698
                <arg value="-xr!*.sym"/>
261
a0e85954c23c Fix packaging issues. Released zips now delivered in zips\release folder.
Shabe Razvi <shaber@symbian.org>
parents: 260
diff changeset
   699
                <arg value="${build.drive}/output/zips/release/binaries_armv5.zip"/>
257
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   700
                <arg value="epoc32\release\armv5\"/>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   701
            </exec>
792dd66af9a1 Small speed improvement (fingers crossed) for zipping up binaries.
Simon Howkins <simonh@symbian.org>
parents: 256
diff changeset
   702
        </parallel>
84
fcf94a72b33e Improved zip template generation script, to take a third argument for the required location of the output file.
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
   703
    </target>
111
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   704
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   705
    <target name="sf-package-postbuild-rnd" depends="sf-preprocess-package-config">
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   706
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   707
        <!-- zip any RnD _includefile.txt files generated during source packaging -->
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   708
        <exec executable="perl" dir="${build.drive}/" failonerror="false" output="${build.log.dir}/zip_postbuild.log">
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   709
            <arg value="${sf.common.config.dir}/tools/zip_includefiles.pl"/>
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   710
        </exec>
261
a0e85954c23c Fix packaging issues. Released zips now delivered in zips\release folder.
Shabe Razvi <shaber@symbian.org>
parents: 260
diff changeset
   711
        <!-- cleanup my moving includefiles to logs and zips to zips\release -->
111
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   712
        <move todir="${build.log.dir}">
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   713
           <fileset dir="${build.drive}"><include name="*_includefile.txt"/></fileset>
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   714
        </move>
261
a0e85954c23c Fix packaging issues. Released zips now delivered in zips\release folder.
Shabe Razvi <shaber@symbian.org>
parents: 260
diff changeset
   715
        <move todir="${build.drive}/output/zips/release">
a0e85954c23c Fix packaging issues. Released zips now delivered in zips\release folder.
Shabe Razvi <shaber@symbian.org>
parents: 260
diff changeset
   716
           <fileset dir="${build.drive}"><include name="bin*.zip"/></fileset>
111
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   717
        </move>
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   718
        <!-- TODO: merge with release_metadata.xml ? -->
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   719
    </target>
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   720
109
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   721
    <!-- unpack rnd zips if available -->
111
5b0bc2f89660 Add postbuild RnD packaging. Add .whatlog to os tools build.
Shabe Razvi <shaber@symbian.org>
parents: 109
diff changeset
   722
    <target name="sf-unpack-rnd">
109
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   723
        <echo message="Unpacking any available RnD binaries"/>
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   724
        <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/unzip_${build.id}_binaries_rnd.log">
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   725
        <arg value="x"/>
154
10c7559f5d31 'sf-unpack-rnd' target: changed to overwrite mode, due to TEF being present earlier in build.
matt.davies@SYM-BUILD02.ad-sfpd.intra
parents: 150
diff changeset
   726
        <arg value="-y"/> <!-- Need to unpack in overwrite mode, due to TEF -->
261
a0e85954c23c Fix packaging issues. Released zips now delivered in zips\release folder.
Shabe Razvi <shaber@symbian.org>
parents: 260
diff changeset
   727
        <arg value="${build.drive}/output/zips/bin*.zip"/>
109
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   728
        </exec>
99
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   729
    </target>
353
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   730
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   731
    <target name="sf-find-ATS-worker-root">
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   732
      <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/devices" failonerror="false" outputproperty="sf.spec.test.workerroot">
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   733
        <arg value="-pe"/>
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   734
        <arg value="&quot;m/TEMPDIR=(\S+)/;print $1;s/.*\n//g&quot;"/>
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   735
        <arg value="${env.COMPUTERNAME}\EMULATOR_GENERIC_${env.COMPUTERNAME}.properties" /> 
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   736
      </exec>
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   737
      <echo message="ATS Worker Root = ${sf.spec.test.workerroot}"/> 
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   738
    </target>
109
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   739
    
353
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   740
    <target name ="sf-make-junction" depends="sf-find-ATS-worker-root">
99
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   741
        
353
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   742
        <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}"/>
99
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   743
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   744
        <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log">
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   745
        <arg value="make_junction.pl"/>
353
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   746
        <arg value="--link=${sf.spec.test.workerroot}/${sf.spec.test.epocroot}/epoc32"/>
99
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   747
        <arg value="--target=${build.drive}/epoc32"/>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   748
        <arg value="--force"/>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   749
      </exec>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   750
    </target>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   751
353
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   752
    <target name ="sf-delete-junction" depends="sf-find-ATS-worker-root">
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   753
        <exec executable="junction.exe" dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}" failonerror="false" output="${build.log.dir}/ATS_${build.id}_delete_junction.log">
99
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   754
        <arg value="-d"/>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   755
        <arg value="epoc32"/>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   756
      </exec>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   757
    </target>  
353
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   758
        
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   759
    <target name="sf-send-testpkg" depends="sf-find-ATS-worker-root,sf-make-junction">
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   760
        <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
99
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   761
        <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   762
        <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
91
786a0a00701e 1) Update binary packaging solution to invoke 7za directly. 2) Add partially complete ATS sf-send-testpkg target and associated tools
Shabe Razvi <shaber@symbian.org>
parents: 87
diff changeset
   763
            <arg value="ats3_testdrop.pl"/>
99
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   764
            <arg value="--host=${sf.spec.test.host.name}"/>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   765
            <arg value="--username=${sf.spec.test.host.username}"/>
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   766
            <arg value="--password=${sf.spec.test.host.password}"/>
142
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   767
            <arg value="--local-test-pkg=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>
353
bf2e2e1cb5ad Smoketest change - Added 'sf-find-ATS-worker-root' to build.xml so that the smoketest goes where the worker is expecting it on a individual basis, rather than it being hardcoded to D:\ATS\...
MattD <mattd@symbian.org>
parents: 351
diff changeset
   768
            <arg value="--local-drop-path=${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
99
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   769
            <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
91
786a0a00701e 1) Update binary packaging solution to invoke 7za directly. 2) Add partially complete ATS sf-send-testpkg target and associated tools
Shabe Razvi <shaber@symbian.org>
parents: 87
diff changeset
   770
        </exec>
99
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   771
    </target>
142
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   772
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   773
    <target name="sf-build-smoketestpkg" depends="sf-getenv-tools">
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   774
        <delete dir  ="${build.drive}/smoketest"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   775
        <delete file ="${build.log.dir}/ATS_${build.id}_smoketest.log"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   776
        
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   777
        <echo message="INFO Copy smoketest source to EPOCROOT"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   778
        
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   779
        <copy todir="${build.drive}/smoketest">
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   780
            <fileset dir="${sf.common.config.dir}/tools/ats/smoketest"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   781
        </copy>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   782
        
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   783
        <echo message="INFO Building smoketest"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   784
        <exec executable="cmd" dir="${build.drive}/smoketest/group" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log">
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   785
            <arg value="/c"/>
161
9f98eafcf480 Build smoketest as udeb plus ensure that sf-postbuild is run for sf-build-noprep.
Shabe Razvi <shaber@symbian.org>
parents: 159
diff changeset
   786
            <arg value="sbs -b bld.inf -c winscw_udeb.test"/>
142
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   787
        </exec>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   788
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   789
        <echo message="INFO Creating smoketest testpackage"/>
278
48931850b6e8 smoketest creation - .pl files not always executable on build machines.
MattD <mattd@symbian.org>
parents: 275
diff changeset
   790
        <exec executable="perl" dir="${build.drive}/smoketest/group" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log">
142
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   791
            <arg value="smoketest.pl"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   792
        </exec>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   793
        <copy file="${build.drive}/smoketest/group/smoketest.zip" todir="${sf.spec.test.package.location}"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   794
        
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   795
        <echo message="INFO Updating smoketest package with test info"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   796
        <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log">
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   797
            <arg value="ats_specialise_test_drop.pl"/>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   798
            <arg value="--test-drop-name=Smoketest-${build.id}"/> 
236
83bd5e2c69a6 Use GENERIC interface on ATS server and add machine name to test package to aid origin
Shabe Razvi <shaber@symbian.org>
parents: 231
diff changeset
   799
            <arg value="--device-name=GENERIC EMULATOR on ${env.COMPUTERNAME}"/>
142
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   800
            <arg value="--src=${sf.spec.test.package.location}\smoketest.zip"/>
301
f2f997f0ec98 updating to add build-id for diamond in build.xml
Tathagata Roy <royt@symbian.org>
parents: 300
diff changeset
   801
            <arg value="--dest=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>	
f2f997f0ec98 updating to add build-id for diamond in build.xml
Tathagata Roy <royt@symbian.org>
parents: 300
diff changeset
   802
            <arg value="--build-id=http://${sf.spec.publish.diamonds.server}${diamonds.build.id}"/>			
142
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   803
        </exec>
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   804
        <!-- Now ready to send to ATS3 -->
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   805
    </target>   
247e27021cd0 Add <sf-getenv-tools> target to unpack tools baseline and also <sf-build-smoketestpkg> to create smoketest package to be sent to ATS3 server
Shabe Razvi <shaber@symbian.org>
parents: 141
diff changeset
   806
99
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   807
    <!-- runs analysis of missing bins and source -->
2c7b53b5228f Add ATS test client target <sf-send-testpkg> to default configuration. Default is off.
Shabe Razvi <shaber@symbian.org>
parents: 97
diff changeset
   808
    <target name="sf-run-analysis">
97
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   809
        <mkdir dir="${build.log.dir}/analysis"/>
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   810
        <parallel>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   811
          <runtarget target="sf-run-analysis-ant"/>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   812
          <runtarget target="sf-run-analysis-raptor"/>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   813
          <runtarget target="sf-run-analysis-yarp"/>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   814
          <runtarget target="sf-run-analysis-whatlog-summary"/>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   815
        </parallel>
313
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   816
        <if>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   817
          <istrue value="${sf.spec.publish.enable}"/>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   818
            <then>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   819
            <runtarget target="sf-run-analysis-diamonds"/>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   820
            </then>
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
   821
        </if>    
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   822
    </target>
97
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   823
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   824
    <target name="sf-run-analysis-ant">    
97
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   825
        <echo message="Running source analysis of ANT output"/>
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   826
        <exec executable="perl" dir="${build.log.dir}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_scan_ant.log">
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   827
            <arg value="${sf.common.config.dir}/tools/analysis/scan_antlogs.pl"/>
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   828
            <arg value="*ant*"/>
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   829
        </exec>
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   830
    </target>
97
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   831
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   832
    <target name="sf-run-analysis-list">    
97
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   833
        <echo message="Running list analysis"/>
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   834
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_list_results.log">
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   835
            <arg value="${sf.common.config.dir}/tools/analysis/parselistdirs.pl"/>
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   836
            <arg value="..\"/>
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   837
        </exec>
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   838
    </target>
97
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   839
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   840
    <target name="sf-run-analysis-whatlog">    
97
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   841
        <echo message="Running whatlog analysis"/>
109
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   842
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_what_results.csv">
97
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   843
            <arg value="${sf.common.config.dir}/tools/analysis/parsewhatlog.pl"/>
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   844
            <arg value="..\"/>
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   845
        </exec>
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   846
    </target>
97
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   847
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   848
    <target name="sf-run-analysis-whatlog-summary" >
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   849
        <sequential>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   850
          <parallel>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   851
            <runtarget target="sf-run-analysis-list"/>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   852
            <runtarget target="sf-run-analysis-whatlog"/>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   853
          </parallel>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   854
          <runtarget target="sf-run-analysis-whatlog-merge" />
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   855
          <parallel>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   856
            <runtarget target="sf-run-analysis-whatlog-package"/>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   857
            <runtarget target="sf-run-analysis-whatlog-collisons"/>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   858
          </parallel>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   859
        </sequential>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   860
    </target>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   861
    
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   862
    <target name="sf-run-analysis-whatlog-merge" >        
97
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   863
        <echo message="Running summary analysis"/>
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   864
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log">
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   865
            <arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/>
109
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   866
            <arg value="${build.id}_what_results.csv"/>
97
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   867
            <arg value="${build.id}_list_results.log"/>
261
a0e85954c23c Fix packaging issues. Released zips now delivered in zips\release folder.
Shabe Razvi <shaber@symbian.org>
parents: 260
diff changeset
   868
            <arg value="${build.drive}/output/zips/release/binaries_epoc_additional.zip"/>
131
1f3285cd5668 Added analyse_components.pl and related call to build.xml
thomase
parents: 126
diff changeset
   869
        </exec>
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   870
    </target>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   871
    
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   872
    <target name="sf-run-analysis-whatlog-package" >        
141
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
   873
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_analysecomponents.log">
131
1f3285cd5668 Added analyse_components.pl and related call to build.xml
thomase
parents: 126
diff changeset
   874
            <arg value="${sf.common.config.dir}/tools/analysis/analyse_components.pl"/>
166
32693583e769 Added Hg local cache management feature.
ThomasE
parents: 161
diff changeset
   875
            <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
141
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
   876
            <arg value="${build.id}_what_results.csv_results.csv"/>
236
83bd5e2c69a6 Use GENERIC interface on ATS server and add machine name to test package to aid origin
Shabe Razvi <shaber@symbian.org>
parents: 231
diff changeset
   877
            <arg value="${sf.project.location}/sysdefs/system_model_os.xml"/>
109
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   878
        </exec>
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   879
    </target>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   880
    
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   881
    <target name="sf-run-analysis-whatlog-collisons" >        
109
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   882
        <echo message="Running collision analysis"/>
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   883
        <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log">
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   884
            <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/>
cb16ca6483d9 Unpack actual RnD zips rather than fastcopy. Add build collisions tool to <sf-run-analysis> target.
Shabe Razvi <shaber@symbian.org>
parents: 103
diff changeset
   885
            <arg value="${build.log.dir}/analysis/${build.id}_what_results.csv"/>
97
4f54ca96b7e8 Add build analysis tools to <sf-run-analysis> target. All output generated in <logs>\analysis dir.
Shabe Razvi <shaber@symbian.org>
parents: 93
diff changeset
   886
        </exec>
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   887
    </target>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   888
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   889
    <target name="sf-run-analysis-raptor">            
251
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   890
      <echo message="Preprocessing *_compile.log files"/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   891
      <for param="logfile">
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   892
        <path>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   893
          <fileset dir="${build.log.dir}">
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   894
            <include name="*_compile.log"/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   895
            <exclude name="*build_check_compile.log"/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   896
          </fileset>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   897
        </path>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   898
        <sequential>
326
47a6624f927d Fix regexp to take account of new codeline naming convention
Dario Sestito <darios@symbian.org>
parents: 325
diff changeset
   899
          <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\|\/].*\.T?\d+_+(.*)_compile\.log" replace="\1_compile_preprocessed.log"/>
251
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   900
	        <echo message="Preprocessing @{logfile}..."/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   901
          <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${preprocessedlogfile}" error="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true">
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   902
            <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   903
          </exec>
252
f7fc039dd3a3 Raptor error analysis to be published to Diamonds
Dario Sestito <darios@symbian.org>
parents: 251
diff changeset
   904
        </sequential>
251
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   905
      </for>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   906
      
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   907
      <echo message="Extracting whatlog information from *whatlog*_compile_preprocessed.log files"/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   908
      <for param="whatlogfile">
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   909
        <path>
252
f7fc039dd3a3 Raptor error analysis to be published to Diamonds
Dario Sestito <darios@symbian.org>
parents: 251
diff changeset
   910
          <fileset dir="${build.log.dir}/analysis">
251
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   911
            <include name="*whatlog*_compile_preprocessed.log"/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   912
          </fileset>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   913
        </path>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   914
        <sequential>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   915
          <echo message="Extracting whatlog info from @{whatlogfile}..."/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   916
          <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true">
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   917
            <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   918
            <arg value="--releaseable"/>
252
f7fc039dd3a3 Raptor error analysis to be published to Diamonds
Dario Sestito <darios@symbian.org>
parents: 251
diff changeset
   919
            <arg value="--log=@{whatlogfile}"/>
251
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   920
            <arg value="--basedir=${build.log.dir}"/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   921
            <arg value="--append"/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   922
          </exec>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   923
        </sequential>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   924
      </for>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   925
      
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   926
      <echo message="Extracting error information from *_compile_preprocessed.log files"/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   927
      <for param="raptorlogfile">
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   928
        <path>
252
f7fc039dd3a3 Raptor error analysis to be published to Diamonds
Dario Sestito <darios@symbian.org>
parents: 251
diff changeset
   929
          <fileset dir="${build.log.dir}/analysis">
251
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   930
            <include name="*_compile_preprocessed.log"/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   931
          </fileset>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   932
        </path>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   933
        <sequential>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   934
          <echo message="Extracting error info from @{raptorlogfile}..."/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   935
          <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   936
            <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   937
            <arg value="--error"/>
252
f7fc039dd3a3 Raptor error analysis to be published to Diamonds
Dario Sestito <darios@symbian.org>
parents: 251
diff changeset
   938
            <arg value="--log=@{raptorlogfile}"/>
251
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   939
            <arg value="--basedir=${build.log.dir}/raptorbits"/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   940
            <arg value="--append"/>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   941
          </exec>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   942
        </sequential>
f3105028766d Added analysis of Raptor errors
Dario Sestito <darios@symbian.org>
parents: 243
diff changeset
   943
      </for>
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   944
            <!-- Now iterate through the generated TSVs to sort them and remove duplicates -->
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   945
      <for param="tsv">
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   946
        <path>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   947
          <fileset dir="${build.log.dir}/releaseables">
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   948
            <include name="**/*.tsv"/>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   949
          </fileset>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   950
        </path>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   951
        <sequential>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   952
          <exec executable="perl" input="@{tsv}" output="@{tsv}">
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   953
            <arg value="${sf.common.config.dir}/tools/sortUnique.pl"/>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   954
          </exec>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   955
        </sequential>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   956
      </for>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   957
    </target>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   958
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   959
    <target name="sf-run-analysis-yarp">          
243
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   960
      <echo message="Running yarp over *_compile.log files"/>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   961
      <for param="logfile">
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   962
        <path>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   963
          <fileset dir="${build.log.dir}">
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   964
            <include name="*_compile.log"/>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   965
            <exclude name="*build_check_compile.log"/>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   966
          </fileset>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   967
        </path>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   968
        <sequential>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   969
          <propertyregex override="yes" property="yarpfile"  input="@{logfile}" regexp=".*[\\|\/](.*)_compile\.log" replace="\1_yarp.csv"/>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   970
          <propertyregex override="yes" property="yarpfile_short"  input="${yarpfile}" regexp="[^_]*_[^_]*_[^_]*_(.+)_[^_]*_yarp\.csv" replace="YARP_\1"/>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   971
          <echo message="Yarping @{logfile}..."/>
284
e5f3b53baae0 Yarp - Modified to output failed recipes to STDOUT instead of having to use dump_recipe_at_line.pl, and modified build.xml to save these logs.
Matt Davies <mattd@symbian.org>
parents: 281
diff changeset
   972
          <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${yarpfile}.log" append="true">
243
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   973
            <arg value="${sf.common.config.dir}/tools/analysis/yarp.pl"/>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   974
            <arg value="@{logfile}"/>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   975
            <arg value="${build.log.dir}/analysis/${yarpfile}"/>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   976
          </exec>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   977
          <exec executable="cmd" output="${build.drive}/output/logs/analysis/tmp_yarp_files.csv" append="true">
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   978
            <arg value="/c"/>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   979
            <arg value="echo"/>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   980
            <arg value="${yarpfile_short},${sf.spec.publish.networkdrive}\${sf.spec.job.name}\builds\${sf.spec.job.codeline}\${build.id}\logs\analysis\${yarpfile},${build.drive}\output\logs\analysis\${yarpfile}"/>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   981
          </exec>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   982
        </sequential>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   983
      </for>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   984
      
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   985
      <exec executable="perl" dir="${build.drive}" failonerror="false" outputproperty="sf.job.totalyarperrors">
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   986
        <arg value="${sf.common.config.dir}/tools/analysis/parse_yarp_files.pl"/>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   987
        <arg value="${build.drive}/output/logs/analysis/tmp_yarp_files.csv"/>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   988
      </exec>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   989
      <echo message="Total yarp errors: ${sf.job.totalyarperrors}"/>
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   990
    </target>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   991
    
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
   992
    <target name="sf-run-analysis-diamonds">      
243
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   993
      <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-run-analysis.xml.ftl" outputFile="${build.drive}/output/logs/sf-run-analysis.xml">
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   994
        <data expandProperties="yes">
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   995
          ant: antProperties()
252
f7fc039dd3a3 Raptor error analysis to be published to Diamonds
Dario Sestito <darios@symbian.org>
parents: 251
diff changeset
   996
          raptor_summary: csv(${build.log.dir}/raptorbits/summary.csv,{separator:',',headers:[category,subcategory,severity,component,phase,recipe,file,line]})
243
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   997
          files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]})
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   998
        </data>
71d24b4fa162 Updated preprocess_log to deal with mal-formed <archive> tags - workaround for Bug 170.
Simon Howkins <simonh@symbian.org>
parents: 242
diff changeset
   999
      </fmpp>
310
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
  1000
    </target>
8337c2afc41f Split sf-run-analysis into bit-sized targets, which can run in parallel to reduce the post-build time on a platform build.
MattD <mattd@symbian.org>
parents: 309
diff changeset
  1001
    
253
Dario Sestito <darios@symbian.org>
parents: 252 250
diff changeset
  1002
262
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
  1003
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
  1004
    <target name="sf-package-validate">
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
  1005
        <exec executable="7z" dir="${build.drive}/output/zips" failonerror="false" output="${build.drive}/output/zips/validate.log">
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
  1006
            <arg value="t"/>
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
  1007
            <arg value="*.zip"/>
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
  1008
        </exec>  
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
  1009
        <exec executable="7z" dir="${build.drive}/output/zips/release" failonerror="false" output="${build.drive}/output/zips/release/validate.log">
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
  1010
            <arg value="t"/>
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
  1011
            <arg value="*.zip"/>
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
  1012
        </exec>  
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
  1013
    </target>
633b96a83005 Add zipfile validation to packaging
Shabe Razvi <shaber@symbian.org>
parents: 261
diff changeset
  1014
141
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1015
    <target name="sf-run-evalid">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1016
        <delete dir="${build.drive}/output/md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1017
        <mkdir  dir="${build.drive}/output/md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1018
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1019
        <parallel>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1020
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1021
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1022
            <arg value="evalid -g epoc32/include output/md5/epoc32_include.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1023
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1024
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1025
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1026
            <arg value="evalid -g epoc32/s60 output/md5/epoc32_s60.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1027
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1028
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1029
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1030
            <arg value="evalid -g epoc32/localisation output/md5/epoc32_localisation.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1031
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1032
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1033
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1034
            <arg value="evalid -x \.sym$ -x ^armv5/udeb -x ^armv5/urel -x ^winscw/udeb -x ^winscw/urel -g epoc32/release output/md5/epoc32_release.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1035
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1036
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1037
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1038
            <arg value="evalid -x \.sym$ -g epoc32/release/armv5/udeb output/md5/epoc32_release_armv5_udeb.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1039
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1040
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1041
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1042
            <arg value="evalid -x \.sym$ -g epoc32/release/armv5/urel output/md5/epoc32_release_armv5_urel.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1043
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1044
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1045
            <arg value="/c"/>
220
8c24efb057be Fix log zip structure, fix udeb/urel issue in MD5s and also package MD5s into zip in correct epoc32\relinfo layout
Shabe Razvi <shaber@symbian.org>
parents: 216
diff changeset
  1046
            <arg value="evalid -x \.sym$ -g epoc32/release/winscw/udeb output/md5/epoc32_release_winscw_udeb.md5"/>
141
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1047
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1048
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1049
            <arg value="/c"/>
220
8c24efb057be Fix log zip structure, fix udeb/urel issue in MD5s and also package MD5s into zip in correct epoc32\relinfo layout
Shabe Razvi <shaber@symbian.org>
parents: 216
diff changeset
  1050
            <arg value="evalid -x \.sym$ -g epoc32/release/winscw/urel output/md5/epoc32_release_winscw_urel.md5"/>
141
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1051
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1052
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1053
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1054
            <arg value="evalid -g epoc32/cshlpcmp_template 	output/md5/epoc32_cshlpcmp_template.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1055
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1056
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1057
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1058
            <arg value="evalid -g epoc32/data output/md5/epoc32_data.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1059
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1060
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1061
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1062
            <arg value="evalid -g epoc32/engdoc output/md5/epoc32_engdoc.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1063
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1064
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1065
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1066
            <arg value="evalid -g epoc32/engineeringtools output/md5/epoc32_engineeringtools.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1067
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1068
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1069
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1070
            <arg value="evalid -g epoc32/gcc output/md5/epoc32_gcc.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1071
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1072
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1073
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1074
            <arg value="evalid -g epoc32/gcc_mingw output/md5/epoc32_gcc_mingw.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1075
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1076
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1077
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1078
            <arg value="evalid -g epoc32/ksa output/md5/epoc32_ksa.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1079
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1080
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1081
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1082
            <arg value="evalid -g epoc32/rom output/md5/epoc32_rom.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1083
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1084
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1085
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1086
            <arg value="evalid -g epoc32/rombuild output/md5/epoc32_rombuild.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1087
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1088
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1089
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1090
            <arg value="evalid -g epoc32/sbs_config output/md5/epoc32_sbs_config.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1091
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1092
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1093
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1094
            <arg value="evalid -g epoc32/sdk_special output/md5/epoc32_sdk_special.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1095
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1096
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1097
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1098
            <arg value="evalid -g epoc32/stdapis output/md5/epoc32_stdapis.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1099
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1100
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1101
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1102
            <arg value="evalid -g epoc32/stubs output/md5/epoc32_stubs.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1103
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1104
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1105
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1106
            <arg value="evalid -g epoc32/tools output/md5/epoc32_tools.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1107
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1108
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1109
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1110
            <arg value="evalid -g epoc32/wins output/md5/epoc32_wins.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1111
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1112
        <exec executable="cmd" dir="${build.drive}">
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1113
            <arg value="/c"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1114
            <arg value="evalid -g epoc32/winscw output/md5/epoc32_winscw.md5"/>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1115
        </exec>
228f8b438c19 Add MD5 creation
Shabe Razvi <shaber@symbian.org>
parents: 133
diff changeset
  1116
        </parallel>
220
8c24efb057be Fix log zip structure, fix udeb/urel issue in MD5s and also package MD5s into zip in correct epoc32\relinfo layout
Shabe Razvi <shaber@symbian.org>
parents: 216
diff changeset
  1117
        
8c24efb057be Fix log zip structure, fix udeb/urel issue in MD5s and also package MD5s into zip in correct epoc32\relinfo layout
Shabe Razvi <shaber@symbian.org>
parents: 216
diff changeset
  1118
        <!-- package MD5s directly into epoc32/relinfo location so that its usable out-of-the-box -->
8c24efb057be Fix log zip structure, fix udeb/urel issue in MD5s and also package MD5s into zip in correct epoc32\relinfo layout
Shabe Razvi <shaber@symbian.org>
parents: 216
diff changeset
  1119
        <property name="temp.md5.zip" value="${env.TEMP}/MD5_${sf.spec.job.name}_${build.number}.zip"/>
8c24efb057be Fix log zip structure, fix udeb/urel issue in MD5s and also package MD5s into zip in correct epoc32\relinfo layout
Shabe Razvi <shaber@symbian.org>
parents: 216
diff changeset
  1120
        <echo message="INFO Packaging MD5s"/>
8c24efb057be Fix log zip structure, fix udeb/urel issue in MD5s and also package MD5s into zip in correct epoc32\relinfo layout
Shabe Razvi <shaber@symbian.org>
parents: 216
diff changeset
  1121
        <zip destfile="${temp.md5.zip}">
8c24efb057be Fix log zip structure, fix udeb/urel issue in MD5s and also package MD5s into zip in correct epoc32\relinfo layout
Shabe Razvi <shaber@symbian.org>
parents: 216
diff changeset
  1122
            <zipfileset dir="${build.drive}/output/md5/" prefix="epoc32/relinfo"/>
8c24efb057be Fix log zip structure, fix udeb/urel issue in MD5s and also package MD5s into zip in correct epoc32\relinfo layout
Shabe Razvi <shaber@symbian.org>
parents: 216
diff changeset
  1123
        </zip>
8c24efb057be Fix log zip structure, fix udeb/urel issue in MD5s and also package MD5s into zip in correct epoc32\relinfo layout
Shabe Razvi <shaber@symbian.org>
parents: 216
diff changeset
  1124
        <move file="${temp.md5.zip}" todir="${build.log.dir}" failonerror="false"/>
313
52d855dfda13 Changed 'publish' to 'sf-publish' to only publish the zips, not all logs. Changed behaviour so that 'sf.spec.package.src.enable'=false stops the source repos from getting packaged, but not the RnD ones (which are extracted again in platform builds)
MattD <mattd@symbian.org>
parents: 310
diff changeset
  1125
    </target>    
41
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
  1126
</project>
f137ddbb714d Added tagging of source code used in the build
dariosestito@L063522.prod.ad.symbian.intra
parents: 30
diff changeset
  1127