buildframework/helium/tools/common/templates/ido/ido-ant-copy.xml.ftl
changeset 645 b8d81fa19e7d
parent 643 27cf35f95864
child 646 a010554f8551
child 648 d5a8d436d33b
equal deleted inserted replaced
643:27cf35f95864 645:b8d81fa19e7d
     1 <#--
       
     2 ============================================================================ 
       
     3 Name        : ido-ant-copy.xml.ftl 
       
     4 Part of     : Helium 
       
     5 
       
     6 Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     7 All rights reserved.
       
     8 This component and the accompanying materials are made available
       
     9 under the terms of the License "Eclipse Public License v1.0"
       
    10 which accompanies this distribution, and is available
       
    11 at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    12 
       
    13 Initial Contributors:
       
    14 Nokia Corporation - initial contribution.
       
    15 
       
    16 Contributors:
       
    17 
       
    18 Description:
       
    19 
       
    20 ============================================================================
       
    21 --> 
       
    22 <?xml version="1.0"?>
       
    23 <project name="ido-ant-copy" default="all">
       
    24     <target name="delete">
       
    25         <parallel threadCount="${r'$'}{number.of.threads}">
       
    26         <#list data?keys as component>
       
    27             <sequential>
       
    28                 <#if ((ant['keep.old.source.enabled']=="true") || ant?keys?seq_contains('ido.keep.old'))>
       
    29                 <delete dir="${data[component]}_old" failonerror="false"/>
       
    30                 <move file="${data[component]}" todir="${data[component]}_old" failonerror="false"/>
       
    31                 <#else>
       
    32                 <delete dir="${data[component]}" failonerror="false"/>
       
    33                 </#if>
       
    34             </sequential>
       
    35         </#list>
       
    36         </parallel>
       
    37     </target>
       
    38     
       
    39     <target name="copy">
       
    40         <#list data?keys as component>
       
    41             <mkdir dir="${data[component]}"/>
       
    42         </#list>
       
    43         <parallel threadCount="${r'$'}{number.of.threads}">
       
    44         <#list data?keys as component>
       
    45             <sequential>
       
    46                 <copy todir="${data[component]}" verbose="false" failonerror="false" overwrite="true">
       
    47                     <fileset dir="${component}" casesensitive="false" >
       
    48                         <exclude name="**/_ccmwaid.inf"/>
       
    49                         <exclude name="**/.ccmwaid.inf"/>
       
    50                         <#if ((ant['keep.internal.folders.enabled'] == "false")&& (!ant?keys?seq_contains('keep.internals')))>
       
    51                         <exclude name="**/internal/**"/>
       
    52                         </#if>
       
    53                         <exclude name="**/.hg/**"/>
       
    54                         <exclude name="**/.svn/**"/>
       
    55                     </fileset>
       
    56                 </copy>
       
    57                 <#-- Below operation is not required on linux as copy task will changes 
       
    58                 the file permissions to write mode -->
       
    59                 <exec executable="attrib" osfamily="windows" dir="${data[component]}">
       
    60                     <arg line="-R /S /D .\*"/>
       
    61                 </exec>
       
    62             </sequential>
       
    63         </#list>
       
    64         </parallel>
       
    65     </target>
       
    66     
       
    67     <target name="all" depends="delete,copy" />
       
    68 </project>