common/build.xml
changeset 601 3489a650c6fa
parent 596 3bb02a90f7e7
child 602 022273556ac9
equal deleted inserted replaced
597:f321927b74bf 601:3489a650c6fa
   189         <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" todir="${build.log.dir}/BOM/"/>
   189         <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" todir="${build.log.dir}/BOM/"/>
   190         <delete file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
   190         <delete file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
   191     </target>
   191     </target>
   192 
   192 
   193     <target name="sf-prebuild" depends="sf-prep,sf-prebuild-noprep"/>
   193     <target name="sf-prebuild" depends="sf-prep,sf-prebuild-noprep"/>
   194     <target name="sf-prebuild-noprep" depends="sf-prebuild-announce,sf-diamonds-tag-build,sf-record-proj-conf-bom,sf-getenvs,sf-syncsource,sf-diamondize-bom"/>
   194     <target name="sf-prebuild-noprep" depends="sf-prebuild-announce,sf-diamonds-connect,sf-diamonds-tag-build,sf-record-proj-conf-bom,sf-getenvs,sf-syncsource,sf-diamondize-bom"/>
   195     
   195     
   196     <target name="sf-prebuild-announce">
   196     <target name="sf-prebuild-announce">
   197         <echo>[SF-PREBUILD]</echo>
   197         <echo>[SF-PREBUILD]</echo>
       
   198     </target>
       
   199     
       
   200     <target name="sf-diamonds-connect">
       
   201       <if>
       
   202         <istrue value="${sf.spec.publish.enable}"/>
       
   203         <then>
       
   204           <echo>[SF-DIAMONDS-CONNECT]</echo>
       
   205           <runtarget target="diamonds"/>
       
   206           <echo message="Save Diamonds build id value in a file"/>
       
   207           <echo message="diamonds.build.id=${diamonds.build.id}" file="${build.log.dir}/diamonds_build_id.txt"/>
       
   208         </then>
       
   209       </if>
   198     </target>
   210     </target>
   199 
   211 
   200     <target name="sf-diamonds-tag-build">
   212     <target name="sf-diamonds-tag-build">
   201       <if>
   213       <if>
   202         <istrue value="${sf.spec.publish.enable}"/>
   214         <istrue value="${sf.spec.publish.enable}"/>
   203         <then>
   215         <then>
   204           <echo>[SF-DIAMONDS-TAG-BUILD]</echo>
   216           <echo>[SF-DIAMONDS-TAG-BUILD]</echo>
   205           <runtarget target="diamonds"/>
   217           <echo message="Generate ${build.drive}/output/logs/sf-diamonds-tag-build.xml with Diamonds tags for this build"/>
   206           <echo message="Save Diamonds build id value in a file"/>
   218           <exec executable="perl" dir="${sf.common.config.dir}/tools" failonerror="true">
   207           <echo message="diamonds.build.id=${diamonds.build.id}" file="${build.log.dir}/diamonds_build_id.txt"/>
   219             <arg value="${sf.common.config.dir}/tools/generate_diamonds_tags_xml.pl"/>
   208           <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-tag-build.xml.ftl" outputFile="${build.drive}/output/logs/sf-tag-build.xml">
   220             <arg value="--tags=${sf.diamonds.tags}"/>
   209             <data expandProperties="yes">
   221             <arg value="--output=${build.drive}/output/logs/sf-diamonds-tag-build.xml"/>
   210               ant: antProperties()
   222           </exec>
   211             </data>
       
   212           </fmpp>
       
   213         </then>
   223         </then>
   214       </if>
   224       </if>
   215     </target>
   225     </target>
   216     
   226     
   217     <target name="sf-record-proj-conf-bom">
   227     <target name="sf-record-proj-conf-bom">