bootstrap.xml
author Simon Howkins <simonh@symbian.org>
Fri, 11 Dec 2009 16:07:54 +0000
changeset 62 2797c7d55e8b
parent 26 4f2349a6289f
child 63 be578de158ab
permissions -rw-r--r--
Removed drivce space check for platform builds, as there's already one in the FBF anyway, and platform builds are not generally expected to run concurrently (which was the rationale for the check in the bootstrap.)

<?xml version="1.0" encoding="UTF-8"?>
<project name="SF-BOOTSTRAP" default="bootstrap" xmlns:hlm="http://www.nokia.com/helium">
    
  <property environment="env"/>
    
  <dirname property="sf.bootstrap.dir" file="${ant.file.SF-CONFIG}"/>
  
  <import file="${helium.dir}/helium.ant.xml" /> 
  
  <!-- target dir -->
  <property name="bootstrap.base.dir" value="D:\fbf_project"/> <!-- old name -->
  <property name="sf.target.dir" value="${bootstrap.base.dir}"/>
  
  <!-- config -->
  <property name="sf.config.repo" value="${sf.config.repository}"/> <!-- old name -->
  <property name="sf.config.rev" value="tip"/>
  <echo message="config: repo=${sf.config.repo} rev=${sf.config.rev}"/>
  
  <!-- project -->
  <property name="sf.project.repo" value="${platform.config.repository}"/> <!-- old name -->
  <property name="sf.project.rev" value="tip"/>
  <echo message="project: repo=${sf.project.repo} rev=${sf.project.rev}"/>

  <target name="bootstrap" depends="init,get-sf-config,get-sf-project" />

  <target name="init">
    <mkdir dir="${sf.target.dir}" />
    <mkdir dir="${sf.target.dir}/build" />
    <mkdir dir="${sf.target.dir}/build/config" />
  </target>
    
  <target name="clean-env">
    <echo message="cleaning up the environment" />
    <delete dir="${sf.target.dir}/" />
  </target>

  <target name="get-sf-config">
    <if>
      <isset property="sf.config.dir"/>
      <then>
        <echo message="Getting FBF configuration from dir ${sf.config.dir}"/>
        <copy todir="${sf.target.dir}/sf-config">
          <fileset dir="${sf.config.dir}"/>
        </copy>
      </then>
      <else>
        <echo message="Getting FBF configuration from repository ${sf.config.repo}"/>
        <hlm:scm verbose="true" scmUrl="scm:hg:${sf.config.repo}">
          <hlm:checkout basedir="${sf.target.dir}/sf-config"/>
          <hlm:update basedir="${sf.target.dir}/sf-config">
            <hlm:tag name="${sf.config.rev}"/>
          </hlm:update>
        </hlm:scm>
      </else>
    </if>
  </target>

  <target name="get-sf-project">
    <if>
      <isset property="sf.project.dir"/>
      <then>
        <echo message="Getting FBF project from dir ${sf.project.dir}"/>
        <copy todir="${sf.target.dir}/build/config">
          <fileset dir="${sf.project.dir}"/>
        </copy>
      </then>
      <else>
        <echo message="Getting FBF project from repository ${sf.project.repo}"/>
        <hlm:scm verbose="true" scmUrl="scm:hg:${sf.project.repo}">
          <hlm:checkout basedir="${sf.target.dir}/build/config"/>
          <hlm:update basedir="${sf.target.dir}/build/config">
            <hlm:tag name="${sf.project.rev}"/>
          </hlm:update>
        </hlm:scm>
      </else>
    </if>
  </target>


</project>