common/build.xml
changeset 677 dd6b7decdca2
parent 658 dd5f923b7f91
child 679 7e493c0264f3
equal deleted inserted replaced
676:63fe736c83fb 677:dd6b7decdca2
    70             <echo message="Generated source spec found, importing..." />
    70             <echo message="Generated source spec found, importing..." />
    71             <import file="${sf.common.config.dir}/generated/source-spec.ant.xml"/>
    71             <import file="${sf.common.config.dir}/generated/source-spec.ant.xml"/>
    72         </then>
    72         </then>
    73     </if>
    73     </if>
    74     
    74     
    75     <target name="sf-prep" depends="prep-drive,init-build-area,sf-generate-source-spec,check-tool-dependencies,create-bom,log-build-env">
    75     <target name="sf-prep" depends="sf-clean-generated-directory,prep-drive,init-build-area,sf-generate-source-spec,check-tool-dependencies,create-bom,log-build-env">
    76         <echo>[SF-PREP]</echo>
    76         <echo>[SF-PREP]</echo>
    77         <!-- Test for the disk space we would like for this build -->
    77         <!-- Test for the disk space we would like for this build -->
    78 	<fail>
    78 	<fail>
    79             <condition>
    79             <condition>
    80                 <not>
    80                 <not>
   464             <param name="sf.brag.log" value="${build.log.dir}/zipconfig.log"/>
   464             <param name="sf.brag.log" value="${build.log.dir}/zipconfig.log"/>
   465             <param name="sf.brag.id" value="PreprocessPackageConfig"/>
   465             <param name="sf.brag.id" value="PreprocessPackageConfig"/>
   466         </antcall>
   466         </antcall>
   467     </target>
   467     </target>
   468     
   468     
   469     <target name="sf-zip-content" depends="preprocess-zip-config">
   469     <target name="sf-zip-content" >
   470         <property name="zip.${zip.target.name}.log.file" location="${build.log.dir}/${build.id}_${zip.target.name}_zip.log" />
   470         <if>
   471         <property name="zips.${zip.target.name}.spec.name" value="${zip.target.name}" />
   471           <and>
   472         <hlm:zipContentMacro type="${zip.target.name}" file="${zip.config.file}" />
   472             <equals arg1="${zip.config.file}" arg2="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   473     </target>
   473             <not><available file="${zip.config.file}"/></not>
   474     
   474           </and>  
   475     <target name="sf-package-source" depends="sf-preprocess-package-config">
   475           <then>
       
   476             <runtarget target="sf-preprocess-package-config"/>
       
   477           </then>  
       
   478         </if>
       
   479         <if><available file="${zip.config.file}"/>
       
   480           <then>
       
   481             <runtarget target="preprocess-zip-config" />
       
   482             <property name="zip.${zip.target.name}.log.file" location="${build.log.dir}/${build.id}_${zip.target.name}_zip.log" />
       
   483             <property name="zips.${zip.target.name}.spec.name" value="${zip.target.name}" />
       
   484             <hlm:zipContentMacro type="${zip.target.name}" file="${zip.config.file}" />
       
   485           </then>
       
   486           <else>
       
   487             <echo message="ERROR ${zip.config.file} not available for zipping!"/>
       
   488           </else>
       
   489         </if>
       
   490     </target>
       
   491     
       
   492     <target name="sf-package-source" >
   476         <!-- Firstly zip up rnd by package -->
   493         <!-- Firstly zip up rnd by package -->
   477         <antcall target="sf-zip-content">
   494         <antcall target="sf-zip-content">
   478             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   495             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   479             <param name="zip.target.name" value="rnd" />
   496             <param name="zip.target.name" value="rnd" />
   480         </antcall>
   497         </antcall>
   535             <arg value="${sf.brag.log}"/>
   552             <arg value="${sf.brag.log}"/>
   536         </exec>
   553         </exec>
   537         <!-- And copy the XSL so the output can be transformed by a browser -->
   554         <!-- And copy the XSL so the output can be transformed by a browser -->
   538         <copy file="${sf.common.config.dir}/tools/brag/brag.xsl" toDir="${build.log.dir}/summary/"/>
   555         <copy file="${sf.common.config.dir}/tools/brag/brag.xsl" toDir="${build.log.dir}/summary/"/>
   539     </target>
   556     </target>
       
   557     
       
   558     <target name="sf-clean-generated-directory">
       
   559       <delete dir="${sf.common.config.dir}/generated" failonerror="false" />
       
   560       <mkdir dir="${sf.common.config.dir}/generated" />
       
   561     </target>
   540 
   562 
   541 </project>
   563 </project>
   542 
   564