common/build.xml
changeset 395 1f4867b1e0c1
parent 393 8db8dd000e3b
child 396 178a6d6661b3
equal deleted inserted replaced
394:44cbd546e285 395:1f4867b1e0c1
   194         </copy>
   194         </copy>
   195         <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" todir="${build.log.dir}/BOM/"/>
   195         <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" todir="${build.log.dir}/BOM/"/>
   196         <delete file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
   196         <delete file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
   197     </target>
   197     </target>
   198 
   198 
   199     <target name="sf-prebuild" depends="sf-prep">
   199     <target name="sf-prebuild" depends="sf-prep,sf-prebuild-announce,sf-diamonds-tag-build">
   200         <echo>[SF-PREBUILD]</echo>
       
   201         
       
   202         <if>
       
   203             <istrue value="${sf.spec.publish.enable}"/>
       
   204             <then>
       
   205                 <runtarget target="diamonds"/>
       
   206                 <runtarget target="sf-diamonds-tag-build"/>
       
   207             </then>
       
   208         </if>
       
   209         
       
   210         <!-- create BOM dir -->
   200         <!-- create BOM dir -->
   211         <mkdir dir="${build.drive}/output/logs/BOM"/>
   201         <mkdir dir="${build.drive}/output/logs/BOM"/>
   212         
   202         
   213         <!-- record project and config information in BOM files -->
   203         <!-- record project and config information in BOM files -->
   214         <delete file="${build.drive}/output/logs/BOM/config.csv" quiet="true"/>
   204         <delete file="${build.drive}/output/logs/BOM/config.csv" quiet="true"/>
   317           <runtarget target="sf-diamondize-bom"/>
   307           <runtarget target="sf-diamondize-bom"/>
   318         </then>
   308         </then>
   319       </if>
   309       </if>
   320     </target>
   310     </target>
   321     
   311     
       
   312     <target name="sf-prebuild-announce">
       
   313         <echo>[SF-PREBUILD]</echo>
       
   314     </target>
       
   315 
   322     <target name="sf-diamonds-tag-build">
   316     <target name="sf-diamonds-tag-build">
   323       <echo>[SF-DIAMONDS-TAG-BUILD]</echo>
   317       <if>
   324       <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-tag-build.xml.ftl" outputFile="${build.drive}/output/logs/sf-tag-build.xml">
   318         <istrue value="${sf.spec.publish.enable}"/>
   325         <data expandProperties="yes">
   319         <then>
   326           ant: antProperties()
   320           <echo>[SF-DIAMONDS-TAG-BUILD]</echo>
   327         </data>
   321           <runtarget target="diamonds"/>
   328       </fmpp>
   322           <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-tag-build.xml.ftl" outputFile="${build.drive}/output/logs/sf-tag-build.xml">
       
   323             <data expandProperties="yes">
       
   324               ant: antProperties()
       
   325             </data>
       
   326           </fmpp>
       
   327         </then>
       
   328       </if>
   329     </target>
   329     </target>
   330     
   330     
   331     <target name="sf-getenv-tools">
   331     <target name="sf-getenv-tools">
   332         <antcall target="preparation-getenv" inheritAll="false">
   332         <antcall target="preparation-getenv" inheritAll="false">
   333             <param name="base_release.path"           value="${sf.spec.toolsbaseline.location}"/>
   333             <param name="base_release.path"           value="${sf.spec.toolsbaseline.location}"/>