bootstrap.xml
changeset 4 5a8eb3466f9f
parent 3 c360fdfe164c
child 7 e042f0022639
equal deleted inserted replaced
3:c360fdfe164c 4:5a8eb3466f9f
     4     <dirname property="sf.bootstrap.dir" file="${ant.file.SF-CONFIG}"/>
     4     <dirname property="sf.bootstrap.dir" file="${ant.file.SF-CONFIG}"/>
     5     
     5     
     6     <import file="bootstrap.properties.ant.xml" />
     6     <import file="bootstrap.properties.ant.xml" />
     7     <import file="${helium.dir}/helium.ant.xml" />    
     7     <import file="${helium.dir}/helium.ant.xml" />    
     8 
     8 
     9     <target name="bootstrap" depends="init,get-sf-config,get-platform-config, parse-platform-config,
     9     <target name="bootstrap" depends="init,get-sf-config,get-project-config" />
    10                 generate-pkg-build-xml" />
       
    11 
    10 
    12     <target name="init">
    11     <target name="init">
    13         <mkdir dir="${bootstrap.base.dir}" />
    12         <mkdir dir="${bootstrap.base.dir}" />
    14         <mkdir dir="${bootstrap.base.dir}/build" />
    13         <mkdir dir="${bootstrap.base.dir}/build" />
    15         <mkdir dir="${bootstrap.base.dir}/build/config" />
    14         <mkdir dir="${bootstrap.base.dir}/build/config" />
    16     </target>
    15     </target>
       
    16     
    17     <target name="clean-env">
    17     <target name="clean-env">
    18         <echo message="cleaning up the environment" />
    18         <echo message="cleaning up the environment" />
    19         <delete dir="${bootstrap.base.dir}/" />
    19         <delete dir="${bootstrap.base.dir}/" />
    20     </target>
    20     </target>
    21 
    21 
    40         	    </echo>
    40         	    </echo>
    41     		</then>
    41     		</then>
    42    	    </if>
    42    	    </if>
    43     </target>
    43     </target>
    44 
    44 
    45     <target name="get-platform-config">
    45     <target name="get-project-config">
    46         <echo message="Getting platform configuration${platform.config.repository}" />
    46         <echo message="Getting project configuration${platform.config.repository}" />
    47         <hlm:scm verbose="true" scmUrl="scm:hg:${platform.config.repository}">
    47         <hlm:scm verbose="true" scmUrl="scm:hg:${platform.config.repository}">
    48             <hlm:checkout basedir="${bootstrap.base.dir}/build/config"/>
    48             <hlm:checkout basedir="${bootstrap.base.dir}/build/config"/>
    49         </hlm:scm>
    49         </hlm:scm>
    50     </target>
    50     </target>
    51 
    51 
    52     <target name="parse-platform-config">
    52 
    53         <!-- Todo: Parse the platform config and generate properties and csv file to be
       
    54             used by the builds. -->
       
    55         <echo message="Parse the platform configuration" />
       
    56     </target>
       
    57     
       
    58     <target name="generate-pkg-build-xml" depends="parse-platform-config">
       
    59         <!-- Todo: 1. Same file name hg-pkg-build.ant.xml is used for all packages
       
    60             for multiple package builds, this needs to be linked with package name. -->
       
    61         <fmpp sourceFile="${sf.bootstrap.dir}/templates/hg-pkg-build.ant.xml.ftl"
       
    62                      outputFile="${bootstrap.base.dir}/build/hg-pkg-build.ant.xml">
       
    63                <data expandProperties="yes">
       
    64                     ant: antProperties()
       
    65                     data: csv(${bootstrap.base.dir}/build/config/${hg.config}, {separator:','})
       
    66                 </data>
       
    67         </fmpp>
       
    68     </target>
       
    69 </project>
    53 </project>