common/build.xml
changeset 858 f9fc2a3f8f70
parent 857 c72c6eafadc6
child 860 fbd25e274e6b
equal deleted inserted replaced
857:c72c6eafadc6 858:f9fc2a3f8f70
    16             <!-- Default string is arranged to use z: for executor 0, y: for executor 1, etc, etc. At present, SF build machines have a maximum of 4 executors -->
    16             <!-- Default string is arranged to use z: for executor 0, y: for executor 1, etc, etc. At present, SF build machines have a maximum of 4 executors -->
    17             <propertyregex property="sf.spec.job.drive" input="${sf.hudson.executor.drive.letter.mapping}" regexp="\w{${sf.hudson.executor.number}}(\w)" select="\1:"/>
    17             <propertyregex property="sf.spec.job.drive" input="${sf.hudson.executor.drive.letter.mapping}" regexp="\w{${sf.hudson.executor.number}}(\w)" select="\1:"/>
    18         </then>
    18         </then>
    19     </if>
    19     </if>
    20     
    20     
       
    21     <!-- If we've not has a physical drive specified, then we'd better be able to work one out... -->
       
    22     <if>
       
    23         <not><isset property="sf.spec.job.root.drive"/></not>
       
    24         <then>
       
    25             <exec executable="perl" outputproperty="sf.spec.job.root.drive" logerror="true" failonerror="true">
       
    26                 <arg value="${sf.common.config.dir}/tools/findPhysicalDrive.pl"/>
       
    27             </exec>
       
    28         </then>
       
    29     </if>
       
    30     
    21     <!-- Import common properties -->
    31     <!-- Import common properties -->
    22     <import file="${sf.common.config.dir}/common_props.ant.xml" />
    32     <import file="${sf.common.config.dir}/common_props.ant.xml" />
       
    33 
       
    34     <property name="sf.spec.job.rootdir" value="${sf.spec.job.root.drive}/${sf.spec.job.root.path}"/>
    23     
    35     
    24     <!-- setup Helium internal properties from their equivalent in the project spec -->
    36     <!-- setup Helium internal properties from their equivalent in the project spec -->
    25     <property name="build.name" value="${sf.spec.job.name}"/>
    37     <property name="build.name" value="${sf.spec.job.name}"/>
    26     <property name="core.build.version" value="${sf.spec.job.codeline}"/>
    38     <property name="core.build.version" value="${sf.spec.job.codeline}"/>
    27     <property name="build.number" value="${sf.spec.job.number}"/>
    39     <property name="build.number" value="${sf.spec.job.number}"/>