buildframework/helium/doc/src/manual/stage_publishing.rst.inc.ftl
author wbernard
Sun, 10 Oct 2010 15:22:15 +0300
changeset 645 b8d81fa19e7d
parent 587 85df38eb4012
permissions -rw-r--r--
helium_12.0.0-63b64366f9cf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     1
<#--
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     2
============================================================================ 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     3
Name        : stage_publishing.rst.inc.ftl
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     4
Part of     : Helium 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     5
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     6
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     7
All rights reserved.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     8
This component and the accompanying materials are made available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     9
under the terms of the License "Eclipse Public License v1.0"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    10
which accompanies this distribution, and is available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    11
at the URL "http://www.eclipse.org/legal/epl-v10.html".
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    12
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    13
Initial Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    14
Nokia Corporation - initial contribution.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    15
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    16
Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    17
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    18
Description:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    19
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    20
============================================================================
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    21
-->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    22
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    23
.. index::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    24
  single: Stage - Publishing
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
Stage: Publishing
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    27
=================
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
.. index::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
  single: Uploading to Diamonds
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
Uploading build information to Diamonds
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
---------------------------------------
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
Diamonds is a utility tool that keeps track of build and release information. See the **Metrics** manual under section `Helium Configuration`_ for more info.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
645
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
    37
.. _Helium Configuration: metrics.html#helium-configuration
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
.. index::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    41
  single: Zipping Build area
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43
Zipping of the build area
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    44
-------------------------
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    45
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
The Engineering English build area is archived in the :hlm-t:`zip-ee` target. Zipping of the localised build area is done by :hlm-t:`zip-localised` target. These properties need to be set:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
:hlm-p:`zip.config.file`
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
    Location of the config file.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    50
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    51
:hlm-p:`zips.ee.spec.name`
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    52
    Spec name for ee zipping (e.g. "ee").
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    53
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    54
:hlm-p:`zips.localised.spec.name`
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
    Spec name for localised build area zipping (e.g. "localised").
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
The :hlm-p:`zip.config.file` property defines the path to a :ref:`common-configuration-format-label` file that defines the content of the zips created. It can consist of multiple configs, e.g.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
.. code-block:: xml
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
    <build>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    62
        <config name="ee" abstract="true">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
            <set name="max.uncompressed.size" value="2000000000"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    64
            <set name="max.files.per.archive" value="65000"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
            <set name="archive.tool" value="7za"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
            <set name="root.dir" value="${r'$'}{build.drive}\"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    67
            <set name="archives.dir" value="${r'$'}{build.output.dir}\build_area\engineering_english_test"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    68
            <set name="temp.build.dir" value="${r'$'}{temp.build.dir}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    69
            <config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    70
                <set name="name" value="${r'$'}{build.id}_dev_flashfiles"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    71
                <set name="include" value="output\development_flash_images\"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    72
                </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    73
                <config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    74
                    <set name="name" value="${r'$'}{build.id}_release_flashfiles"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    75
                    <set name="include" value="output\release_flash_images\"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    76
                </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    77
            </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    78
            <config name="localised" abstract="true">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    79
                <set name="max.uncompressed.size" value="2000000000"/> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    80
                <set name="max.files.per.archive" value="65000"/>    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    81
                <set name="archive.tool" value="7za"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    82
                <set name="root.dir" value="${r'$'}{build.drive}\"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    83
        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    84
                <set name="archives.dir" value="${r'$'}{build.output.dir}\build_area\localised"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    85
                <set name="temp.build.dir" value="${r'$'}{temp.build.dir}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    86
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    87
                <config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    88
                    <set name="name" value="${r'$'}{build.id}_dev_flashfiles_ee"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    89
                    <set name="include" value="output\development_flash_images\engineering_english\"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    90
                </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    91
                
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    92
                <config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    93
                    <set name="name" value="${r'$'}{build.id}_dev_flashfiles_localised"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    94
                    <set name="include" value="output\development_flash_images\localised\"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    95
                </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    96
            </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    97
        </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    98
      
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    99
        <config name="policy">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   100
            <config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   101
                <set name="name" value="${r'$'}{build.id}_dev_flashfiles"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   102
                <set name="include" value="output\development_flash_images\"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
                <set name="mapper" value="policy"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   104
                <set name="policy.internal.name" value="really_confidential_stuff"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   105
                <set name="policy.filenames" value="Distribution.Policy.S60"/>
