buildframework/helium/tools/publish/synergy.ant.xml
branchfix
changeset 395 5ad27ebafc22
parent 217 0f5e3a7fb6af
child 587 85df38eb4012
equal deleted inserted replaced
394:b6f8d38305f2 395:5ad27ebafc22
    18 
    18 
    19 Description:
    19 Description:
    20 
    20 
    21 ============================================================================
    21 ============================================================================
    22 -->
    22 -->
       
    23 <!--* @package publishing -->
    23 <project name="publish.synergy" xmlns:hlm="http://www.nokia.com/helium">
    24 <project name="publish.synergy" xmlns:hlm="http://www.nokia.com/helium">
    24     <description>
    25     <description>
    25     Synergy publishing related targets
    26     Synergy publishing related targets
    26     </description>
    27     </description>
    27 
    28 
    28     <!-- Validate all the inputs for the publish-tasks-to-folder target. -->
    29     <!-- Validate all the inputs for the publish-tasks-to-folder target. -->
    29     <target name="publish-tasks-to-folder-check" if="publish.ccm.folder">
    30     <target name="publish-tasks-to-folder-check" if="publish.ccm.folder">
    30         <if>
    31         <condition property="do.publish-tasks-to-folder" value="true">
    31             <available file="${build.log.dir}/${build.id}_bom.xml" />
    32             <available file="${temp.build.dir}/${build.id}_bom.xml" />
    32             <then>
    33         </condition>
    33                 <property name="do.publish-tasks-to-folder" value="true" />
       
    34             </then>
       
    35         </if>
       
    36     </target>
    34     </target>
    37 
    35 
    38     <!-- Copies all the task found in the BOM into defined folder. -->
    36     <!-- Copies all the task found in the BOM into defined folder. -->
    39     <target name="publish-tasks-to-folder" depends="publish-tasks-to-folder-check" if="do.publish-tasks-to-folder">
    37     <target name="publish-tasks-to-folder" depends="publish-tasks-to-folder-check" if="do.publish-tasks-to-folder">
    40         <mkdir dir="${temp.build.dir}" />
    38         <mkdir dir="${temp.build.dir}" />
    41         <fmpp sourceFile="${helium.dir}/tools/common/templates/ido/task-publish.ant.xml.ftl" outputFile="${temp.build.dir}/task-publish.ant.xml">
    39         <fmpp sourceFile="${helium.dir}/tools/common/templates/ido/task-publish.ant.xml.ftl" outputFile="${temp.build.dir}/task-publish.ant.xml">
    42             <freemarkerLinks expandProperties="yes">
    40             <freemarkerLinks expandProperties="yes">
    43                 macro: ${helium.dir}/tools/common/templates/macro
    41                 macro: ${helium.dir}/tools/common/templates/macro
    44             </freemarkerLinks>
    42             </freemarkerLinks>
    45             <data expandProperties="yes">
    43             <data expandProperties="yes">
    46                 bom: xml(${build.log.dir}/${build.id}_bom.xml)
    44                 bom: xml(${temp.build.dir}/${build.id}_bom.xml)
    47                 ant: antProperties()
    45                 ant: antProperties()
    48             </data>
    46             </data>
    49         </fmpp>
    47         </fmpp>
    50         <hlm:assertFileExists file="${temp.build.dir}/task-publish.ant.xml" />
    48         <hlm:assertFileExists file="${temp.build.dir}/task-publish.ant.xml" />
    51         <ant antfile="${temp.build.dir}/task-publish.ant.xml" dir="${build.drive}/" />
    49         <ant antfile="${temp.build.dir}/task-publish.ant.xml" dir="${build.drive}/" />