common/build.postbuild.xml
author Simon Howkins <simonh@symbian.org>
Wed, 16 Sep 2009 10:27:29 +0100
changeset 456 1ba3c86ebec0
parent 386 62c9e8d019fc
child 468 eb9ba249e164
permissions -rw-r--r--
Bug 350 RnD binary zips missing all content outside epoc32 tree Removed confusing system of *_includefiles.txt appearing in the root of the build drive Also improved generation of release zips and release_metadata.xml to reduce overheads of copying and tweaking for release
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
360
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     2
<project name="SF-POSTBUILD" xmlns:hlm="http://www.nokia.com/helium">
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
     3
    <target name="sf-postbuild">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
     4
        <echo>[SF-POSTBUILD]</echo>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
     5
        <parallel>                
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
     6
        <!-- TAG SOURCE CODE -->
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
     7
        <if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
     8
            <istrue value="${sf.spec.tagafterbuild.enable}" />
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
     9
            <then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    10
                <echo message="Apply tag to the source code used in this build"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    11
                <runtarget target="sf-tag-hg-code"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    12
            </then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    13
        </if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    14
        
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    15
        <if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    16
            <istrue value="${sf.spec.md5.enable}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    17
            <then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    18
                <echo message="INFO Creating MD5s"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    19
                <runtarget target="sf-run-evalid"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    20
            </then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    21
        </if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    22
        <if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    23
            <istrue value="${sf.spec.package.bin.enable}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    24
            <then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    25
                <echo message="INFO Packaging Binaries"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    26
                <runtarget target="sf-package-binary"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    27
                <runtarget target="sf-package-tools"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    28
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    29
                <echo message="INFO Validate Zip files"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    30
                <runtarget target="sf-package-validate"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    31
            </then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    32
        </if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    33
        <!-- run build analysis tools -->
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    34
        <runtarget target="sf-run-analysis"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    35
        
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    36
        </parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    37
        
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    38
        <if><istrue value="${sf.spec.test.sendpkg.enable}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    39
            <then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    40
                <runtarget target="sf-build-smoketestpkg"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    41
                <runtarget target="sf-send-testpkg"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    42
            </then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    43
        </if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    44
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    45
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    46
        <runtarget target="sf-zip-logs"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    47
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    48
        <!-- Do BC check -->
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    49
        <if><istrue value="${sf.spec.bccheck.enable}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    50
            <then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    51
                <runtarget target="sf-bc-check"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    52
            </then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    53
        </if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    54
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    55
        <!-- PUBLISH LOGS/REPORTS -->
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    56
        <if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    57
            <istrue value="${sf.spec.publish.enable}" />
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    58
            <then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    59
                <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    60
                <runtarget target="sf-publish"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    61
            </then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    62
        </if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    63
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    64
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    65
    <target name="sf-tag-hg-code">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    66
        <property name="sf.tagafterbuild.tag" value="${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    67
        <fmpp sourceFile="${sf.common.config.dir}/templates/tag-hg-code.ant.xml.ftl"
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    68
              outputFile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    69
            <data expandProperties="yes">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    70
                ant: antProperties()
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    71
                data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    72
            </data>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    73
        </fmpp>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    74
        <ant antfile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    75
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    76
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    77
    <target name="sf-run-evalid">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    78
        <delete dir="${build.drive}/output/md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    79
        <mkdir  dir="${build.drive}/output/md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    80
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    81
        <parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    82
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    83
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    84
            <arg value="evalid -g epoc32/include output/md5/epoc32_include.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    85
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    86
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    87
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    88
            <arg value="evalid -g epoc32/s60 output/md5/epoc32_s60.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    89
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    90
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    91
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    92
            <arg value="evalid -g epoc32/localisation output/md5/epoc32_localisation.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    93
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    94
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    95
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    96
            <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"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    97
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    98
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
    99
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   100
            <arg value="evalid -x \.sym$ -g epoc32/release/armv5/udeb output/md5/epoc32_release_armv5_udeb.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   101
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   102
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   103
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   104
            <arg value="evalid -x \.sym$ -g epoc32/release/armv5/urel output/md5/epoc32_release_armv5_urel.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   105
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   106
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   107
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   108
            <arg value="evalid -x \.sym$ -g epoc32/release/winscw/udeb output/md5/epoc32_release_winscw_udeb.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   109
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   110
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   111
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   112
            <arg value="evalid -x \.sym$ -g epoc32/release/winscw/urel output/md5/epoc32_release_winscw_urel.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   113
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   114
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   115
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   116
            <arg value="evalid -g epoc32/cshlpcmp_template 	output/md5/epoc32_cshlpcmp_template.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   117
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   118
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   119
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   120
            <arg value="evalid -g epoc32/data output/md5/epoc32_data.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   121
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   122
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   123
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   124
            <arg value="evalid -g epoc32/engdoc output/md5/epoc32_engdoc.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   125
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   126
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   127
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   128
            <arg value="evalid -g epoc32/engineeringtools output/md5/epoc32_engineeringtools.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   129
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   130
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   131
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   132
            <arg value="evalid -g epoc32/gcc output/md5/epoc32_gcc.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   133
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   134
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   135
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   136
            <arg value="evalid -g epoc32/gcc_mingw output/md5/epoc32_gcc_mingw.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   137
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   138
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   139
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   140
            <arg value="evalid -g epoc32/ksa output/md5/epoc32_ksa.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   141
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   142
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   143
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   144
            <arg value="evalid -g epoc32/rom output/md5/epoc32_rom.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   145
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   146
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   147
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   148
            <arg value="evalid -g epoc32/rombuild output/md5/epoc32_rombuild.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   149
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   150
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   151
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   152
            <arg value="evalid -g epoc32/sbs_config output/md5/epoc32_sbs_config.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   153
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   154
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   155
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   156
            <arg value="evalid -g epoc32/sdk_special output/md5/epoc32_sdk_special.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   157
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   158
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   159
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   160
            <arg value="evalid -g epoc32/stdapis output/md5/epoc32_stdapis.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   161
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   162
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   163
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   164
            <arg value="evalid -g epoc32/stubs output/md5/epoc32_stubs.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   165
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   166
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   167
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   168
            <arg value="evalid -g epoc32/tools output/md5/epoc32_tools.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   169
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   170
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   171
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   172
            <arg value="evalid -g epoc32/wins output/md5/epoc32_wins.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   173
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   174
        <exec executable="cmd" dir="${build.drive}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   175
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   176
            <arg value="evalid -g epoc32/winscw output/md5/epoc32_winscw.md5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   177
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   178
        </parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   179
        
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   180
        <!-- package MD5s directly into epoc32/relinfo location so that its usable out-of-the-box -->
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   181
        <property name="temp.md5.zip" value="${env.TEMP}/MD5_${sf.spec.job.name}_${build.number}.zip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   182
        <echo message="INFO Packaging MD5s"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   183
        <zip destfile="${temp.md5.zip}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   184
            <zipfileset dir="${build.drive}/output/md5/" prefix="epoc32/relinfo"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   185
        </zip>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   186
        <move file="${temp.md5.zip}" todir="${build.log.dir}" failonerror="false"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   187
    </target>    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   188
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   189
    <target name="sf-package-binary" depends="sf-preprocess-package-config,sf-package-postbuild-rnd">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   190
        <!-- Warning: Reverting to using the He zipper will also revert to a single zip for the binaries:
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   191
             would need to update the template and possibly the script that populates it -->
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   192
        <!--antcall target="sf-zip-content">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   193
            <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   194
            <param name="zip.target.name" value="bin" />
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   195
        </antcall-->
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   196
        <parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   197
            <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   198
                <arg value="a"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   199
                <arg value="-tzip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   200
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   201
                <arg value="-x!epoc32\tools"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   202
                <arg value="-x!epoc32\build"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   203
                <arg value="-x!epoc32\release\armv5"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   204
                <arg value="-x!epoc32\release\winscw"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   205
                <arg value="-xr!*.sym"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   206
                <arg value="${build.drive}/output/zips/release/binaries_epoc.zip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   207
                <arg value="epoc32\"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   208
            </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   209
            
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   210
            <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_winscw.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   211
                <arg value="a"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   212
                <arg value="-tzip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   213
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   214
                <arg value="-xr!*.sym"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   215
                <arg value="${build.drive}/output/zips/release/binaries_winscw.zip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   216
                <arg value="epoc32\release\winscw\"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   217
            </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   218
            
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   219
            <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_armv5.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   220
                <arg value="a"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   221
                <arg value="-tzip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   222
                <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   223
                <arg value="-xr!*.sym"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   224
                <arg value="${build.drive}/output/zips/release/binaries_armv5.zip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   225
                <arg value="epoc32\release\armv5\"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   226
            </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   227
        </parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   228
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   229
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   230
    <target name="sf-package-postbuild-rnd" depends="sf-preprocess-package-config">
