buildframework/helium/tools/preparation/synergy/ccmgetinput.ant.xml
changeset 217 0f5e3a7fb6af
parent 179 d8ac696cc51f
child 587 85df38eb4012
equal deleted inserted replaced
181:59bb7c4d6172 217:0f5e3a7fb6af
    18 
    18 
    19 Description:
    19 Description:
    20 
    20 
    21 ============================================================================
    21 ============================================================================
    22 -->
    22 -->
       
    23 <!--* @package preparation -->
    23 <project name="ccmgetinput" xmlns:hlm="http://www.nokia.com/helium">
    24 <project name="ccmgetinput" xmlns:hlm="http://www.nokia.com/helium">
    24     <description>
    25     <description>
    25       Retrieves content from Synergy
    26       Retrieves content from Synergy
    26     </description>
    27     </description>
       
    28     
       
    29     <!--* @property ccm.home.dir
       
    30     Home directory of CCM operations.
       
    31     @type string
       
    32     @editable required
       
    33     @scope public
       
    34     -->
    27 
    35 
    28     <hlm:logfilterset id="prepWorkArea.logextract.config">
    36     <!--* @property ccm.database
    29         <logfilter category="error" regex="^ERROR:" />
    37     Name of the CCM database to use. No default value.
    30         <logfilter category="warning" regex="^WARNING:" />
    38     @type string
    31         <logfilter category="info" regex="^INFO:" />
    39     @editable required
    32     </hlm:logfilterset>
    40     @scope public
       
    41     -->
       
    42 
       
    43     <!--* @property ccm.engine.host
       
    44     Engine host of CCM database. No default value.
       
    45     @type string
       
    46     @editable required
       
    47     @scope public
       
    48     -->
       
    49     
       
    50     <!--* @property prep.delivery.file
       
    51     Defines configuration file used in synergy operations (ccm-get-input for example). This file contains definition of projects that are checkouted or snapshotted.
       
    52     @type string
       
    53     @editable required
       
    54     @scope public
       
    55     -->
       
    56     
       
    57     <hlm:recordfilterset id="prepWorkArea.logextract.config">
       
    58         <hlm:recordfilter category="error" regexp="^ERROR:" />
       
    59         <hlm:recordfilter category="warning" regexp="^WARNING:" />
       
    60         <hlm:recordfilter category="info" regexp="^INFO:" />
       
    61     </hlm:recordfilterset>
    33 
    62 
    34     
    63     
    35     <!-- This target uses an XML input file to retrieve content from Synergy.
    64     <!-- This target uses an XML input file to retrieve content from Synergy.
    36       -->
    65       -->
    37     <target name="prep-work-area" depends="log-build-start" if="run.ccm">
    66     <target name="prep-work-area" depends="log-build-start" if="run.ccm">
    56 
    85 
    57 builder = None           
    86 builder = None           
    58 try:
    87 try:
    59     configBuilder = configuration.NestedConfigurationBuilder(open(ant.get_property(r'${prep.delivery.conf.parsed}'), 'r'))
    88     configBuilder = configuration.NestedConfigurationBuilder(open(ant.get_property(r'${prep.delivery.conf.parsed}'), 'r'))
    60     configSet = configBuilder.getConfiguration()
    89     configSet = configBuilder.getConfiguration()
    61     builder = preparation.PreparationBuilder(configSet.getConfigurations(), ant.get_property(r'${ccm.user.login}'), ant.get_property(r'${ccm.user.password}'), cache=ant.get_property(r'${ccm.cache.xml}'))
    90     password = ant.get_property(r'${ccm.user.password}')
       
    91     builder = preparation.PreparationBuilder(configSet.getConfigurations(), ant.get_property(r'${ccm.user.login}'), password, cache=ant.get_property(r'${ccm.cache.xml}'))
    62     builder.check()
    92     builder.check()
    63     builder.get_content()
    93     builder.get_content()
    64     builder.close()
    94     builder.close()
    65 except Exception, e:
    95 except Exception, e:
    66     print "ERROR: error found during preparation phase:" 
    96     print "ERROR: error found during preparation phase:" 
    80                 <hlm:assertFileExists file="${build.cache.log.dir}/${build.id}_ccm_get_input.log" />
   110                 <hlm:assertFileExists file="${build.cache.log.dir}/${build.id}_ccm_get_input.log" />
    81             </finally>
   111             </finally>
    82         </trycatch>
   112         </trycatch>
    83     </target>
   113     </target>
    84 
   114 
    85     <!--
       
    86         This target uses an XML input file to retrieve content from Synergy.
       
    87         <deprecated>Please use prep-work-area</deprecated>
       
    88     -->
       
    89     <target name="ccm-get-input" depends="prep-work-area" />
       
    90 
       
    91 </project>
   115 </project>