645
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   106
                <set name="split.on.uncompressed.size.enabled" value="true"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   107
            </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   108
        </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   109
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   110
        <config name="policy.remover">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   111
            <config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   112
                <set name="name" value="${r'$'}{build.id}_s60_osext"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   113
                <set name="include" value="s60\osext\"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   114
                <set name="mapper" value="policy.remover"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   115
                <set name="policy.internal.name" value="really_confidential_stuff"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   116
                <set name="policy.filenames" value="Distribution.Policy.S60"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   117
                <set name="policy.root.dir" value="${r'$'}{root.dir}/s60"/>
645
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   118
                <set name="split.on.uncompressed.size.enabled" value="true"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   119
            </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   120
        </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   121
      
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   122
        <config name="scanner">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   123
            <config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   124
                <set name="name" value="${r'$'}{build.id}_dev_flashfiles"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   125
                <set name="scanners" value="abld.what"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   126
                <set name="abld.buildpath" value="path/to/component/group"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   127
                <set name="exclude" value="**/*.dll"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   128
                <set name="exclude.lst" value="${r'$'}{build.drive}/exclude.lst"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   129
            </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   130
        </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   131
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   132
    </build>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   133
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   134
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   135
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   136
.. csv-table:: Common property descriptions
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   137
   :header: "Property", "Description", "Values"   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   138
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   139
   "``temp.build.dir``", "Directory to store temporary files generated during the process.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   140
   "``name``", "The name of the zip file.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   141
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   142
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   143
.. csv-table:: File System scanner property descriptions (default)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   144
   :header: "Property", "Description", "Values"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   145
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   146
   "``include``", "Path to include files/directories in the zip. Follows the Ant fileset convention.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   147
   "``exclude``", "Path to exclude files/directories in the zip. Follows the Ant fileset convention.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   148
   "``exclude.lst``", "Location of a file containing an exclude list(one pattern per line).", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   149
   "``distribution.policy.s60``", "Defines that the included files will be filtered based on the value of the ``Distribution.Policy.S60`` files. The file found closest to the root will override those in subdirectories.", "The value found in the file, e.g. 0 or 1. This can be negated by putting a '!' in front."
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   150
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   151
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   152
.. csv-table:: Abld 'what' scanner property descriptions (abld.what)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   153
   :header: "Property", "Description", "Values"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   154
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   155
   "``exclude``", "Path to exclude files/directories in the zip. Follows the Ant fileset convention.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   156
   "``exclude.lst``", "Location of a file containing an exclude list(one pattern per line).", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   157
   "``abld.buildpath``", "The path to an bld.inf directory. The files built from this component will be included.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   158
   "``abld.type``", "For what platform should abld be run for.", "armv5"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   159
   "``abld.epocroot``", "To specify an EPOCROOT other than \\.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   160
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   161
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   162
.. csv-table:: Default Mappers property description (default)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   163
   :header: "Property", "Description", "Values"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   164
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   165
   "``name``", "The name of the zip file.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   166
   "``max.uncompressed.size``", "Maximum size in bytes of the content being included in each zip file. If the included content exceeds this, multiple zips will be created.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   167
   "``max.files.per.archive``", "Maximum number of files that can be included in an archive. If the total exceeds this, multiple zips will be created.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   168
   "``archive.tool``", "The command-line archiving tool. 7zip and zip are supported.", "7za, zip"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   169
   "``root.dir``", "The root directory of the content being zipped.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   170
   "``archives.dir``", "The directory where the zip files are saved to.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   171
   "``zip.root.dir``", "The root directory for the content inside the zip file.", "root.dir value"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   172
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   173
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   174
.. csv-table:: Policy Mappers property description (policy)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   175
   :header: "Property", "Description", "Values"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   176
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   177
   "``name``", "The name of the zip file.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   178
   "``policy.internal.name``", "Suffix of the archive that contains the confidential content.", "internal"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   179
   "``policy.filenames``", "Comma separated list of policy filename.", "Distribution.Policy.S60"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   180
   "``archive.tool``", "The command-line archiving tool. 7zip and zip are supported.", "7za, zip"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   181
   "``archives.dir``", "The directory where the zip files are saved to.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   182
   "``policy.csv``", "This property defines the location of the policy definition file.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   183
   "``policy.default.value``", "This property defines the policy value when policy file is missing or invalid (e.g. wrong format).", "9999"