456
1ba3c86ebec0 Bug 350 RnD binary zips missing all content outside epoc32 tree
Simon Howkins <simonh@symbian.org>
parents: 386
diff changeset
   231
        <antcall target="sf-zip-content">
1ba3c86ebec0 Bug 350 RnD binary zips missing all content outside epoc32 tree
Simon Howkins <simonh@symbian.org>
parents: 386
diff changeset
   232
            <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
1ba3c86ebec0 Bug 350 RnD binary zips missing all content outside epoc32 tree
Simon Howkins <simonh@symbian.org>
parents: 386
diff changeset
   233
            <param name="zip.target.name" value="rnd-postbuild" />
1ba3c86ebec0 Bug 350 RnD binary zips missing all content outside epoc32 tree
Simon Howkins <simonh@symbian.org>
parents: 386
diff changeset
   234
        </antcall>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   235
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   236
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   237
    <target name="sf-package-tools" depends="sf-preprocess-package-config">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   238
        <echo message="Packaging epoc32 tools - Temporary method"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   239
        <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_tools_epoc32.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   240
            <arg value="a"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   241
            <arg value="-tzip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   242
            <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   243
            <arg value="${build.drive}/output/zips/release/tools_epoc.zip"/> 
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   244
            <arg value="epoc32/tools"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   245
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   246
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   247
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   248
    <target name="sf-package-validate">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   249
        <exec executable="7z" dir="${build.drive}/output/zips" failonerror="false" output="${build.drive}/output/zips/validate.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   250
            <arg value="t"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   251
            <arg value="*.zip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   252
        </exec>  
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   253
        <exec executable="7z" dir="${build.drive}/output/zips/release" failonerror="false" output="${build.drive}/output/zips/release/validate.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   254
            <arg value="t"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   255
            <arg value="*.zip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   256
        </exec>  
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   257
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   258
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   259
    <!-- runs analysis of missing bins and source -->
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   260
    <target name="sf-run-analysis">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   261
        <mkdir dir="${build.log.dir}/analysis"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   262
        <parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   263
          <runtarget target="sf-run-analysis-ant"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   264
          <runtarget target="sf-run-analysis-raptor"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   265
          <runtarget target="sf-run-analysis-yarp"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   266
          <runtarget target="sf-run-analysis-whatlog-summary"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   267
        </parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   268
        <if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   269
          <istrue value="${sf.spec.publish.enable}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   270
            <then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   271
            <runtarget target="sf-run-analysis-diamonds"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   272
            </then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   273
        </if>    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   274
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   275
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   276
    <target name="sf-run-analysis-ant">    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   277
        <echo message="Running source analysis of ANT output"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   278
        <exec executable="perl" dir="${build.log.dir}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_scan_ant.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   279
            <arg value="${sf.common.config.dir}/tools/analysis/scan_antlogs.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   280
            <arg value="*ant*"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   281
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   282
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   283
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   284
    <target name="sf-run-analysis-raptor">            
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   285
      <echo message="Preprocessing *_compile.log files"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   286
      <for param="logfile">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   287
        <path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   288
          <fileset dir="${build.log.dir}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   289
            <include name="*_compile.log"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   290
            <exclude name="*build_check_compile.log"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   291
          </fileset>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   292
        </path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   293
        <sequential>
