common/build.xml
changeset 860 fbd25e274e6b
parent 858 f9fc2a3f8f70
child 861 caa0601f50c5
equal deleted inserted replaced
859:206902c43bdb 860:fbd25e274e6b
    87         <else>
    87         <else>
    88             <property name="sf.spec.sourcesync.sourcespecdir" value="${sf.project.location}"/>
    88             <property name="sf.spec.sourcesync.sourcespecdir" value="${sf.project.location}"/>
    89         </else>
    89         </else>
    90     </if>
    90     </if>
    91     
    91     
    92     <!-- conditional import of generated source spec if available -->
       
    93     <if><available  file="${temp.build.dir}/source-spec.ant.xml" />
       
    94         <then>
       
    95             <echo message="Generated source spec found, importing..." />
       
    96             <import file="${temp.build.dir}/source-spec.ant.xml"/>
       
    97         </then>
       
    98     </if>
       
    99     
       
   100     <target name="sf-prep" depends="prep-drive,init-build-area,check-tool-dependencies,create-bom,log-build-env">
    92     <target name="sf-prep" depends="prep-drive,init-build-area,check-tool-dependencies,create-bom,log-build-env">
   101         <echo>[SF-PREP]</echo>
    93         <echo>[SF-PREP]</echo>
   102         <!-- Test for the disk space we would like for this build -->
    94         <!-- Test for the disk space we would like for this build -->
   103 	<fail>
    95 	<fail>
   104             <condition>
    96             <condition>
   174         <echo>[SF-BUILD-AND-PACK]</echo>
   166         <echo>[SF-BUILD-AND-PACK]</echo>
   175     </target>
   167     </target>
   176 
   168 
   177     <target name="sf-build" depends="sf-prebuild,sf-build-noprep,sf-postbuild">
   169     <target name="sf-build" depends="sf-prebuild,sf-build-noprep,sf-postbuild">
   178         <echo>[SF-BUILD]</echo>
   170         <echo>[SF-BUILD]</echo>
       
   171     </target>
       
   172     
       
   173     <target name="sf-scrub-build" description="Cleans up everything left behind after a build. Danger!">
       
   174         <if>
       
   175             <available file="${sf.spec.job.drive}/"/>
       
   176             <then>
       
   177                 <!-- Un-subst the drive -->
       
   178                 <hlm:unsubst drive="${sf.spec.job.drive}"/>
       
   179             </then>
       
   180         </if>
       
   181         <!-- Delete build directory -->
       
   182         <delete dir="${prep.build.dir}"/>
   179     </target>
   183     </target>
   180     
   184     
   181     <target name="sf-generate-source-spec">
   185     <target name="sf-generate-source-spec">
   182         <!-- Generate the sources.csv if hg cache is activated -->
   186         <!-- Generate the sources.csv if hg cache is activated -->
   183         <if><istrue value="${sf.spec.sourcesync.usecache}"/>
   187         <if><istrue value="${sf.spec.sourcesync.usecache}"/>