buildframework/helium/helium.ant.xml
changeset 587 85df38eb4012
parent 217 0f5e3a7fb6af
child 588 c7c26511138f
equal deleted inserted replaced
217:0f5e3a7fb6af 587:85df38eb4012
    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     <property environment="env" />
    28     <import file="build-jar.ant.xml"/>
       
    29     
    28     
    30     <!-- Load the current Helium version. -->
    29     <!-- Load the current Helium version. -->
    31     <!-- @property helium.version
    30     <!--* @property helium.version
    32     @type string
    31     @type string
    33     @scope private
    32     @scope private
    34     -->
    33     -->
    35     <property file="${helium.dir}/config/version.txt"/>
    34     <property file="${helium.dir}/config/version.txt"/>
    36 
    35 
    76         </then>
    75         </then>
    77     </if>
    76     </if>
    78     
    77     
    79     <!-- If build.drive not define then search the next free drive -->
    78     <!-- If build.drive not define then search the next free drive -->
    80     <if>
    79     <if>
    81         <not>
    80         <and>
    82             <isset property="build.drive"/>
    81             <not>
    83         </not>    
    82                 <isset property="build.drive"/>
       
    83             </not>    
       
    84             <os family="windows"/>
       
    85         </and>
    84         <then>
    86         <then>
    85             <!-- used to track if build.drive has predefined or not
    87             <!-- used to track if build.drive has predefined or not
    86             @type flag
    88             @type flag
    87             @scope private
    89             @scope private
    88             -->
    90             -->
    98             </if>
   100             </if>
    99             <echo> Using build drive ${build.drive} </echo>
   101             <echo> Using build drive ${build.drive} </echo>
   100         </then>
   102         </then>
   101     </if>
   103     </if>
   102     
   104     
       
   105     <!-- For unix os prep.build.dir is equivalent to build.drive -->
       
   106     <condition property="prep.build.dir" value="${build.drive}">
       
   107         <and>
       
   108             <isset property="build.drive"/>
       
   109             <os family="unix"/>
       
   110         </and>
       
   111     </condition>
       
   112     
       
   113     
   103     <if>
   114     <if>
   104         <and>
   115         <and>
   105             <isset property="major.version"/>
   116             <isset property="major.version"/>
   106             <isset property="minor.version"/>
   117             <isset property="minor.version"/>
   107         </and>
   118         </and>
   117             -->
   128             -->
   118             <property name="core.build.version" value="${env.USERNAME}"/>
   129             <property name="core.build.version" value="${env.USERNAME}"/>
   119         </else>
   130         </else>
   120     </if>
   131     </if>
   121     
   132     
       
   133     <!--* @property read.build.int
       
   134     If defined, indicates that the build number should be read from an incrementing text file.
       
   135     @type string
       
   136     @scope public
       
   137     -->
       
   138     <!--* @property build.tag
       
   139     If defined, defines the prefix for the build number when it is read from an incrementing text file.
       
   140     @type string
       
   141     @scope public
       
   142     -->
   122     <if>
   143     <if>
   123         <and>
   144         <and>
   124             <isset property="read.build.int"/>
   145             <isset property="read.build.int"/>
   125             <not>
   146             <not>
   126                 <isset property="build.number"/>
   147                 <isset property="build.number"/>
   267     <property name="prep.build.dir" location="${prep.root.dir}/${build.id}"/>
   288     <property name="prep.build.dir" location="${prep.root.dir}/${build.id}"/>
   268     <!-- This is the directory where build output is placed.
   289     <!-- This is the directory where build output is placed.
   269     @type string
   290     @type string
   270     @scope private
   291     @scope private
   271     -->
   292     -->
       
   293     
       
   294     <!-- If build.drive not define then prep.buil.dir is the value for build.drive for unix os -->
       
   295     <condition property="build.drive" value="${prep.build.dir}">
       
   296         <and>
       
   297             <not>
       
   298                 <isset property="build.drive"/>
       
   299             </not>    
       
   300             <os family="unix"/>
       
   301         </and>
       
   302     </condition>
       
   303     
   272     <property name="build.output.dir" location="${build.drive}/output"/>
   304     <property name="build.output.dir" location="${build.drive}/output"/>
   273     <!-- This is where the diamonds output XML files are stored.
   305     <!-- This is where the diamonds output XML files are stored.
   274     @type string
   306     @type string
   275     @scope private
   307     @scope private
   276     -->
   308     -->
   325     <!-- Directory to store temporary files generated during the process.
   357     <!-- Directory to store temporary files generated during the process.
   326     @type string
   358     @type string
   327     @scope private
   359     @scope private
   328     -->
   360     -->
   329     <property name="temp.build.dir" location="${build.output.dir}/temp_build_files"/>
   361     <property name="temp.build.dir" location="${build.output.dir}/temp_build_files"/>
   330     <!-- failonerror attribute for exec
   362     <!-- The 'failonerror' attribute for exec tasks.
   331     @type boolean
   363     @type boolean
   332     @scope private
   364     @scope public
   333     -->
   365     -->
   334     <property name="failonerror" value="false"/>
   366     <property name="failonerror" value="false"/>
   335     <!-- Maximum allowable errors in a build.
   367     <!-- Maximum allowable errors in a build.
   336     @type number
   368     @type number
   337     -->
   369     -->
   530         <available file="${build.property.cache.file}"/>
   562         <available file="${build.property.cache.file}"/>
   531         <then>
   563         <then>
   532             <property file="${build.property.cache.file}"/>
   564             <property file="${build.property.cache.file}"/>
   533         </then>
   565         </then>
   534     </if>
   566     </if>
   535 
   567     
   536 
   568 
   537     <!-- Default number of threads is 2 * NUMBER_OF_PROCESSORS, but this can be overridden by defining the
   569     <!-- Default number of threads is 2 * NUMBER_OF_PROCESSORS, but this can be overridden by defining the
   538     property manually. -->
   570     property manually. -->
   539     <if>
   571     <if>
   540         <not>
   572         <not>
   569     @type string
   601     @type string
   570     @editable required
   602     @editable required
   571     @scope public
   603     @scope public
   572     -->
   604     -->
   573      
   605      
       
   606     <!--* @property diamonds.build.tags
       
   607     
       
   608     @type string
       
   609     @editable optional
       
   610     @scope public
       
   611     -->
   574 
   612 
   575     <!-- Import basic targets.
   613     <!-- Import basic targets.
   576         
   614         
   577     The intention would be to split the targets into separate files somewhat
   615     The intention would be to split the targets into separate files somewhat
   578     matching the build phases located inside \nbuild and import each one here.
   616     matching the build phases located inside \nbuild and import each one here.