383
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   294
		  <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\/](.*)_compile\.log" replace="\1_compile_preprocessed.log"/>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   295
	      <echo message="Preprocessing @{logfile}..."/>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   296
          <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">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   297
            <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   298
          </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   299
        </sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   300
      </for>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   301
      
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   302
      <echo message="Extracting whatlog information from *whatlog*_compile_preprocessed.log files"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   303
      <for param="whatlogfile">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   304
        <path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   305
          <fileset dir="${build.log.dir}/analysis">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   306
            <include name="*whatlog*_compile_preprocessed.log"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   307
          </fileset>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   308
        </path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   309
        <sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   310
          <echo message="Extracting whatlog info from @{whatlogfile}..."/>
383
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   311
          <echo message="Exec: [${sf.common.config.dir}/tools/raptor] perl ${sf.common.config.dir}/tools/raptor/parse.pl --releaseable --log=@{whatlogfile} --basedir=${build.log.dir} --append"/>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   312
          <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   313
            <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   314
            <arg value="--releaseable"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   315
            <arg value="--log=@{whatlogfile}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   316
            <arg value="--basedir=${build.log.dir}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   317
            <arg value="--append"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   318
          </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   319
        </sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   320
      </for>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   321
      
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   322
      <echo message="Extracting error information from *_compile_preprocessed.log files"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   323
      <for param="raptorlogfile">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   324
        <path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   325
          <fileset dir="${build.log.dir}/analysis">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   326
            <include name="*_compile_preprocessed.log"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   327
          </fileset>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   328
        </path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   329
        <sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   330
          <echo message="Extracting error info from @{raptorlogfile}..."/>
