bootstrap.xml
author Dario Sestito <darios@symbian.org>
Fri, 01 Oct 2010 15:57:44 +0100
changeset 82 71371cd49800
parent 80 9fa808ef1682
permissions -rw-r--r--
Increase sleep time between clone retries to 2 minutes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
     2
<project name="SF-BOOTSTRAP" default="bootstrap" xmlns:hlm="http://www.nokia.com/helium">
79
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
     3
  
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
     4
  <property environment="env"/>
79
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
     5
  
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
     6
  <dirname property="sf.bootstrap.dir" file="${ant.file.SF-CONFIG}"/>
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
     7
  
80
9fa808ef1682 Stopped bootstrap reporting that it will substitute a build drive, thereby scaring the living daylights out of innocent users, when it won't any way (because this is the bootstrap).
Simon Howkins <simonh@symbian.org>
parents: 79
diff changeset
     8
  <property name="build.drive" value="Setting this property stops helium reporting that it will use the Z: drive when it won't."/>
10
c1cbd33e46c0 reintroduced import of helium.ant.xml as it was generating diamonds warnings
BuildAdmin@LON-ENGBUILD89
parents: 9
diff changeset
     9
  <import file="${helium.dir}/helium.ant.xml" /> 
c1cbd33e46c0 reintroduced import of helium.ant.xml as it was generating diamonds warnings
BuildAdmin@LON-ENGBUILD89
parents: 9
diff changeset
    10
  
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    11
  <!-- target dir -->
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    12
  <property name="bootstrap.base.dir" value="D:\fbf_project"/> <!-- old name -->
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    13
  <property name="sf.target.dir" value="${bootstrap.base.dir}"/>
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    14
  
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    15
  <!-- config -->
64
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    16
  <property name="sf.config.repo" value=""/>
66
eb493282dec7 Config and Project repos should be sync'ed at revision 'default' by default (not 'tip')
Dario Sestito <darios@symbian.org>
parents: 64
diff changeset
    17
  <property name="sf.config.rev" value="default"/>
63
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    18
  <property name="sf.config.dir" value=""/>
64
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    19
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    20
  <!-- project -->
64
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    21
  <property name="sf.project.repo" value=""/>
66
eb493282dec7 Config and Project repos should be sync'ed at revision 'default' by default (not 'tip')
Dario Sestito <darios@symbian.org>
parents: 64
diff changeset
    22
  <property name="sf.project.rev" value="default"/>
63
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    23
  <property name="sf.project.dir" value=""/>
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    24
64
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    25
  <!-- Sanity check the supplied properties -->
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    26
  <fail message="Must specify property sf.config.repo or sf.config.dir">
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    27
    <condition>
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    28
      <and>
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    29
        <equals arg1="${sf.config.repo}" arg2=""/>
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    30
        <equals arg1="${sf.config.dir}" arg2=""/>
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    31
      </and>
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    32
    </condition>
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    33
  </fail>
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    34
  <fail message="Must specify property sf.project.repo or sf.project.dir">
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    35
    <condition>
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    36
      <and>
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    37
        <equals arg1="${sf.project.repo}" arg2=""/>
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    38
        <equals arg1="${sf.project.dir}" arg2=""/>
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    39
      </and>
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    40
    </condition>
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    41
  </fail>
b1cab4be73cc Added basic checking of some properties supplied to build.
Simon Howkins <simonh@symbian.org>
parents: 63
diff changeset
    42
  
63
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    43
  <target name="bootstrap" depends="init,get-sf-config,get-sf-project" description="Target for executing the bootstrap">
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    44
    <stopwatch name="bootstrap" action="elapsed"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    45
  </target>
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    46
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    47
  <target name="init">
63
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    48
    <stopwatch name="bootstrap"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    49
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    50
    <mkdir dir="${sf.target.dir}" />
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    51
    <mkdir dir="${sf.target.dir}/build" />
63
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    52
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    53
    <echo message="config: repo=${sf.config.repo} rev=${sf.config.rev}"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    54
    <echo message="project: repo=${sf.project.repo} rev=${sf.project.rev}"/>
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    55
  </target>
79
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
    56
  
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    57
  <target name="clean-env">
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    58
    <echo message="cleaning up the environment" />
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    59
    <delete dir="${sf.target.dir}/" />
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    60
  </target>
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    61
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    62
  <target name="get-sf-config">
63
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    63
    <antcall target="get-repo">
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    64
      <param name="stopwatch.name" value="get-sf-config"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    65
      <param name="subdir.name" value="sf-config"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    66
      <param name="repo.dir" value="${sf.config.dir}"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    67
      <param name="repo.url" value="${sf.config.repo}"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    68
      <param name="repo.rev" value="${sf.config.rev}"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    69
    </antcall>
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    70
  </target>
0
d1c51edcc657 Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff changeset
    71
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
    72
  <target name="get-sf-project">