645
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   184
   "``split.on.uncompressed.size.enabled``", "To enable/disable splitting the zip files depending on source file size.", "true/false"
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   185
   
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   186
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   187
The policy mapper enables the sorting of the content compare to its policy value. The mapper is looking for a policy file in the file to archive directory.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   188
If the distribution policy file is missing then the file will go to the ``policy.default.value`` archive. Else it tries to open the file which
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   189
MUST be ASCII encoded, and have its content matching the following expression: ``^\\d+\\s*$``.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   190
File not matching those specifications will be reported as invalid and the assiociated content will go to the ``policy.default.value`` archive.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   191
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   192
Archive filenames are generated the following way:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   193
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   194
Policy value is 0::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   195
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   196
   ${r'$'}{archive.dir}/${r'$'}{name}.zip
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   197
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   198
Policy value is different from 0::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   199
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   200
   ${r'$'}{archive.dir}/${r'$'}{name}_${r'$'}{policy.internal.name}_<policy_value>.zip
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   201
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   202
If the policy file is missing or its content is invalid ot the olicy value is not found in the ``${r'$'}{policy.csv}``::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   203
   
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   204
   ${r'$'}{archive.dir}/${r'$'}{name}_${r'$'}{policy.internal.name}_${r'$'}{policy.default.value}.zip
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   205
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   206
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   207
.. csv-table:: Policy Remover Mappers property description (policy)
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   208
   :header: "Property", "Description", "Values"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   209
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   210
   "``name``", "The name of the zip file.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   211
   "``policy.internal.name``", "Suffix of the archive that contains the confidential content.", "internal"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   212
   "``policy.filenames``", "Comma separated list of policy filename.", "Distribution.Policy.S60"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   213
   "``archive.tool``", "The command-line archiving tool. 7zip and zip are supported.", "7za, zip"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   214
   "``archives.dir``", "The directory where the zip files are saved to.", ""
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   215
   "``policy.root.dir``", "This property allows the user to restrict the root of policy scanning.", "root.dir value"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   216
   "``policy.default.value``", "This property defines the policy value when policy file is missing or invalid (e.g. wrong format).", "9999"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   217
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   218
The remover mapper in addition to policy mapper behaviour will remove the content not required for the build.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   219
The removal process is based on the policy.csv file information, content will be kept in the following cases:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   220
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   221
 * Included in build column is ``yes``    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   222
 * Included in build column is ``bin``    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   223
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   224
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   225
Two additionals removers have been introduced to support action from SFL and EPL column, you use the following
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   226
named mappers to use them:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   227
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   228
 * ``sfl.policy.remover`` based on the 4th column of the csv
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   229
 * ``epl.policy.remover`` based on the 5th column of the csv
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   230
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   231
They support the same set of configuration properties as the default ``policy.remover``.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   232
645
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   233
<#if !ant?keys?seq_contains("sf")>
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   234
.. include:: stage_metadata.rst.inc
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   235
</#if>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   236
 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   237
.. index::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   238
  single: Zipping SUBCON
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   239
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   240
Subcon zipping
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   241
--------------
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   242
645
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   243
Subcon zipping is also configured using the same XML format as :hlm-t:`zip-ee` and implemented in the :hlm-t:`zip-subcon` target. A ``zips.subcon.spec.name`` property must be defined but currently it is still a separate configuration file.
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   244
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   245
645
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   246
Stage: Blocks packaging
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   247
=======================
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   248
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   249
Refer to the `Blocks integration manual`_
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   250
b8d81fa19e7d helium_12.0.0-63b64366f9cf
wbernard
parents: 587
diff changeset
   251
.. _`Blocks intergration manual`: blocks.html