Turn off zipContentMacro failure for empty zip targets in Helium 7
authorShabe Razvi <shaber@symbian.org>
Mon, 15 Mar 2010 16:24:22 +0000
changeset 927 a15a7e841752
parent 926 86dabb8aa2dd
child 928 b8577e388ca3
child 932 55bdb7c60aa9
Turn off zipContentMacro failure for empty zip targets in Helium 7
common/build.xml
--- a/common/build.xml	Mon Mar 15 11:14:35 2010 +0000
+++ b/common/build.xml	Mon Mar 15 16:24:22 2010 +0000
@@ -102,6 +102,7 @@
         <equals arg1="${last.major.helium.version}" arg2="5.0"/>
       </or></not>
       <then>
+          <property name="sf.using.newer.than.helium5" value="true"/>
           <property name="schema.new" value="true"/>
           <property name="skip.sbs.parser.exception" value="true"/>
           
@@ -643,7 +644,14 @@
             <runtarget target="preprocess-zip-config" />
             <property name="zip.${zip.target.name}.log.file" location="${build.log.dir}/${build.id}_${zip.target.name}_zip.log" />
             <property name="zips.${zip.target.name}.spec.name" value="${zip.target.name}" />
-            <hlm:zipContentMacro type="${zip.target.name}" file="${zip.config.file}" />
+            <if><isset property="sf.using.newer.than.helium5"/>
+            <then>
+                <hlm:zipContentMacro type="${zip.target.name}" file="${zip.config.file}" failonemptyconfig="false"/>
+            </then>
+            <else>
+                <hlm:zipContentMacro type="${zip.target.name}" file="${zip.config.file}" />
+            </else>
+            </if>
           </then>
           <else>
             <echo message="ERROR ${zip.config.file} not available for zipping!"/>