equal
deleted
inserted
replaced
128 <stopwatch name="sf-prep"/> |
128 <stopwatch name="sf-prep"/> |
129 <echo>[SF-PREP]</echo> |
129 <echo>[SF-PREP]</echo> |
130 </target> |
130 </target> |
131 |
131 |
132 <target name="sf-check-env"> |
132 <target name="sf-check-env"> |
|
133 <!-- Dario's environment dumper --> |
|
134 <exec executable="perl" dir="${build.drive}"> |
|
135 <arg value="${sf.common.config.dir}/tools/envinfo.pl"/> |
|
136 </exec> |
|
137 |
133 <!-- Conditional location of BuildEnv.xml. Project always preferred to default --> |
138 <!-- Conditional location of BuildEnv.xml. Project always preferred to default --> |
134 <if><available file="${sf.project.location}/BuildEnv.xml"/> |
139 <if><available file="${sf.project.location}/BuildEnv.xml"/> |
135 <then> |
140 <then> |
136 <property name="sf.buildenv.location" value="${sf.project.location}"/> |
141 <property name="sf.buildenv.location" value="${sf.project.location}"/> |
137 </then> |
142 </then> |
147 <arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/> |
152 <arg value="--dbg=${build.log.dir}/BuildEnvironmentCheck.log"/> |
148 <arg value="--sbs='${sf.spec.sbs.config}'"/> |
153 <arg value="--sbs='${sf.spec.sbs.config}'"/> |
149 <arg value="--tools='${sf.spec.sbs.tools.config}'"/> |
154 <arg value="--tools='${sf.spec.sbs.tools.config}'"/> |
150 <arg value="Common"/> |
155 <arg value="Common"/> |
151 </exec> |
156 </exec> |
152 <antcall target="sf-log-to-brag"> |
157 <!-- antcall target="sf-log-to-brag"> |
153 <param name="sf.brag.phase" value="Prebuild"/> |
158 <param name="sf.brag.phase" value="Prebuild"/> |
154 <param name="sf.brag.step" value="Build Environment Check"/> |
159 <param name="sf.brag.step" value="Build Environment Check"/> |
155 <param name="sf.brag.log" value="${build.log.dir}/BuildEnvironmentCheck.log"/> |
160 <param name="sf.brag.log" value="${build.log.dir}/BuildEnvironmentCheck.log"/> |
156 <param name="sf.brag.id" value="BuildEnvironmentCheck"/> |
161 <param name="sf.brag.id" value="BuildEnvironmentCheck"/> |
157 </antcall> |
162 </antcall --> |
158 <fail> |
163 <fail> |
159 <condition> |
164 <condition> |
160 <not> |
165 <not> |
161 <or> |
166 <or> |
162 <equals arg1="${sf.checkenv.exit}" arg2="0"/> |
167 <equals arg1="${sf.checkenv.exit}" arg2="0"/> |
220 <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" todir="${build.log.dir}/BOM/"/> |
225 <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" todir="${build.log.dir}/BOM/"/> |
221 <delete file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/> |
226 <delete file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/> |
222 </target> |
227 </target> |
223 |
228 |
224 <target name="sf-prebuild" depends="sf-prep,sf-prebuild-noprep"/> |
229 <target name="sf-prebuild" depends="sf-prep,sf-prebuild-noprep"/> |
225 <target name="sf-prebuild-noprep" depends="sf-prebuild-announce,sf-diamonds-connect,sf-diamonds-tag-build,sf-getenvs,sf-syncsource,sf-diamondize-bom"> |
230 <target name="sf-prebuild-noprep" depends="sf-prebuild-announce,sf-diamonds-connect,sf-diamonds-envinfo,sf-diamonds-tag-build,sf-getenvs,sf-syncsource,sf-diamondize-bom"> |
226 <stopwatch name="sf-prebuild" action="elapsed"/> |
231 <stopwatch name="sf-prebuild" action="elapsed"/> |
227 </target> |
232 </target> |
228 |
233 |
229 <target name="sf-prebuild-announce"> |
234 <target name="sf-prebuild-announce"> |
230 <stopwatch name="sf-prebuild"/> |
235 <stopwatch name="sf-prebuild"/> |
237 <then> |
242 <then> |
238 <echo>[SF-DIAMONDS-CONNECT]</echo> |
243 <echo>[SF-DIAMONDS-CONNECT]</echo> |
239 <runtarget target="diamonds"/> |
244 <runtarget target="diamonds"/> |
240 <echo message="Save Diamonds build id value (${diamonds.build.id}) in a file"/> |
245 <echo message="Save Diamonds build id value (${diamonds.build.id}) in a file"/> |
241 <echo message="diamonds.build.id=${diamonds.build.id}" file="${build.log.dir}/diamonds_build_id.properties"/> |
246 <echo message="diamonds.build.id=${diamonds.build.id}" file="${build.log.dir}/diamonds_build_id.properties"/> |
|
247 </then> |
|
248 </if> |
|
249 </target> |
|
250 |
|
251 <target name="sf-diamonds-envinfo"> |
|
252 <if> |
|
253 <istrue value="${sf.spec.publish.enable}"/> |
|
254 <then> |
|
255 <echo>[SF-DIAMONDS-ENVINFO]</echo> |
|
256 <echo message="Send ${build.log.dir}/diamonds_envinfo.xml to Diamonds"/> |
|
257 <exec executable="python"> |
|
258 <arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/> |
|
259 <arg value="-u"/> |
|
260 <arg value="http://${diamonds.host}${diamonds.build.id}"/> |
|
261 <arg value="-f"/> |
|
262 <arg value="${build.log.dir}/diamonds_envinfo.xml"/> |
|
263 </exec> |
242 </then> |
264 </then> |
243 </if> |
265 </if> |
244 </target> |
266 </target> |
245 |
267 |
246 <target name="sf-diamonds-tag-build"> |
268 <target name="sf-diamonds-tag-build"> |