383
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   331
          <propertyregex override="yes" property="raptorconfig" input="@{raptorlogfile}" regexp=".*[\\/].*__(.*)\.whatlog_(single|multiple)_thread.*" replace="\1" casesensitive="false" defaultValue="noconfig"/>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   332
          <echo message="Exec: [${sf.common.config.dir}/tools/raptor] perl ${sf.common.config.dir}/tools/raptor/parse.pl --error --warning --unreciped --recipe --config=${raptorconfig} --log=@{raptorlogfile} --basedir=${build.log.dir}/raptorbits --append"/>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   333
          <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   334
            <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   335
            <arg value="--error"/>
365
Dario Sestito <darios@symbian.org>
parents: 361
diff changeset
   336
            <arg value="--warning"/>
383
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   337
            <arg value="--unreciped"/>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   338
            <arg value="--recipe"/>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   339
            <arg value="--config=${raptorconfig}"/>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   340
            <arg value="--log=@{raptorlogfile}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   341
            <arg value="--basedir=${build.log.dir}/raptorbits"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   342
            <arg value="--append"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   343
          </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   344
        </sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   345
      </for>
383
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   346
      
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   347
      <echo message="Exec: [${sf.common.config.dir}/tools/raptor] perl ${sf.common.config.dir}/tools/raptor/summarize.pl --raptorbitsdir=${build.log.dir}/raptorbits --outputdir=${build.log.dir}"/>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   348
      <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   349
        <arg value="${sf.common.config.dir}/tools/raptor/summarize.pl"/>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   350
        <arg value="--raptorbitsdir=${build.log.dir}/raptorbits"/>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   351
        <arg value="--outputdir=${build.log.dir}"/>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   352
      </exec>
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   353
          
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   354
      <!-- Now iterate through the generated TSVs to sort them and remove duplicates -->
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   355
      <for param="tsv">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   356
        <path>
371
fcb6057a8009 Adjusted matching for processing TSV files, so it will not fail even if the dir has not been created.
Simon Howkins <simonh@symbian.org>
parents: 365
diff changeset
   357
          <fileset dir="${build.log.dir}">
