25 <property name="diamonds.port" value="${sf.spec.publish.diamonds.port}"/> |
25 <property name="diamonds.port" value="${sf.spec.publish.diamonds.port}"/> |
26 <property name="diamonds.path" value="${sf.spec.publish.diamonds.path}"/> |
26 <property name="diamonds.path" value="${sf.spec.publish.diamonds.path}"/> |
27 <property name="build.system" value="${sf.spec.build.system}"/> |
27 <property name="build.system" value="${sf.spec.build.system}"/> |
28 <property name="base_release.path" value="${sf.spec.baseline.location}"/> |
28 <property name="base_release.path" value="${sf.spec.baseline.location}"/> |
29 <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/> |
29 <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/> |
|
30 <if> |
|
31 <isset property="sf.spec.sbs.numberofjobs"/> |
|
32 <then> |
|
33 <property name="number.of.threads" value="${sf.spec.sbs.numberofjobs}"/> |
|
34 </then> |
|
35 </if> |
30 |
36 |
31 <!-- SF-specific Helium properties not meant to be exposed in the project spec --> |
37 <!-- SF-specific Helium properties not meant to be exposed in the project spec --> |
32 <property name="diamonds.listener.configuration.file" location="${sf.common.config.dir}/diamonds/config.xml.ftl"/> |
38 <property name="diamonds.listener.configuration.file" location="${sf.common.config.dir}/diamonds/config.xml.ftl"/> |
33 |
39 |
34 <!-- Import all core HELIUM targets --> |
40 <!-- Import all core HELIUM targets --> |
55 <then> |
61 <then> |
56 <echo message="Generated source spec found, importing..." /> |
62 <echo message="Generated source spec found, importing..." /> |
57 <import file="${sf.common.config.dir}/generated/source-spec.ant.xml"/> |
63 <import file="${sf.common.config.dir}/generated/source-spec.ant.xml"/> |
58 </then> |
64 </then> |
59 </if> |
65 </if> |
60 |
|
61 |
66 |
62 <target name="sf-prep" depends="prep-drive,init-build-area,sf-generate-source-spec,check-tool-dependencies,create-bom,log-build-env"> |
67 <target name="sf-prep" depends="prep-drive,init-build-area,sf-generate-source-spec,check-tool-dependencies,create-bom,log-build-env"> |
63 <echo>[SF-PREP]</echo> |
68 <echo>[SF-PREP]</echo> |
|
69 <!-- Test for the disk space we would like for this build --> |
|
70 <fail> |
|
71 <condition> |
|
72 <not> |
|
73 <or> |
|
74 <isset property="sf.suppress.drive.space.check"/> |
|
75 <hasfreespace partition="${build.drive}" needed="${sf.drive.space.needed}"/> |
|
76 </or> |
|
77 </not> |
|
78 </condition> |
|
79 Insufficient space to run this build to completion. (Was looking for ${sf.drive.space.needed}.) To suppress this check, set the property sf.suppress.drive.space.check to any value. |
|
80 </fail> |
|
81 |
64 <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/> |
82 <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/> |
65 <echo message="Checking build Environment"/> |
83 <echo message="Checking build Environment"/> |
66 <exec executable="perl" dir="${sf.common.config.dir}/tools" failonerror="true"> |
84 <exec executable="perl" dir="${sf.common.config.dir}/tools" failonerror="true"> |
67 <arg value="CheckBuildEnv.pl"/> |
85 <arg value="CheckBuildEnv.pl"/> |
68 <arg value="--xml=BuildEnv.xml"/> |
86 <arg value="--xml=BuildEnv.xml"/> |
69 <arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/> |
87 <arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/> |
70 <arg value="--sbs='${sf.spec.sbs.config}'"/> |
88 <arg value="--sbs='${sf.spec.sbs.config}'"/> |
71 <arg value="--tools='${sf.spec.sbs.tools.config}'"/> |
89 <arg value="--tools='${sf.spec.sbs.tools.config}'"/> |
72 <arg value="Common"/> |
90 <arg value="Common"/> |
73 </exec> |
91 </exec> |
74 </target> |
92 </target> |
75 |
93 |
76 <target name="sf-build-all" depends="sf-prebuild,sf-build-noprep,sf-postbuild"> |
94 <target name="sf-build-all" depends="sf-prebuild,sf-build-noprep,sf-postbuild"> |
77 <echo>[SF-BUILD-ALL]</echo> |
95 <echo>[SF-BUILD-ALL]</echo> |
78 </target> |
96 </target> |