build.xml
changeset 1121 82b232da6082
parent 1113 488afbbbaebd
equal deleted inserted replaced
1120:794ddd7e666a 1121:82b232da6082
     5   
     5   
     6   <property name="sf.subproject.path" value=""/>
     6   <property name="sf.subproject.path" value=""/>
     7   <property name="sf.project.location" value="${sf.config.dir}/../build/config/${sf.subproject.path}"/>
     7   <property name="sf.project.location" value="${sf.config.dir}/../build/config/${sf.subproject.path}"/>
     8   <property name="sf.project.name" value="job"/>
     8   <property name="sf.project.name" value="job"/>
     9   
     9   
    10   <!-- import job properties -->
       
    11   <import file="${sf.project.location}/${sf.project.name}_props.ant.xml" optional="yes"/>
       
    12   
       
    13   <!-- Override Helium defaults to allow winscw builds without RVCT -->
    10   <!-- Override Helium defaults to allow winscw builds without RVCT -->
    14   <target name="check-env-arm-license"/>
    11   <target name="check-env-arm-license"/>
    15   <target name="get-arm-license"/>
    12   <target name="get-arm-license"/>
    16   <target name="set-arm-version"/>
    13   <target name="set-arm-version"/>
    17 
    14 
    18   <!-- import helium task definitions to allow usage of ant-contrib tasks -->
    15   <!-- import helium task definitions to allow usage of ant-contrib tasks -->
    19   <import file="${helium.dir}/helium_preinclude.ant.xml"/>
    16   <import file="${helium.dir}/helium_preinclude.ant.xml"/>
    20    
    17    
       
    18   <!-- import job properties -->
       
    19   <if><isfalse value="${sf.production.build}"/>
       
    20     <then>
       
    21       <if><available file="${sf.project.location}/public_override_props.ant.xml"/>
       
    22       <then>
       
    23           <echo message="INFO Using Public properties defined in ${sf.project.location}/public_override_props.ant.xml"/>
       
    24           <import file="${sf.project.location}/public_override_props.ant.xml" optional="yes"/>
       
    25       </then>
       
    26       </if>
       
    27     </then>
       
    28   </if>
       
    29   <import file="${sf.project.location}/${sf.project.name}_props.ant.xml" optional="yes"/>
       
    30   
    21   <!-- set sf.spec.job.name and sf.spec.job.codeline if they are not specified in the project's job_props.ant.xml -->
    31   <!-- set sf.spec.job.name and sf.spec.job.codeline if they are not specified in the project's job_props.ant.xml -->
    22   <propertyregex override="yes" property="jobname" input="${sf.subproject.path}" regexp=".*[\\/]([^\\^/]+)" replace="\1"/>
    32   <propertyregex override="yes" property="jobname" input="${sf.subproject.path}" regexp=".*[\\/]([^\\^/]+)" replace="\1"/>
    23   <property name="jobname" value="${sf.subproject.path}"/>
    33   <property name="jobname" value="${sf.subproject.path}"/>
    24   <propertyregex override="yes" property="codeline" input="${sf.subproject.path}" regexp="^([^\\^/]+)[\\/].*" replace="\1"/>
    34   <propertyregex override="yes" property="codeline" input="${sf.subproject.path}" regexp="^([^\\^/]+)[\\/].*" replace="\1"/>
    25   <property name="codeline" value="default"/>
    35   <property name="codeline" value="default"/>