bootstrap.xml
changeset 0 d1c51edcc657
child 1 ebb0926c7024
equal deleted inserted replaced
-1:000000000000 0:d1c51edcc657
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <project name="SF-BOOTSTRAP" default="bootstrap" xmlns:hlm="http://www.nokia.com/helium">
       
     3 
       
     4 
       
     5     <property name="sbs.tools.src.path" value="e:\build_e\varamana\sbs-source-dir"/>
       
     6     <property name="sbs.zip.file" value="sbs_2.4.0_with_nokia_cfgs.zip"/>    
       
     7     
       
     8     <!-- location of Hg bootstrap repositories -->
       
     9     <property name="sf.config.repository"       value="d:\TB91_releases\sf-new\hg-sf-helium-config" />
       
    10     
       
    11     <!-- call this project -->
       
    12     <property name="platform.config.repository" value="d:\TB91_releases\sf-new\hg-platform-config" />
       
    13     
       
    14     <!-- the build dir to put bootstrap files into -->
       
    15     <property name="bootstrap.base.dir" value="d:\TB91_releases\sf-new\build\" />
       
    16 
       
    17     <import file="${helium.dir}/helium.ant.xml" />    
       
    18     <!-- <target name="bootstrap" depends="init,get-sf-config,get-sbs-tools,get-platform-config" />-->
       
    19 
       
    20     <target name="bootstrap" depends="init,get-sf-config,get-platform-config" />
       
    21 
       
    22     <target name="init">
       
    23         <mkdir dir="${bootstrap.base.dir}" />
       
    24         <mkdir dir="${bootstrap.base.dir}/build" />
       
    25         <mkdir dir="${bootstrap.base.dir}/build/config" />
       
    26     </target>
       
    27     <target name="clean-env">
       
    28         <echo message="cleaning up the environment" />
       
    29         <delete dir="${bootstrap.base.dir}/" />
       
    30     </target>
       
    31 
       
    32     <target name="get-sf-config">
       
    33         <!-- remove jars once cleared for subcon 
       
    34         <classpath>
       
    35             <pathelement location="D:/helium-3.44/helium-3.44.x/helium/external/antlibs/internal/maven-scm-api-1.1.jar"/>
       
    36             <pathelement location="D:/helium-3.44/helium-3.44.x/helium/external/antlibs/internal/maven-scm-provider-svn-commons-1.1.jar"/>
       
    37             <pathelement location="D:/helium-3.44/helium-3.44.x/helium/external/antlibs/internal/maven-scm-provider-synergy-1.1.jar"/>
       
    38             <pathelement location="D:/helium-3.44/helium-3.44.x/helium/external/antlibs/internal/maven-scm-provider-hg-1.1.jar"/>
       
    39         </classpath>
       
    40         -->
       
    41         <echo message="Getting sf helium configuration from repository ${sf.config.repository}" />
       
    42         <hlm:scm verbose="true" scmUrl="scm:hg:${sf.config.repository}">
       
    43             <hlm:checkout basedir="${bootstrap.base.dir}/sf-config"/>
       
    44         </hlm:scm>
       
    45     </target>
       
    46 
       
    47     <target name="get-sbs-tools">
       
    48     	<if>
       
    49     		<not><available file="${bootstrap.base.dir}/sbs"/></not>
       
    50     		<then>
       
    51                 <echo message="Extracting sbs tools ${sbs.tools.src.path}/${sbs.zip.file}" />
       
    52     			<unzip src="${sbs.tools.src.path}/${sbs.zip.file}" dest="${bootstrap.base.dir}" />
       
    53                 <echo message="Updating sbs tools path to batch file" />
       
    54         	    <echo file="${bootstrap.base.dir}/build/env.bat" append="true" >set SBS_HOME=${bootstrap.base.dir}\sbs
       
    55 set PATH=${bootstrap.base.dir}\sbs\bin;${bootstrap.base.dir}\sbs\win32\mingw\bin;${bootstrap.base.dir}\sbs\win32\cygwin\bin;%PATH%
       
    56         	    </echo>
       
    57     		</then>
       
    58    	    </if>
       
    59     </target>
       
    60 
       
    61     <target name="get-platform-config">
       
    62         
       
    63      
       
    64         
       
    65         <echo message="Getting platform configuration${platform.config.repository}" />
       
    66         <hlm:scm verbose="true" scmUrl="scm:hg:${platform.config.repository}">
       
    67             <hlm:checkout basedir="${bootstrap.base.dir}/build/config"/>
       
    68         </hlm:scm>
       
    69     </target>
       
    70 </project>