buildframework/helium/tools/startup/bootstrap/bootstrap.ant.xml
branchwip
changeset 380 db59fc762214
parent 217 0f5e3a7fb6af
child 588 c7c26511138f
equal deleted inserted replaced
369:1248e8f6a72d 380:db59fc762214
    18 
    18 
    19 Description:
    19 Description:
    20 
    20 
    21 ============================================================================
    21 ============================================================================
    22 -->
    22 -->
       
    23 <!--* @package framework -->
    23 <project name="startup.bootstrap" default="install-dependencies" xmlns:ivy="antlib:org.apache.ivy.ant">
    24 <project name="startup.bootstrap" default="install-dependencies" xmlns:ivy="antlib:org.apache.ivy.ant">
    24     <description>
    25     <description>
    25     Download libraries to bootstrap helium
    26     Download libraries to bootstrap helium
    26     </description>
    27     </description>
    27 
    28 
       
    29     <!-- The general type of the build. This is used for checking the tools environment. Potential values include core, ido, product.
       
    30     @type string
       
    31     -->
    28     <property name="build.type" value="subcon" />
    32     <property name="build.type" value="subcon" />
       
    33     <!-- The tools dependencies Ivy settings configuration file.
       
    34     @type string
       
    35     -->
    29     <property name="tools.ivy.config.file" location="${helium.dir}/config/ivy/tools_ivy_settings.xml" />
    36     <property name="tools.ivy.config.file" location="${helium.dir}/config/ivy/tools_ivy_settings.xml" />
    30 
    37 
    31     <!-- Set proxy using Nokia settings by default -->
    38     <!-- Set proxy using Nokia settings by default -->
    32     <target name="proxy" unless="proxy.disabled">
    39     <target name="proxy" unless="proxy.disabled">
    33         <property name="proxy.host" value="172.16.42.137" />
    40         <property name="proxy.host" value="172.16.42.137" />
    34         <property name="proxy.port" value="8080" />
    41         <property name="proxy.port" value="8080" />
    35         <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" />
    42         <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" />
    36     </target>
    43     </target>
    37 
    44 
       
    45     <!-- Name of ivy jar.
       
    46     @type string
       
    47     @scope private
       
    48     -->
    38     <property name="ivy.filename" value="ivy-2.0.0-beta2.jar" />
    49     <property name="ivy.filename" value="ivy-2.0.0-beta2.jar" />
       
    50     <!-- Location of ivy jar.
       
    51     @type string
       
    52     @scope private
       
    53     -->
    39     <property name="ivy.file" value="${helium.dir}/external/antlibs/${ivy.filename}" />
    54     <property name="ivy.file" value="${helium.dir}/external/antlibs/${ivy.filename}" />
    40     <available file="${ivy.file}" property="ivy.file.present" />
    55     <available file="${ivy.file}" property="ivy.file.present" />
    41 
    56 
    42     <!-- Download ivy jar -->
    57     <!-- Download ivy jar -->
    43     <target name="get-ivy" unless="ivy.file.present" depends="proxy">
    58     <target name="get-ivy" unless="ivy.file.present" depends="proxy">
    44         <mkdir dir="${helium.dir}/external/antlibs" />
    59         <mkdir dir="${helium.dir}/external/antlibs" />
    45         <get src="http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/ivy/ivy/2.0.0-beta2/${ivy.filename}" dest="${ivy.file}" />
    60         <get src="http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/ivy/ivy/2.0.0-beta2/${ivy.filename}" dest="${ivy.file}" />
    46     </target>
    61     </target>
    47 
    62 
    48     <!-- Install CruiseControl if not already installed -->
    63     <!-- Install CruiseControl if not already installed -->
    49     <target name="install-cruisecontrol">
    64     <target name="install-cruisecontrol" unless="env.HLM_SUBCON">
    50         <if>
    65         <if>
    51             <not>
    66             <not>
    52                 <available file="${helium.dir}/external/CruiseControl/real_cruisecontrol.bat" />
    67                 <available file="${helium.dir}/external/CruiseControl/real_cruisecontrol.bat" />
    53             </not>
    68             </not>
    54             <then>
    69             <then>
    84     <target name="clean-ivy-cache" depends="set-libs">
    99     <target name="clean-ivy-cache" depends="set-libs">
    85         <ivy:configure file="${tools.ivy.config.file}" />
   100         <ivy:configure file="${tools.ivy.config.file}" />
    86         <ivy:cleancache />
   101         <ivy:cleancache />
    87     </target>
   102     </target>
    88 
   103 
    89     <!-- Private: unzip jars -->
   104     <!-- unzip jars. @scope private-->
    90     <target name="unzip-jar">
   105     <target name="unzip-jar">
    91         <unzip src="${artifact.file}" dest="${helium.dir}/external/antlibs" />
   106         <unzip src="${artifact.file}" dest="${helium.dir}/external/antlibs" />
    92     </target>
   107     </target>
    93     <!-- Private: unzip eggs -->
   108     <!-- unzip eggs. @scope private -->
    94     <target name="unzip-egg">
   109     <target name="unzip-egg">
    95         <unzip src="${artifact.file}" dest="${helium.dir}/external/python/lib/2.5" />
   110         <unzip src="${artifact.file}" dest="${helium.dir}/external/python/lib/2.5" />
    96     </target>
   111     </target>
    97     <!-- Private: ungzip eggs -->
   112     <!-- ungzip eggs. @scope private -->
    98     <target name="gunzip-egg">
   113     <target name="gunzip-egg">
    99         <gunzip src="${artifact.file}" dest="${artifact.file}.tar" />
   114         <gunzip src="${artifact.file}" dest="${artifact.file}.tar" />
   100         <untar src="${artifact.file}.tar" dest="${helium.dir}/external/python/lib/2.5" />
   115         <untar src="${artifact.file}.tar" dest="${helium.dir}/external/python/lib/2.5" />
   101     </target>
   116     </target>
   102     <!-- Private: unbzip egg -->
   117     <!-- unbzip egg. @scope private -->
   103     <target name="bunzip-egg">
   118     <target name="bunzip-egg">
   104         <bunzip2 src="${artifact.file}" dest="${artifact.file}.tar" />
   119         <bunzip2 src="${artifact.file}" dest="${artifact.file}.tar" />
   105         <untar src="${artifact.file}.tar" dest="${helium.dir}/external/python/lib/2.5" />
   120         <untar src="${artifact.file}.tar" dest="${helium.dir}/external/python/lib/2.5" />
   106     </target>
   121     </target>
   107 
   122