merge fix for Helium 9
authorandy simpson <andrews@symbian.org>
Tue, 17 Aug 2010 12:55:12 +0100
changeset 1212 84ea622a5ffb
parent 1210 9a976c4078e9 (current diff)
parent 1211 fc57c9119823 (diff)
child 1222 bab49adcb0d3
merge fix for Helium 9
common/build.xml
--- a/common/build.xml	Fri Aug 13 11:29:18 2010 +0100
+++ b/common/build.xml	Tue Aug 17 12:55:12 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	Tue Aug 17 12:55:12 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>