author | Simon Howkins <simonh@symbian.org> |
Wed, 14 Jul 2010 16:18:17 +0100 | |
changeset 80 | 96c37f4db9f6 |
parent 67 | 16acd1d8d322 |
permissions | -rw-r--r-- |
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"> |
7
e042f0022639
Fixed to enable the temp directory to be created in the right place, and avoid cluttering up the CWD.
Simon Howkins <simonh@symbian.org>
parents:
4
diff
changeset
|
3 |
|
9 | 4 |
<property environment="env"/> |
0
d1c51edcc657
Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff
changeset
|
5 |
|
9 | 6 |
<dirname property="sf.bootstrap.dir" file="${ant.file.SF-CONFIG}"/> |
7 |
||
80
96c37f4db9f6
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:
67
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 | 11 |
<!-- target dir --> |
12 |
<property name="bootstrap.base.dir" value="D:\fbf_project"/> <!-- old name --> |
|
13 |
<property name="sf.target.dir" value="${bootstrap.base.dir}"/> |
|
14 |
||
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 | 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 | 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 | 50 |
<mkdir dir="${sf.target.dir}" /> |
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 | 55 |
</target> |
56 |
||
57 |
<target name="clean-env"> |
|
58 |
<echo message="cleaning up the environment" /> |
|
59 |
<delete dir="${sf.target.dir}/" /> |
|
60 |
</target> |
|
0
d1c51edcc657
Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff
changeset
|
61 |
|
9 | 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 | 70 |
</target> |
0
d1c51edcc657
Initial drop of FBF bootstrap
Dario Sestito <dario.sestito@symbian.com>
parents:
diff
changeset
|
71 |
|
9 | 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}"/> |
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
|
112 |
<exec executable="hg" dir="${sf.target.dir}"> |
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
|
113 |
<arg value="clone"/> |
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
|
114 |
<arg value="-r${repo.rev}"/> |
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
|
115 |
<arg value="${repo.url}"/> |
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
|
116 |
<arg value="${subdir.name}"/> |
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
|
117 |
</exec> |
63
be578de158ab
Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents:
26
diff
changeset
|
118 |
</else> |
be578de158ab
Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents:
26
diff
changeset
|
119 |
</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
|
120 |
</else> |
e1b9f78cef38
Project spec and config to be taken from a dir instead of from a repo
darios@symbian.org
parents:
10
diff
changeset
|
121 |
</if> |
63
be578de158ab
Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents:
26
diff
changeset
|
122 |
<stopwatch name="${stopwatch.name}" action="elapsed"/> |
9 | 123 |
</target> |
1
ebb0926c7024
Update with latest changes
shaberazvi@L063442.prod.ad.symbian.intra
parents:
0
diff
changeset
|
124 |
|
63
be578de158ab
Speed up by doing a pull and update when possible.
Simon Howkins <simonh@symbian.org>
parents:
26
diff
changeset
|
125 |
</project> |