common/build.xml
changeset 389 ea20e8722576
parent 381 ad45f298ad85
child 390 3df26b840cc9
equal deleted inserted replaced
388:2ab990de5a23 389:ea20e8722576
    25     <property name="diamonds.port" value="${sf.spec.publish.diamonds.port}"/>
    25     <property name="diamonds.port" value="${sf.spec.publish.diamonds.port}"/>
    26     <property name="diamonds.path" value="${sf.spec.publish.diamonds.path}"/>
    26     <property name="diamonds.path" value="${sf.spec.publish.diamonds.path}"/>
    27     <property name="build.system" value="${sf.spec.build.system}"/>
    27     <property name="build.system" value="${sf.spec.build.system}"/>
    28     <property name="base_release.path" value="${sf.spec.baseline.location}"/>
    28     <property name="base_release.path" value="${sf.spec.baseline.location}"/>
    29     <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
    29     <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
       
    30     <property name="ccm.user.password" value="set_to_any_value_to_skip_scm_checks__for_helium_5"/>
       
    31     
    30     <if>
    32     <if>
    31       <isset property="sf.spec.sbs.numberofjobs"/>
    33       <isset property="sf.spec.sbs.numberofjobs"/>
    32       <then>
    34       <then>
    33         <property name="number.of.threads" value="${sf.spec.sbs.numberofjobs}"/>
    35         <property name="number.of.threads" value="${sf.spec.sbs.numberofjobs}"/>
    34       </then>
    36       </then>
    56         </then>
    58         </then>
    57         <else>
    59         <else>
    58             <property name="sf.spec.sourcesync.sourcespecdir" value="${sf.project.location}"/>
    60             <property name="sf.spec.sourcesync.sourcespecdir" value="${sf.project.location}"/>
    59         </else>
    61         </else>
    60     </if>
    62     </if>
    61 
    63     
    62     <!-- conditional import of generated source spec if available -->
    64     <!-- conditional import of generated source spec if available -->
    63     <if><available  file="${sf.common.config.dir}/generated/source-spec.ant.xml" />
    65     <if><available  file="${sf.common.config.dir}/generated/source-spec.ant.xml" />
    64         <then>
    66         <then>
    65             <echo message="Generated source spec found, importing..." />
    67             <echo message="Generated source spec found, importing..." />
    66             <import file="${sf.common.config.dir}/generated/source-spec.ant.xml"/>
    68             <import file="${sf.common.config.dir}/generated/source-spec.ant.xml"/>
    81             </condition>
    83             </condition>
    82 Insufficient space to run this build to completion. (Was looking for ${sf.drive.space.needed}.) To suppress this check, set the property sf.suppress.drive.space.check to any value.
    84 Insufficient space to run this build to completion. (Was looking for ${sf.drive.space.needed}.) To suppress this check, set the property sf.suppress.drive.space.check to any value.
    83         </fail>
    85         </fail>
    84 
    86 
    85         <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/>
    87         <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/>
    86         <echo message="Checking build Environment"/>
    88 
       
    89         <if>          
       
    90             <not><isset property="sf.suppress.buildenv.check"/></not>
       
    91             <then>
       
    92                 <echo message="Checking build Environment. To suppress this check set property sf.suppress.buildenv.check to any value"/>
       
    93                 <runtarget target="sf-check-env"/>
       
    94             </then>
       
    95         </if>
       
    96         
       
    97     </target>
       
    98         
       
    99     <target name="sf-check-env">
       
   100 
       
   101         <!-- Conditional location of BuildEnv.xml. Project always preferred to default -->
       
   102         <if><available file="${sf.project.location}/BuildEnv.xml"/>        
       
   103             <then>
       
   104                 <property name="sf.buildenv.location" value="${sf.project.location}"/>
       
   105             </then>
       
   106             <else>
       
   107                 <property name="sf.buildenv.location" value="${sf.common.config.dir}/tools"/>
       
   108             </else>
       
   109         </if>
       
   110         
       
   111         <echo message="Build Env against ${sf.buildenv.location}/BuildEnv.xml"/>
    87         <exec executable="perl" dir="${sf.common.config.dir}/tools" failonerror="true">
   112         <exec executable="perl" dir="${sf.common.config.dir}/tools" failonerror="true">
    88             <arg value="CheckBuildEnv.pl"/>
   113             <arg value="CheckBuildEnv.pl"/>
    89             <arg value="--xml=BuildEnv.xml"/>
   114             <arg value="--xml=${sf.buildenv.location}/BuildEnv.xml"/>
    90             <arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/>
   115             <arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/>
    91             <arg value="--sbs='${sf.spec.sbs.config}'"/>
   116             <arg value="--sbs='${sf.spec.sbs.config}'"/>
    92             <arg value="--tools='${sf.spec.sbs.tools.config}'"/>
   117             <arg value="--tools='${sf.spec.sbs.tools.config}'"/>
    93             <arg value="Common"/>
   118             <arg value="Common"/>
    94         </exec>
   119         </exec>
    95     </target>
   120     </target>
    96         
   121     
    97     <target name="sf-build-all" depends="sf-prebuild,sf-build-noprep,sf-postbuild">
   122     <target name="sf-build-all" depends="sf-prebuild,sf-build-noprep,sf-postbuild">
    98         <echo>[SF-BUILD-ALL]</echo>
   123         <echo>[SF-BUILD-ALL]</echo>
    99     </target>
   124     </target>
   100     
   125     
   101     <target name="sf-summary" depends="">
   126     <target name="sf-summary" depends="">