buildframework/helium/doc/src/manual/stage_source_preparation.rst.inc.ftl
author wbernard
Fri, 13 Aug 2010 14:59:05 +0300
changeset 628 7c4a911dc066
parent 588 c7c26511138f
child 645 b8d81fa19e7d
permissions -rw-r--r--
helium_11.0.0-e00f171ca185
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_source_preparation.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 - Source preparation
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
Stage: Source preparation
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
The build preparation consists in two parts:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
 * Getting delivery content (SCM, zips...),
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
 * Preparing the build area.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
To get SCM source you just have to run::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
  hlm prep-work-area
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
To create 'build of materials'::
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
  hlm create-bom
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    41
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
Synergy
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43
-------
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    44
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    45
In order for the synergy commands to be executed you must define the property ccm.enabled=true in one of the your config files or on the command line. e.g. 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
.. code-block:: xml
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
    <property name="ccm.enabled" value="true" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    50
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    51
It is possible to automatically get content from Synergy using the Helium framework.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    52
To handle that you have to configure the delivery.xml file from your family build configuration folder and reference by the property prep.delivery.file.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    53
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    54
Example configurations like a minibuild can be found under the Helium source tree.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
Example of configuration:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
.. code-block:: xml
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
    <build>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
        <config name="" abstract="true">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    62
            <set name="database" value="fa1f"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
            <set name="host" value="${r'$'}{ccm.engine.host}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    64
            <set name="dbpath" value="${r'$'}{ccm.database.path}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
            <set name="dir" value="Z:\some\location"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    67
            <set name="threads" value="4"/> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    68
            <set name="sync" value="true"/> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    69
            <set name="use.reconfigure.template" value="false"/> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    70
            <set name="release" value="${r'$'}{release.tag}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    71
            
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    72
            <config name="ppd_sw-PPD51.32_200810:project:sa1spp#1" type="checkout" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    73
               <set name="folders" value="jk1f#1820" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    74
            </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    75
            
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    76
            <config name="WLANSniffer2-2007_wk21:project:e002sa08#1" type="snapshot" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    77
            
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    78
            <config name="NSeries08_Themes-1:project:fa1f#1" type="checkout" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    79
               <set name="tasks" value="jk1f#1763" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    80
               <set name="skip.ci" value="true"/> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    81
            </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    82
            
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    83
            <config name="NSeries08_Themes-1:project:fa1f5133#2" type="checkout" >               
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    84
               <set name="skip.ci" value="false"/> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    85
               <set name="ci.custom.query" value="(release='MinibuildDomain/next')"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    86
            </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    87
            
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    88
            <config name="S60-S60.32_200810:project:sa1spp#1" type="checkout" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    89
               <set name="folders" value="jk1f#1983" />
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 name="ppd_sw-username:project:sa1spp#1" type="update"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    93
             
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    94
            <config name="cellmo" abstract="true">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    95
                <set name="dir" value="${r'$'}{ccm.base.dir}\cellmo" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    96
                <set name="threads" value="1" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    97
            
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    98
                <config name="cellmo_bins_rm235_PRODUCT-ncpp.ICPR71_08w24.2:project:tr1cmtsw#1" type="snapshot" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    99
                <config name="cellmo_bins_rm236_PRODUCT_chn-ncpp.ICPR71_08w24.2:project:tr1cmtsw#1" type="snapshot" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   100
                <config name="cellmo_bins_rm342_PRODUCT_lta-ncpp.ICPR71_08w24.2:project:tr1cmtsw#1" type="snapshot" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   101
            </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   102
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
        </config>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   104
    <build>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   105
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   106
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   107
Checkout: only need to define this when extra tasks are required on top of the listed project, otherwise use the snapshot type.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   108
    The following properties are required:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   109
        - release : synergy release to use.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   110
        - dir     : the location of your target snapshot.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   111
        - database: the name of the synergy database you want to use.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   112
    The following properties are optional:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   113
        - thread  : optional parameter, this define the number of process to run for parallel snapshots.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   114
        - purpose : Purpose to check out with.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   115
        - sync : Force a sync step after the work area update.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   116
        - version : the version to check out toward to.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   117
        - tasks : add additional tasks to the reconfigure properties.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   118
        - folders : add additional folders to the reconfigure properties.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   119
        - use.reconfigure.template: enable the usage of the reconfigure templates, this means the project will just be reconfigured, the reconfigure properties will not be modified.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   120
        - fix.missing.baselines: automatically detect new projects and check them out.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   121
        - replace.subprojects: boolean value to enable/disable project replacement during update (default: true).
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   122
        - skip.ci: boolean value to include/exclude the project from CC modificationset checking.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   123
        - ci.custom.query: Extend the synergy query for CC modificationset checking eg.(release='MinibuildDomain/next').
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   124
        - show.conflicts: boolean value to check for task conflicts.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   125
        - show.conflicts.objects: boolean value to check for object conflicts.
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   126
        - releasable: boolean value which defines if the project should be considered by the release-work-area target.
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   127
        - baseline.release: defines what release should be used while releasing the project and creating the baseline.
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   128
Snapshot: define type of the spec as snapshot and name as the baseline name.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   129
    The following properties are required:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   130
        - dir     : the location of your target snapshot.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   131
        - database: the name of the synergy database you want to use.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   132
    The following properties are optional:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   133
        - thread  : optional parameter, this define the number of process to run for parallel snapshots.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   134
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   135
Update: define type of the spec as update and name as the project to update.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   136
    The following properties are required:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   137
        - database: the name of the synergy database you want to use.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   138
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   139
Mercurial
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   140
---------
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   141
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   142
Add to ant configuration:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   143
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   144
.. code-block:: xml
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   145
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   146
    <target name="prep-work-area">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   147
        <hlm:scm scmUrl="scm:hg:C:/Build_C/master"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   148
            <hlm:checkout baseDir="${r'$'}{ccm.project.wa_path}/GraphicsDomain"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   149
            <hlm:changelog baseDir="${r'$'}{ccm.project.wa_path}/GraphicsDomain" xmlbom="${r'$'}{build.log.dir}/${r'$'}{build.id}_bom.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   150
        </hlm:scm>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   151
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   152
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   153
For more information see API_
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   154
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   155
.. _API: ../helium-antlib/api/doclet/index.SCM.html