common/build.xml
changeset 369 13fa826ea048
parent 368 cb0ec85c881d
parent 367 bed8f6bc974b
child 377 598bc53daddb
equal deleted inserted replaced
368:cb0ec85c881d 369:13fa826ea048
    61         <then>
    61         <then>
    62             <echo message="Generated source spec found, importing..." />
    62             <echo message="Generated source spec found, importing..." />
    63             <import file="${sf.common.config.dir}/generated/source-spec.ant.xml"/>
    63             <import file="${sf.common.config.dir}/generated/source-spec.ant.xml"/>
    64         </then>
    64         </then>
    65     </if>
    65     </if>
    66      
       
    67     
    66     
    68     <target name="sf-prep" depends="prep-drive,init-build-area,sf-generate-source-spec,check-tool-dependencies,create-bom,log-build-env">
    67     <target name="sf-prep" depends="prep-drive,init-build-area,sf-generate-source-spec,check-tool-dependencies,create-bom,log-build-env">
    69         <echo>[SF-PREP]</echo>
    68         <echo>[SF-PREP]</echo>
       
    69         <!-- Test for the disk space we would like for this build -->
       
    70 	<fail>
       
    71             <condition>
       
    72                 <not>
       
    73                     <or>
       
    74                         <isset property="sf.suppress.drive.space.check"/>
       
    75                         <hasfreespace partition="${build.drive}" needed="${sf.drive.space.needed}"/>
       
    76                     </or>
       
    77                 </not>
       
    78             </condition>
       
    79 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.
       
    80         </fail>
       
    81 
    70         <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/>
    82         <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/>
    71 		<echo message="Checking build Environment"/>
    83         <echo message="Checking build Environment"/>
    72           <exec executable="perl" dir="${sf.common.config.dir}/tools" failonerror="true">
    84         <exec executable="perl" dir="${sf.common.config.dir}/tools" failonerror="true">
    73             <arg value="CheckBuildEnv.pl"/>
    85             <arg value="CheckBuildEnv.pl"/>
    74             <arg value="--xml=BuildEnv.xml"/>
    86             <arg value="--xml=BuildEnv.xml"/>
    75             <arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/>
    87             <arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/>
    76 			<arg value="--sbs='${sf.spec.sbs.config}'"/>
    88             <arg value="--sbs='${sf.spec.sbs.config}'"/>
    77 			<arg value="--tools='${sf.spec.sbs.tools.config}'"/>
    89             <arg value="--tools='${sf.spec.sbs.tools.config}'"/>
    78 			<arg value="Common"/>
    90             <arg value="Common"/>
    79           </exec>
    91         </exec>
    80     </target>
    92     </target>
    81         
    93         
    82     <target name="sf-build-all" depends="sf-prebuild,sf-build-noprep,sf-postbuild">
    94     <target name="sf-build-all" depends="sf-prebuild,sf-build-noprep,sf-postbuild">
    83         <echo>[SF-BUILD-ALL]</echo>
    95         <echo>[SF-BUILD-ALL]</echo>
       
    96     </target>
       
    97     
       
    98     <target name="sf-summary" depends="">
       
    99         <echo>[SF-SUMMARY]</echo>
       
   100         <echo message="Generating build summary"/>
       
   101         <exec executable="perl" dir="${sf.common.config.dir}/tools/summary" failonerror="true">
       
   102           <arg value="brag_script.pl"/>
       
   103           <arg value="--buildid=${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
       
   104           <arg value="--basedir=${sf.spec.job.rootdir}"/>
       
   105         </exec>
    84     </target>
   106     </target>
    85     
   107     
    86     <target name="sf-build-and-pack" depends="sf-build-noprep,sf-postbuild">
   108     <target name="sf-build-and-pack" depends="sf-build-noprep,sf-postbuild">
    87         <echo>[SF-BUILD-AND-PACK]</echo>
   109         <echo>[SF-BUILD-AND-PACK]</echo>
    88     </target>
   110     </target>