buildframework/helium/helium.ant.xml
changeset 179 d8ac696cc51f
parent 1 be27ed110b50
child 217 0f5e3a7fb6af
child 593 4367a1b2db65
equal deleted inserted replaced
1:be27ed110b50 179:d8ac696cc51f
    22 -->
    22 -->
    23 <project name="helium" xmlns:hlm="http://www.nokia.com/helium">
    23 <project name="helium" xmlns:hlm="http://www.nokia.com/helium">
    24     <description>
    24     <description>
    25     Main full build targets and properties
    25     Main full build targets and properties
    26     </description>
    26     </description>
    27 
    27     
       
    28     <import file="build-jar.ant.xml"/>
       
    29     
    28     <!-- Check the Ant version is what we expect. -->
    30     <!-- Check the Ant version is what we expect. -->
    29     <property name="required.ant.version" value="1.7.0"/>
    31     <property name="required.ant.version" value="1.7.0"/>
    30     <fail message="Incorrect version of Ant found. Please check you have Ant ${required.ant.version}.">
    32     <fail message="Incorrect version of Ant found. Please check you have Ant ${required.ant.version}.">
    31         <condition>
    33         <condition>
    32             <and>
    34             <and>
    44 
    46 
    45     <!-- Libraries
    47     <!-- Libraries
    46     ======================================================================-->
    48     ======================================================================-->
    47     <import file="helium_preinclude.ant.xml"/>
    49     <import file="helium_preinclude.ant.xml"/>
    48     
    50     
    49     <property name="cache.dir" location="${env.TEMP}/helium/${env.USERNAME}"/>
       
    50     <property name="helium.build.dir" location="${helium.dir}/build"/>
    51     <property name="helium.build.dir" location="${helium.dir}/build"/>
    51     
    52     
    52     <hlm:typedef file="${helium.dir}/tools/common/common.antlib.xml" uri="http://www.nokia.com/helium"/> 
    53     <hlm:typedef file="${helium.dir}/tools/common/common.antlib.xml" uri="http://www.nokia.com/helium"/> 
    53     
    54     
    54     <property name="logging.output.file" location="${cache.dir}/logging.${env.PID}.conf" />
    55     <property name="logging.output.file" location="${cache.dir}/logging.${env.PID}.conf" />
   186         </else>
   187         </else>
   187     </if>
   188     </if>
   188     
   189     
   189     <property name="build.id" value="${build.name}_${build.version}"/>
   190     <property name="build.id" value="${build.name}_${build.version}"/>
   190     <property name="build.type" value="core"/>
   191     <property name="build.type" value="core"/>
   191     <property name="epocroot" value="\"/>
   192     <condition property="epocroot" value="${env.EPOCROOT}" else="${env.EPOCROOT}/">
       
   193         <matches pattern="^.*[\\/]$" string="${env.EPOCROOT}" />
       
   194     </condition>
   192     <property name="data.model.file" location="${helium.dir}/config/helium_data_model.xml"/>
   195     <property name="data.model.file" location="${helium.dir}/config/helium_data_model.xml"/>
   193     <property name="data.model.parsed" location="${helium.build.dir}/datamodel.out"/>
   196     <property name="data.model.parsed" location="${helium.build.dir}/datamodel.out"/>
   194     <condition property="data.model.xsl" value="${helium.dir}/extensions/nokia/config/helium_nokia_data_model.xsl" else="${helium.dir}/config/helium_data_model.xsl">
   197     <condition property="data.model.xsl" value="${helium.dir}/extensions/nokia/config/helium_nokia_data_model.xsl" else="${helium.dir}/config/helium_data_model.xsl">
   195         <available file="${helium.dir}/extensions/nokia/config/helium_nokia_data_model.xsl"/>
   198         <available file="${helium.dir}/extensions/nokia/config/helium_nokia_data_model.xsl"/>
   196     </condition>
   199     </condition>
   197     <property name="database.file" location="${helium.dir}/build/database.xml"/>
   200     <property name="database.file" location="${helium.build.dir}/database.xml"/>
   198     <property name="ccm.base.dir" location="${ccm.home.dir}\${minor.version}"/>
   201     <property name="ccm.base.dir" location="${ccm.home.dir}\${minor.version}"/>
   199     <property name="prep.build.dir" location="${prep.root.dir}/${build.id}"/>
   202     <property name="prep.build.dir" location="${prep.root.dir}/${build.id}"/>
   200     <property name="build.output.dir" location="${build.drive}/output"/>
   203     <property name="build.output.dir" location="${build.drive}/output"/>
       
   204     <property name="diamonds.build.output.dir" location="${build.output.dir}/diamonds"/>
   201     <property name="build.sisfiles.dir" location="${build.output.dir}/sisfiles"/>
   205     <property name="build.sisfiles.dir" location="${build.output.dir}/sisfiles"/>
   202     <property name="zips.build.dir" location="${build.output.dir}/build_area/engineering_english"/>
   206     <property name="zips.build.dir" location="${build.output.dir}/build_area/engineering_english"/>
   203     <property name="zips.loc.dir" location="${build.output.dir}/build_area/localised"/>
   207     <property name="zips.loc.dir" location="${build.output.dir}/build_area/localised"/>
   204     <property name="subcon.zips.dir" location="${build.output.dir}/build_area/subcon"/>
   208     <property name="subcon.zips.dir" location="${build.output.dir}/build_area/subcon"/>
   205     <property name="zips.flashfiles.dir" location="${build.output.dir}/zips_flashfiles"/>
   209     <property name="zips.flashfiles.dir" location="${build.output.dir}/zips_flashfiles"/>
   206     <property name="build.log.dir" location="${build.output.dir}/logs"/>
   210     <property name="build.log.dir" location="${build.output.dir}/logs"/>
       
   211     <property name="prep.log.dir" location="${build.log.dir}/prep"/>
       
   212     <property name="compile.log.dir" location="${build.log.dir}/compile"/>
       
   213     <property name="test.log.dir" location="${build.log.dir}/test"/>
       
   214     <property name="archive.log.dir" location="${build.log.dir}/archive"/>
       
   215     <property name="roms.log.dir" location="${build.log.dir}/roms"/>       
       
   216     <property name="post.log.dir" location="${build.log.dir}/post"/>
       
   217     <property name="localisation.log.dir" location="${build.log.dir}/localisation"/>    
   207     <property name="build.signal.status.dir" location="${build.log.dir}/signals"/>
   218     <property name="build.signal.status.dir" location="${build.log.dir}/signals"/>
   208     <property name="build.status.email.template" location="${helium.dir}/tools/common/templates/log/email_status.html.ftl" />
   219     <property name="build.status.email.template" location="${helium.dir}/tools/common/templates/log/email_status.html.ftl" />
   209     <property name="metadata.dbfile" location="${build.log.dir}/${build.id}_metadata.sqlite"/>
   220     <property name="metadata.dbfile" location="${build.log.dir}/${build.id}_metadata.sqlite"/>
   210     <property name="temp.build.dir" location="${build.output.dir}/temp_build_files"/>
   221     <property name="temp.build.dir" location="${build.output.dir}/temp_build_files"/>
   211     <property name="failonerror" value="false"/>
   222     <property name="failonerror" value="false"/>
   230         <isset property="publish"/>
   241         <isset property="publish"/>
   231     </condition>
   242     </condition>
   232     
   243     
   233     <property name="release.images.dir" value="${build.output.dir}/release_flash_images"/>
   244     <property name="release.images.dir" value="${build.output.dir}/release_flash_images"/>
   234     <property name="binary.root" value="${build.drive}/epoc32/release/armv5/urel" />
   245     <property name="binary.root" value="${build.drive}/epoc32/release/armv5/urel" />
   235     <property name="python.dir" value="${helium.dir}/external/python/lib/2.5"/>
   246     <property name="python.dir" value="${helium.dir}/external/python/lib"/>
   236     <property name="python.tools" value="${helium.dir}/external/python/bin"/>
   247     <property name="python.tools" value="${helium.dir}/external/python/bin"/>
   237 
   248 
   238     <!-- EBS is selected as the default build system, but ec for Electric Cloud could be used. -->
   249     <!-- EBS is selected as the default build system, but ec for Electric Cloud could be used. -->
   239     <property name="build.system" value="ebs"/>
   250     <property name="build.system" value="ebs"/>
   240     <property name="genxml.output.file" location="${temp.build.dir}/${build.id}.${sysdef.configuration}.xml" />
   251     <property name="genxml.output.file" location="${temp.build.dir}/${build.id}.${sysdef.configuration}.xml" />
   242     <property name="build.system.${build.system}" value="Not used"/>
   253     <property name="build.system.${build.system}" value="Not used"/>
   243     <property name="build.summary.file" location="${build.log.dir}/summary/${build.id}_summary.log.xml"/>
   254     <property name="build.summary.file" location="${build.log.dir}/summary/${build.id}_summary.log.xml"/>
   244     <property name="error.summary.file" location="${build.log.dir}/summary/${build.id}_error_summary.log.xml"/>
   255     <property name="error.summary.file" location="${build.log.dir}/summary/${build.id}_error_summary.log.xml"/>
   245     <property name="build.logging.start.stage" value="check-env-prep"/>
   256     <property name="build.logging.start.stage" value="check-env-prep"/>
   246     <property name="build.logging.key.stages" value="prep,build-ebs-main,postbuild,flashfiles,java-certification-rom,zip-main,publish-generic,variants-core,variants-elaf,variants-china,variants-thai,variants-japan,variants,mobilecrash-prep,localise-tutorial-content,hdd-images,zip-flashfiles,zip-localisation,data-packaging-prep"/>
   257     <property name="build.logging.key.stages" value="prep,build-ebs-main,postbuild,flashfiles,java-certification-rom,zip-main,publish-generic,variants-core,variants-elaf,variants-china,variants-thai,variants-japan,variants,mobilecrash-prep,localise-tutorial-content,hdd-images,zip-flashfiles,zip-localisation,data-packaging-prep"/>
   247     <property name="build.log" value="${build.log.dir}/${build.id}_ant_build.log"/>
   258     <property name="build.log" value="${build.log.dir}/${build.id}_main.ant.log"/>
   248     <property name="overlays.log.file" location="${build.log.dir}/${build.id}_overlays.xml"/>
   259     <property name="overlays.log.file" location="${build.log.dir}/${build.id}_overlays.xml"/>
   249     <property name="diamonds.listener.configuration.file" location="${helium.dir}/config/diamonds_config.xml.ftl"/>
   260     <property name="diamonds.listener.configuration.file" location="${helium.dir}/config/diamonds_config.xml.ftl"/>
   250     <property name="antlib.import.module.path" location="${helium.dir}/tools/hlm-antlib-imports"/>
   261     <property name="antlib.import.module.path" location="${helium.dir}/tools/hlm-antlib-imports"/>
   251     
   262     
   252     <!-- Following are temporarily defined here until global tools available-->
   263     <!-- Following are temporarily defined here until global tools available-->
   265     <property name="zip.uda_roms.log.file" location="${build.log.dir}/${build.id}_uda_roms_zip.log" />
   276     <property name="zip.uda_roms.log.file" location="${build.log.dir}/${build.id}_uda_roms_zip.log" />
   266     <property name="rombuild.makefile.name" value="image_conf_helium.mk" />
   277     <property name="rombuild.makefile.name" value="image_conf_helium.mk" />
   267     <property name="loc.temp.dir" location="${temp.build.dir}/locfiles"/>
   278     <property name="loc.temp.dir" location="${temp.build.dir}/locfiles"/>
   268     <property name="loc.output.dir" location="${build.output.dir}/build_area/localised"/>
   279     <property name="loc.output.dir" location="${build.output.dir}/build_area/localised"/>
   269     <property name="loc.output.filename" location="${build.id}_locfiles.zip"/>
   280     <property name="loc.output.filename" location="${build.id}_locfiles.zip"/>
   270     
   281     <property name="exceptions.target" value="hlm-exception-handler"/>
   271     <property name="tools.ivy.config.file" location="${helium.dir}/config/ivy/tools_ivy_settings.xml" />
   282     <property name="tools.ivy.config.file" location="${helium.dir}/config/ivy/tools_ivy_settings.xml" />
   272     
   283     
   273     <property name="build.property.cache.file" location="${build.log.dir}/build_properties_cache.txt" />
   284     <property name="build.property.cache.file" location="${diamonds.build.output.dir}/build_properties_cache.txt" />
   274     <property name="ccmtask.python.script.file" location="${helium.dir}/tools/preparation/synergy/ccmtask.jep" />
   285     <property name="ccmtask.python.script.file" location="${helium.dir}/tools/preparation/synergy/ccmtask.jep" />
       
   286     <property name="ant.loglevel" value="verbose"/>
   275 
   287 
   276     <if>
   288     <if>
   277         <available file="${build.property.cache.file}"/>
   289         <available file="${build.property.cache.file}"/>
   278         <then>
   290         <then>
   279             <property file="${build.property.cache.file}"/>
   291             <property file="${build.property.cache.file}"/>
   280         </then>
   292         </then>
   281     </if>
   293     </if>
   282 
   294 
   283     
   295 
       
   296 
   284 
   297 
   285     <!-- Default number of threads is 2 * NUMBER_OF_PROCESSORS, but this can be overridden by defining the
   298     <!-- Default number of threads is 2 * NUMBER_OF_PROCESSORS, but this can be overridden by defining the
   286     property manually. -->
   299     property manually. -->
   287     <if>
   300     <if>
   288         <not>
   301         <not>
   325     <import file="tools/startup/antserver/remote.ant.xml" />
   338     <import file="tools/startup/antserver/remote.ant.xml" />
   326     <import file="tools/testing/testing.ant.xml" />
   339     <import file="tools/testing/testing.ant.xml" />
   327     <import file="tools/startup/bootstrap/bootstrap.ant.xml"/>
   340     <import file="tools/startup/bootstrap/bootstrap.ant.xml"/>
   328     <import file="tools/iad/iad.ant.xml"/>
   341     <import file="tools/iad/iad.ant.xml"/>
   329     <import file="config/signaling_config_default.ant.xml"/>
   342     <import file="config/signaling_config_default.ant.xml"/>
       
   343     <import file="config/stages_config_default.ant.xml"/>
   330     <import file="config/metadata_filter_config_default.ant.xml"/>
   344     <import file="config/metadata_filter_config_default.ant.xml"/>
   331 
   345 
   332     <!-- Checking required properties from datamodel if "validate.properties.at.startup=yes" 
   346     <!-- Checking required properties from datamodel if "validate.properties.at.startup=yes" 
   333         
   347         
   334     Comment this out until it is done more correctly.-->
   348     Comment this out until it is done more correctly.-->