buildframework/helium/tools/publish/synergy.ant.xml
changeset 179 d8ac696cc51f
parent 1 be27ed110b50
child 217 0f5e3a7fb6af
child 593 4367a1b2db65
equal deleted inserted replaced
1:be27ed110b50 179:d8ac696cc51f
    25     Synergy publishing related targets
    25     Synergy publishing related targets
    26     </description>
    26     </description>
    27 
    27 
    28     <!-- Validate all the inputs for the publish-tasks-to-folder target. -->
    28     <!-- Validate all the inputs for the publish-tasks-to-folder target. -->
    29     <target name="publish-tasks-to-folder-check" if="publish.ccm.folder">
    29     <target name="publish-tasks-to-folder-check" if="publish.ccm.folder">
    30         <if>
    30         <condition property="do.publish-tasks-to-folder" value="true">
    31             <available file="${build.log.dir}/${build.id}_bom.xml" />
    31             <available file="${temp.build.dir}/${build.id}_bom.xml" />
    32             <then>
    32         </condition>
    33                 <property name="do.publish-tasks-to-folder" value="true" />
       
    34             </then>
       
    35         </if>
       
    36     </target>
    33     </target>
    37 
    34 
    38     <!-- Copies all the task found in the BOM into defined folder. -->
    35     <!-- 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">
    36     <target name="publish-tasks-to-folder" depends="publish-tasks-to-folder-check" if="do.publish-tasks-to-folder">
    40         <mkdir dir="${temp.build.dir}" />
    37         <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">
    38         <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">
    39             <freemarkerLinks expandProperties="yes">
    43                 macro: ${helium.dir}/tools/common/templates/macro
    40                 macro: ${helium.dir}/tools/common/templates/macro
    44             </freemarkerLinks>
    41             </freemarkerLinks>
    45             <data expandProperties="yes">
    42             <data expandProperties="yes">
    46                 bom: xml(${build.log.dir}/${build.id}_bom.xml)
    43                 bom: xml(${temp.build.dir}/${build.id}_bom.xml)
    47                 ant: antProperties()
    44                 ant: antProperties()
    48             </data>
    45             </data>
    49         </fmpp>
    46         </fmpp>
    50         <hlm:assertFileExists file="${temp.build.dir}/task-publish.ant.xml" />
    47         <hlm:assertFileExists file="${temp.build.dir}/task-publish.ant.xml" />
    51         <ant antfile="${temp.build.dir}/task-publish.ant.xml" dir="${build.drive}/" />
    48         <ant antfile="${temp.build.dir}/task-publish.ant.xml" dir="${build.drive}/" />