common/build.xml
changeset 367 bed8f6bc974b
parent 366 cde2244c8ea6
child 369 13fa826ea048
equal deleted inserted replaced
366:cde2244c8ea6 367:bed8f6bc974b
    55         <then>
    55         <then>
    56             <echo message="Generated source spec found, importing..." />
    56             <echo message="Generated source spec found, importing..." />
    57             <import file="${sf.common.config.dir}/generated/source-spec.ant.xml"/>
    57             <import file="${sf.common.config.dir}/generated/source-spec.ant.xml"/>
    58         </then>
    58         </then>
    59     </if>
    59     </if>
    60      
       
    61     
    60     
    62     <target name="sf-prep" depends="prep-drive,init-build-area,sf-generate-source-spec,check-tool-dependencies,create-bom,log-build-env">
    61     <target name="sf-prep" depends="prep-drive,init-build-area,sf-generate-source-spec,check-tool-dependencies,create-bom,log-build-env">
    63         <echo>[SF-PREP]</echo>
    62         <echo>[SF-PREP]</echo>
       
    63         <!-- Test for the disk space we would like for this build -->
       
    64 	<fail>
       
    65             <condition>
       
    66                 <not>
       
    67                     <or>
       
    68                         <isset property="sf.suppress.drive.space.check"/>
       
    69                         <hasfreespace partition="${build.drive}" needed="${sf.drive.space.needed}"/>
       
    70                     </or>
       
    71                 </not>
       
    72             </condition>
       
    73 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.
       
    74         </fail>
       
    75 
    64         <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/>
    76         <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/>
    65 		<echo message="Checking build Environment"/>
    77         <echo message="Checking build Environment"/>
    66           <exec executable="perl" dir="${sf.common.config.dir}/tools" failonerror="true">
    78         <exec executable="perl" dir="${sf.common.config.dir}/tools" failonerror="true">
    67             <arg value="CheckBuildEnv.pl"/>
    79             <arg value="CheckBuildEnv.pl"/>
    68             <arg value="--xml=BuildEnv.xml"/>
    80             <arg value="--xml=BuildEnv.xml"/>
    69             <arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/>
    81             <arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/>
    70 			<arg value="--sbs='${sf.spec.sbs.config}'"/>
    82             <arg value="--sbs='${sf.spec.sbs.config}'"/>
    71 			<arg value="--tools='${sf.spec.sbs.tools.config}'"/>
    83             <arg value="--tools='${sf.spec.sbs.tools.config}'"/>
    72 			<arg value="Common"/>
    84             <arg value="Common"/>
    73           </exec>
    85         </exec>
    74     </target>
    86     </target>
    75         
    87         
    76     <target name="sf-build-all" depends="sf-prebuild,sf-build-noprep,sf-postbuild">
    88     <target name="sf-build-all" depends="sf-prebuild,sf-build-noprep,sf-postbuild">
    77         <echo>[SF-BUILD-ALL]</echo>
    89         <echo>[SF-BUILD-ALL]</echo>
    78     </target>
    90     </target>