fcb6057a8009 Adjusted matching for processing TSV files, so it will not fail even if the dir has not been created.
Simon Howkins <simonh@symbian.org>
parents: 365
diff changeset
   358
            <include name="releaseables/**/*.tsv"/>
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   359
          </fileset>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   360
        </path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   361
        <sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   362
          <exec executable="perl" input="@{tsv}" output="@{tsv}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   363
            <arg value="${sf.common.config.dir}/tools/sortUnique.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   364
          </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   365
        </sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   366
      </for>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   367
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   368
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   369
    <target name="sf-run-analysis-yarp">          
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   370
      <echo message="Running yarp over *_compile.log files"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   371
      <for param="logfile">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   372
        <path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   373
          <fileset dir="${build.log.dir}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   374
            <include name="*_compile.log"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   375
            <exclude name="*build_check_compile.log"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   376
          </fileset>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   377
        </path>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   378
        <sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   379
          <propertyregex override="yes" property="yarpfile"  input="@{logfile}" regexp=".*[\\|\/](.*)_compile\.log" replace="\1_yarp.csv"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   380
          <propertyregex override="yes" property="yarpfile_short"  input="${yarpfile}" regexp="[^_]*_[^_]*_[^_]*_(.+)_[^_]*_yarp\.csv" replace="YARP_\1"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   381
          <echo message="Yarping @{logfile}..."/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   382
          <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${yarpfile}.log" append="true">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   383
            <arg value="${sf.common.config.dir}/tools/analysis/yarp.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   384
            <arg value="@{logfile}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   385
            <arg value="${build.log.dir}/analysis/${yarpfile}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   386
          </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   387
          <exec executable="cmd" output="${build.drive}/output/logs/analysis/tmp_yarp_files.csv" append="true">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   388
            <arg value="/c"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   389
            <arg value="echo"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   390
            <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}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   391
          </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   392
        </sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   393
      </for>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   394
      
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   395
      <exec executable="perl" dir="${build.drive}" failonerror="false" outputproperty="sf.job.totalyarperrors">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   396
        <arg value="${sf.common.config.dir}/tools/analysis/parse_yarp_files.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   397
        <arg value="${build.drive}/output/logs/analysis/tmp_yarp_files.csv"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   398
      </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   399
      <echo message="Total yarp errors: ${sf.job.totalyarperrors}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   400
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   401
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   402
    <target name="sf-run-analysis-whatlog-summary" >
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   403
        <sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   404
          <parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   405
            <runtarget target="sf-run-analysis-list"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   406
            <runtarget target="sf-run-analysis-whatlog"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   407
          </parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   408
          <runtarget target="sf-run-analysis-whatlog-merge" />
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   409
          <parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   410
            <runtarget target="sf-run-analysis-whatlog-package"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   411
            <runtarget target="sf-run-analysis-whatlog-collisons"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   412
          </parallel>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   413
        </sequential>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   414
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   415
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   416
    <target name="sf-run-analysis-list">    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   417
        <echo message="Running list analysis"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   418
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_list_results.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   419
            <arg value="${sf.common.config.dir}/tools/analysis/parselistdirs.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   420
            <arg value="..\"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   421
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   422
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   423
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   424
    <target name="sf-run-analysis-whatlog">    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   425
        <echo message="Running whatlog analysis"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   426
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_what_results.csv">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   427
            <arg value="${sf.common.config.dir}/tools/analysis/parsewhatlog.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   428
            <arg value="..\"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   429
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   430
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   431
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   432
    <target name="sf-run-analysis-whatlog-merge" >        
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   433
        <echo message="Running summary analysis"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   434
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   435
            <arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   436
            <arg value="${build.id}_what_results.csv"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   437
            <arg value="${build.id}_list_results.log"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   438
            <arg value="${build.drive}/output/zips/release/binaries_epoc_additional.zip"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   439
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   440
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   441
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   442
    <target name="sf-run-analysis-whatlog-package" >        
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   443
        <exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_analysecomponents.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   444
            <arg value="${sf.common.config.dir}/tools/analysis/analyse_components.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   445
            <arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   446
            <arg value="${build.id}_what_results.csv_results.csv"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   447
            <arg value="${sf.project.location}/sysdefs/system_model_os.xml"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   448
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   449
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   450
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   451
    <target name="sf-run-analysis-whatlog-collisons" >        
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   452
        <echo message="Running collision analysis"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   453
        <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   454
            <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   455
            <arg value="${build.log.dir}/analysis/${build.id}_what_results.csv"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   456
        </exec>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   457
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   458
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   459
    <target name="sf-run-analysis-diamonds">      
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   460
      <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-run-analysis.xml.ftl" outputFile="${build.drive}/output/logs/sf-run-analysis.xml">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   461
        <data expandProperties="yes">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   462
          ant: antProperties()
383
52675b624b66 Add raptor build html summary computation
Dario Sestito <darios@symbian.org>
parents: 373
diff changeset
   463
          raptor_summary: csv(${build.log.dir}/raptorbits/summary.csv,{separator:',',headers:[category,subcategory,severity,config,component,phase,recipe,file,line]})
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   464
          files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]})
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   465
        </data>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   466
      </fmpp>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents: 373
diff changeset
   467
    </target>    
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   468
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   469
    <!-- package all logs into zipfile before publish -->
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   470
    <target name="sf-zip-logs">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   471
        <if>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   472
            <istrue value="${sf.spec.logs.zip.enable}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   473
            <then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   474
                <property name="temp.log.dir" value="${env.TEMP}/${build.id}_output_logs"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   475
                <echo message="Zip log requested, zipping logs..."/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   476
                <mkdir dir="${temp.log.dir}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   477
                <zip destfile="${temp.log.dir}/build_logs.zip" basedir="${build.drive}"> 
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   478
                    <include name="output/logs/**"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   479
                    <exclude name="output/logs/BOM/**"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   480
                    <exclude name="output/logs/deliverables/**"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   481
                    <exclude name="output/logs/releaseables/**"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   482
                </zip>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   483
                <zip destfile="${temp.log.dir}/build_BOM.zip">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   484
                    <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   485
                    <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   486
                </zip>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   487
                <move todir="${build.log.dir}">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   488
                    <fileset dir="${temp.log.dir}"/>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   489
                </move>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   490
            </then>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   491
        </if>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents: 373
diff changeset
   492
    </target>    
361
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   493
    
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   494
    <target name="sf-publish" depends="prep-publish">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   495
        <copy todir="${publish.dir}" preservelastmodified="true" failonerror="false">
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   496
           <fileset dir="${build.log.dir}"><include name="*.zip"/></fileset>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   497
        </copy>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   498
    </target>
023e28d6bf31 Moved all targets specific to the postbuild phase of the build into the postbuild ant file.
Simon Howkins <simonh@symbian.org>
parents: 360
diff changeset
   499
360
38e924ed959d Created framework for separating postbuild related activities into a separate file.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   500
</project>