Merge Helium 9 fix
authorChetan Kapoor<chetank@symbian.org>
Mon, 23 Aug 2010 14:56:45 +0100
changeset 1222 bab49adcb0d3
parent 1221 a0ea12f43eac (current diff)
parent 1212 84ea622a5ffb (diff)
child 1225 46ec3b923b5e
Merge Helium 9 fix
--- a/common/build.xml	Fri Aug 20 11:24:56 2010 +0100
+++ b/common/build.xml	Mon Aug 23 14:56:45 2010 +0100
@@ -126,11 +126,7 @@
           </hlm:signalInput>
 
           <!-- configure stages -->
-          <hlm:stage id="preparation" starttarget="sf-prebuild" endtarget="sf-prebuild"/>
-          <hlm:stage id="compilation" starttarget="sf-compile" endtarget="sf-compile"/>
-          <hlm:stage id="romcreation" starttarget="sf-build-roms" endtarget="sf-build-roms"/>
-          <hlm:stage id="postbuild" starttarget="sf-postbuild" endtarget="sf-postbuild"/>
-          
+          <import file="config/stages_config.ant.xml" />
       </then>
     </if>
     
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/config/stages_config.ant.xml	Mon Aug 23 14:56:45 2010 +0100
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="sf-stages-config" xmlns:hlm="http://www.nokia.com/helium">
+    <description>
+    Defines what build stages to log during an sf build and how each build stage is recorded.
+    </description>
+    
+    <!-- Stages configuration -->
+    <hlm:stage id="preparation" starttarget="sf-prebuild" endtarget="sf-prebuild"/>
+    <hlm:stage id="compilation" starttarget="sf-compile" endtarget="sf-compile"/>
+    <hlm:stage id="romcreation" starttarget="sf-build-roms" endtarget="sf-build-roms"/>
+    <hlm:stage id="postbuild" starttarget="sf-postbuild" endtarget="sf-postbuild"/>
+
+    <!-- helium 9+ compatibility -->
+    <propertyregex property="short.helium.version" input="${helium.version}" regexp="(\d+.?\d*)" select="\1" casesensitive="false" />
+    <if>
+        <isgreaterthan arg1="${short.helium.version}" arg2="8"/>
+    <then>   
+        <!-- Stage record configuration -->
+        <hlm:stagerecord id="stage.preparation" stagerefid="preparation" output="${build.log.dir}/${build.id}_prep.ant.log" />
+        <hlm:stagerecord id="stage.compilation"  stagerefid="compilation" output="${build.log.dir}/${build.id}_compile.ant.log" />
+        <hlm:stagerecord id="stage.romcreation"  stagerefid="romcreation" output="${build.log.dir}/${build.id}_romcreation.ant.log" />
+        <hlm:stagerecord id="stage.postbuild"  stagerefid="postbuild" output="${build.log.dir}/${build.id}_postbuild.ant.log" />
+    </then>
+    </if>
+    
+</project>