buildframework/helium/config/ivy/install/build-cruisecontrol-bin.ant.xml
changeset 1 be27ed110b50
equal deleted inserted replaced
0:044383f39525 1:be27ed110b50
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <!-- 
       
     3 ============================================================================ 
       
     4 Name        : build-cruisecontrol-bin.ant.xml 
       
     5 Part of     : Helium 
       
     6 
       
     7 Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     8 All rights reserved.
       
     9 This component and the accompanying materials are made available
       
    10 under the terms of the License "Eclipse Public License v1.0"
       
    11 which accompanies this distribution, and is available
       
    12 at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    13 
       
    14 Initial Contributors:
       
    15 Nokia Corporation - initial contribution.
       
    16 
       
    17 Contributors:
       
    18 
       
    19 Description:
       
    20 
       
    21 ============================================================================
       
    22 -->
       
    23 <project name="build-cruisecontrol" xmlns:ivy="antlib:org.apache.ivy.ant">
       
    24     <description>Cruise Control installation script.</description>
       
    25     <target name="install">
       
    26         <property name="cc.temp.dir" value="${helium.dir}/build/cruisecontrol_temp"/>
       
    27         <property name="hlm.external.dir" value="${helium.dir}/external"/>
       
    28         <echo>
       
    29         unzipping artifact: 
       
    30         organisation=${artifact.organisation} 
       
    31         module=${artifact.module} 
       
    32         revision=${artifact.revision}
       
    33         artifact=${artifact.artifact}
       
    34         type=${artifact.type}
       
    35         ext=${artifact.ext}
       
    36         origin=${artifact.origin}
       
    37         local=${artifact.local}
       
    38         size=${artifact.size}
       
    39         file=${artifact.file}
       
    40         helium.dir=${helium.dir}
       
    41         </echo>
       
    42         <delete failonerror="false">
       
    43             <fileset dir="${hlm.external.dir}/CruiseControl">
       
    44                 <exclude name="cruisecontrol.bat"/>
       
    45                 <exclude name="distribution.policy.S60"/>
       
    46             </fileset>
       
    47         </delete>
       
    48         <delete dir="${cc.temp.dir}" failonerror="false"/>
       
    49         <mkdir dir="${cc.temp.dir}"/>
       
    50         <unzip src="${artifact.file}" dest="${cc.temp.dir}">
       
    51             <mapper>
       
    52                 <regexpmapper from="^cruisecontrol-bin-[^/\\]*[/\\](.*)$$" to="\1"/>
       
    53             </mapper>
       
    54         </unzip>
       
    55         
       
    56         <!-- Generating version file. -->
       
    57         <echo file="${cc.temp.dir}/${artifact.module}_${artifact.revision}.txt">
       
    58             unzipping artifact: 
       
    59             organisation=${artifact.organisation} 
       
    60             module=${artifact.module} 
       
    61             revision=${artifact.revision}
       
    62             artifact=${artifact.artifact}
       
    63             type=${artifact.type}
       
    64             ext=${artifact.ext}
       
    65             origin=${artifact.origin}
       
    66             local=${artifact.local}
       
    67             size=${artifact.size}
       
    68             file=${artifact.file}
       
    69             helium.dir=${helium.dir}
       
    70         </echo>        
       
    71         
       
    72         <if>
       
    73             <available file="${hlm.external.dir}/CruiseControl/cruisecontrol.bat"/>
       
    74             <then>
       
    75                 <move file="${cc.temp.dir}/cruisecontrol.bat" tofile="${cc.temp.dir}/real_cruisecontrol.bat"/>
       
    76             </then>
       
    77         </if>
       
    78         
       
    79         <move todir="${hlm.external.dir}/CruiseControl">
       
    80             <fileset dir="${cc.temp.dir}"/>
       
    81         </move>
       
    82         <delete dir="${cc.temp.dir}" failonerror="false"/>
       
    83     </target>
       
    84 </project>