63
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    73
    <antcall target="get-repo">
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    74
      <param name="stopwatch.name" value="get-sf-project"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    75
      <param name="subdir.name" value="build/config"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    76
      <param name="repo.dir" value="${sf.project.dir}"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    77
      <param name="repo.url" value="${sf.project.repo}"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    78
      <param name="repo.rev" value="${sf.project.rev}"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    79
    </antcall>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    80
  </target>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    81
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    82
  <target name="get-repo">
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    83
    <stopwatch name="${stopwatch.name}"/>
16
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    84
    <if>
63
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    85
      <not>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    86
        <equals arg1="${repo.dir}" arg2=""/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    87
      </not>
16
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    88
      <then>
63
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    89
        <echo message="Getting FBF configuration from dir ${repo.dir}"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    90
        <copy todir="${sf.target.dir}/${subdir.name}">
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    91
          <fileset dir="${repo.dir}"/>
16
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    92
        </copy>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    93
      </then>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
    94
      <else>
63
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    95
        <echo message="Getting ${repo.url}"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    96
        <if>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    97
          <available file="${sf.target.dir}/${subdir.name}/.hg" type="dir"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    98
          <then>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
    99
            <echo message="Updating ${sf.target.dir}/${subdir.name}"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   100
            <exec executable="hg" dir="${sf.target.dir}/${subdir.name}">
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   101
              <arg value="pull"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   102
              <arg value="${repo.url}"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   103
            </exec>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   104
            <exec executable="hg" dir="${sf.target.dir}/${subdir.name}">
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   105
              <arg value="up"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   106
              <arg value="${repo.rev}"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   107
              <arg value="-C"/>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   108
            </exec>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   109
          </then>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   110
          <else>
66
eb493282dec7 Config and Project repos should be sync'ed at revision 'default' by default (not 'tip')
Dario Sestito <darios@symbian.org>
parents: 64
diff changeset
   111
            <echo message="Cloning ${repo.url}#${repo.rev} to ${sf.target.dir}/${subdir.name}"/>
79
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   112
            <trycatch>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   113
              <try>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   114
                <exec failonerror="true" executable="hg" dir="${sf.target.dir}">
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   115
                  <arg value="clone"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   116
                  <arg value="-r${repo.rev}"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   117
                  <arg value="${repo.url}"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   118
                  <arg value="${subdir.name}"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   119
                </exec>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   120
              </try>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   121
              <catch>
82
71371cd49800 Increase sleep time between clone retries to 2 minutes
Dario Sestito <darios@symbian.org>
parents: 80
diff changeset
   122
                <echo message="Clone failed, retry in 120 seconds"/>
71371cd49800 Increase sleep time between clone retries to 2 minutes
Dario Sestito <darios@symbian.org>
parents: 80
diff changeset
   123
                <sleep seconds="120"/>
79
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   124
                <delete dir="${sf.target.dir}/${subdir.name}" quiet="true"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   125
                <echo message="Cloning ${repo.url}#${repo.rev} to ${sf.target.dir}/${subdir.name}"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   126
                <trycatch>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   127
                  <try>  
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   128
                    <exec failonerror="true" executable="hg" dir="${sf.target.dir}">
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   129
                      <arg value="clone"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   130
                      <arg value="-r${repo.rev}"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   131
                      <arg value="${repo.url}"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   132
                      <arg value="${subdir.name}"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   133
                    </exec>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   134
                  </try>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   135
                  <catch>
82
71371cd49800 Increase sleep time between clone retries to 2 minutes
Dario Sestito <darios@symbian.org>
parents: 80
diff changeset
   136
                    <echo message="Clone failed, retry in 120 seconds"/>
71371cd49800 Increase sleep time between clone retries to 2 minutes
Dario Sestito <darios@symbian.org>
parents: 80
diff changeset
   137
                    <sleep seconds="120"/>
79
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   138
                    <delete dir="${sf.target.dir}/${subdir.name}" quiet="true"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   139
                    <echo message="Cloning ${repo.url}#${repo.rev} to ${sf.target.dir}/${subdir.name}"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   140
                    <exec failonerror="true" executable="hg" dir="${sf.target.dir}">
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   141
                      <arg value="clone"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   142
                      <arg value="-r${repo.rev}"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   143
                      <arg value="${repo.url}"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   144
                      <arg value="${subdir.name}"/>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   145
                    </exec>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   146
                  </catch>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   147
                </trycatch>
c60c76df3628 Added retries of cloning.
Johan Groth <johang@symbian.org>
parents: 78
diff changeset
   148
              </catch>
78
b9933b133306 Added clean up of files if clone fails midpart.
Johan Groth <johang@symbian.org>
parents: 67
diff changeset
   149
            </trycatch>
63
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   150
          </else>
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   151
        </if>
16
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
   152
      </else>
e1b9f78cef38 Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents: 10
diff changeset
   153
    </if>
63
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   154
    <stopwatch name="${stopwatch.name}" action="elapsed"/>
9
faf8e4898015 Cleaned the bootstrap code
BuildAdmin@LON-ENGBUILD89
parents: 7
diff changeset
   155
  </target>
1
ebb0926c7024 Update with latest changes
shaberazvi@L063442.prod.ad.symbian.intra
parents: 0
diff changeset
   156
63
be578de158ab Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents: 26
diff changeset
   157
</project>